[compiler-rt] r261120 - [tsan] Fix build warnings on FreeBSD
Ed Maste via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 17 10:22:50 PST 2016
Author: emaste
Date: Wed Feb 17 12:22:50 2016
New Revision: 261120
URL: http://llvm.org/viewvc/llvm-project?rev=261120&view=rev
Log:
[tsan] Fix build warnings on FreeBSD
The change in r252165 for OS X applies to FreeBSD as well.
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=261120&r1=261119&r2=261120&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_interceptors.cc Wed Feb 17 12:22:50 2016
@@ -129,7 +129,7 @@ const int PTHREAD_MUTEX_RECURSIVE_NP = 2
const int EINVAL = 22;
const int EBUSY = 16;
const int EOWNERDEAD = 130;
-#if !SANITIZER_MAC
+#if !SANITIZER_FREEBSD && !SANITIZER_MAC
const int EPOLL_CTL_ADD = 1;
#endif
const int SIGILL = 4;
@@ -2451,7 +2451,7 @@ struct ScopedSyscall {
}
};
-#if !SANITIZER_MAC
+#if !SANITIZER_FREEBSD && !SANITIZER_MAC
static void syscall_access_range(uptr pc, uptr p, uptr s, bool write) {
TSAN_SYSCALL();
MemoryAccessRange(thr, pc, p, s, write);
More information about the llvm-commits
mailing list