[compiler-rt] r253983 - [tsan] Fix signal number definitions for OS X

Kuba Brecka via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 24 05:44:54 PST 2015


Author: kuba.brecka
Date: Tue Nov 24 07:44:54 2015
New Revision: 253983

URL: http://llvm.org/viewvc/llvm-project?rev=253983&view=rev
Log:
[tsan] Fix signal number definitions for OS X

On OS X, SIGBUS is 10 and SIGSYS is 12.

Differential Revision: http://reviews.llvm.org/D14946


Modified:
    compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc

Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc?rev=253983&r1=253982&r2=253983&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc Tue Nov 24 07:44:54 2015
@@ -124,7 +124,7 @@ const int SIGFPE = 8;
 const int SIGSEGV = 11;
 const int SIGPIPE = 13;
 const int SIGTERM = 15;
-#ifdef __mips__
+#if defined(__mips__) || SANITIZER_MAC
 const int SIGBUS = 10;
 const int SIGSYS = 12;
 #else




More information about the llvm-commits mailing list