[Compiler-rt][MIPS] Fix for asan test suite build on mips64/mips64el
authorMohit K. Bhakkad <mohit.bhakkad@gmail.com>
Thu, 9 Apr 2015 06:58:32 +0000 (06:58 +0000)
committerMohit K. Bhakkad <mohit.bhakkad@gmail.com>
Thu, 9 Apr 2015 06:58:32 +0000 (06:58 +0000)
Patch by Sagar Thakur

Reviewers: dsanders
llvm-svn: 234468

compiler-rt/lib/asan/tests/asan_test.cc

index aa08080..07d59e0 100644 (file)
@@ -593,7 +593,8 @@ NOINLINE void SigLongJmpFunc1(sigjmp_buf buf) {
 
 #if !defined(__ANDROID__) && !defined(__arm__) && \
     !defined(__powerpc64__) && !defined(__powerpc__) && \
-    !defined(__aarch64__)
+    !defined(__aarch64__) && !defined(__mips__) && \
+    !defined(__mips64)
 NOINLINE void BuiltinLongJmpFunc1(jmp_buf buf) {
   // create three red zones for these two stack objects.
   int a;
@@ -616,7 +617,8 @@ TEST(AddressSanitizer, BuiltinLongJmpTest) {
   }
 }
 #endif  // !defined(__ANDROID__) && !defined(__powerpc64__) &&
-        // !defined(__powerpc__) && !defined(__arm__)
+        // !defined(__powerpc__) && !defined(__arm__) &&
+        // !defined(__mips__) && !defined(__mips64)
 
 TEST(AddressSanitizer, UnderscopeLongJmpTest) {
   static jmp_buf buf;