[PATCH] D54099: [Sanitizers] Disable SANITIZER_CAN_FAST_UNWIND on all SPARC targets

Rainer Orth via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 5 11:25:32 PST 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL346155: [Sanitizers] Disable SANITIZER_CAN_FAST_UNWIND on all SPARC targets (authored by ro, committed by ).
Herald added subscribers: jrtc27, delcypher.

Changed prior to commit:
  https://reviews.llvm.org/D54099?vs=172569&id=172621#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D54099

Files:
  compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace.h
  compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace_sparc.cc


Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace_sparc.cc
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace_sparc.cc
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace_sparc.cc
@@ -15,7 +15,7 @@
 
 // This file is ported to Sparc v8, but it should be easy to port to
 // Sparc v9.
-#if defined(__sparcv8__)
+#if defined(__sparcv8__) || defined(__sparcv8) || defined(__sparc_v8__)
 
 #include "sanitizer_common.h"
 #include "sanitizer_stacktrace.h"
@@ -55,4 +55,5 @@
 
 }  // namespace __sanitizer
 
-#endif  // !defined(__sparcv8__)
+#endif  // !defined(__sparcv8__) && !defined(__sparcv8) &&
+        // !defined(__sparc_v8__)
Index: compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace.h
===================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace.h
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_stacktrace.h
@@ -19,7 +19,7 @@
 
 static const u32 kStackTraceMax = 256;
 
-#if SANITIZER_LINUX &&  (defined(__sparc__) || defined(__mips__))
+#if defined(__sparc__) || (SANITIZER_LINUX && defined(__mips__))
 # define SANITIZER_CAN_FAST_UNWIND 0
 #elif SANITIZER_WINDOWS
 # define SANITIZER_CAN_FAST_UNWIND 0


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54099.172621.patch
Type: text/x-patch
Size: 1306 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181105/5e326022/attachment.bin>


More information about the llvm-commits mailing list