[compiler-rt] r199725 - [asan] Enable frame pointer based unwinder on ARM.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Tue Jan 21 03:04:58 PST 2014


Author: eugenis
Date: Tue Jan 21 05:04:58 2014
New Revision: 199725

URL: http://llvm.org/viewvc/llvm-project?rev=199725&view=rev
Log:
[asan] Enable frame pointer based unwinder on ARM.

This code works with AAPCS-style {fp, lr} frames. Unlike linux perf, it does
not unwind through code compiled with -mapcs-frame (which Clang does not
support anyway).


Modified:
    compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace.h

Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace.h?rev=199725&r1=199724&r2=199725&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace.h (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace.h Tue Jan 21 05:04:58 2014
@@ -19,10 +19,8 @@ namespace __sanitizer {
 
 static const uptr kStackTraceMax = 256;
 
-#if SANITIZER_LINUX && (defined(__arm__) || \
-    defined(__powerpc__) || defined(__powerpc64__) || \
-    defined(__sparc__) || \
-    defined(__mips__))
+#if SANITIZER_LINUX && (defined(__powerpc__) || defined(__powerpc64__) || \
+                        defined(__sparc__) || defined(__mips__))
 # define SANITIZER_CAN_FAST_UNWIND 0
 #elif SANITIZER_WINDOWS
 # define SANITIZER_CAN_FAST_UNWIND 0





More information about the llvm-commits mailing list