summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2014-11-15 13:52:10 +0000
committerJay Foad <jay.foad@gmail.com>2014-11-15 13:52:10 +0000
commiteb392de411745dec5eece9bfffd4e0c684d8a469 (patch)
tree8b657daf83a5c390cd6a0651bfcabeae1f5c8fd1
parent5d363ead09520a35394722b5ca9ddf9d20356f6c (diff)
downloadbcm5719-llvm-eb392de411745dec5eece9bfffd4e0c684d8a469.tar.gz
bcm5719-llvm-eb392de411745dec5eece9bfffd4e0c684d8a469.zip
As a follow up to r222001, Peter Bergner pointed out that there is
nothing 64-bit-specific about the PowerPC stack overflow detection. llvm-svn: 222084
-rw-r--r--compiler-rt/lib/asan/asan_posix.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/lib/asan/asan_posix.cc b/compiler-rt/lib/asan/asan_posix.cc
index 7b4db873607..c910e23409d 100644
--- a/compiler-rt/lib/asan/asan_posix.cc
+++ b/compiler-rt/lib/asan/asan_posix.cc
@@ -46,7 +46,7 @@ void AsanOnSIGSEGV(int, void *siginfo, void *context) {
// 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, void *context) {
(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,
OpenPOWER on IntegriCloud