[compiler-rt] r222084 - As a follow up to r222001, Peter Bergner pointed out that there is

Jay Foad jay.foad at gmail.com
Sat Nov 15 05:52:11 PST 2014


Author: foad
Date: Sat Nov 15 07:52:10 2014
New Revision: 222084

URL: http://llvm.org/viewvc/llvm-project?rev=222084&view=rev
Log:
As a follow up to r222001, Peter Bergner pointed out that there is
nothing 64-bit-specific about the PowerPC stack overflow detection.

Modified:
    compiler-rt/trunk/lib/asan/asan_posix.cc

Modified: compiler-rt/trunk/lib/asan/asan_posix.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/asan_posix.cc?rev=222084&r1=222083&r2=222084&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/asan_posix.cc (original)
+++ compiler-rt/trunk/lib/asan/asan_posix.cc Sat Nov 15 07:52:10 2014
@@ -46,7 +46,7 @@ void AsanOnSIGSEGV(int, void *siginfo, v
   // probably a stack overflow.
   bool IsStackAccess = addr + 512 > sp && addr < sp + 0xFFFF;
 
-#if __powerpc64__
+#if __powerpc__
   // Large stack frames can be allocated with e.g.
   //   lis r0,-10000
   //   stdux r1,r1,r0 # store sp to [sp-10000] and update sp by -10000
@@ -69,7 +69,7 @@ void AsanOnSIGSEGV(int, void *siginfo, v
          (opcd == 31 && (xo == 247 || xo == 439 || xo == 183 || xo == 181))))
       IsStackAccess = true;
   }
-#endif // __powerpc64__
+#endif // __powerpc__
 
   // We also check si_code to filter out SEGV caused by something else other
   // then hitting the guard page or unmapped memory, like, for example,





More information about the llvm-commits mailing list