[compiler-rt] r226829 - tsan: use hacky call only on x86_64
Dmitry Vyukov
dvyukov at google.com
Thu Jan 22 06:13:57 PST 2015
Author: dvyukov
Date: Thu Jan 22 08:13:56 2015
New Revision: 226829
URL: http://llvm.org/viewvc/llvm-project?rev=226829&view=rev
Log:
tsan: use hacky call only on x86_64
required for mips64 and aarch64 ports
Modified:
compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h
Modified: compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h?rev=226829&r1=226828&r2=226829&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h (original)
+++ compiler-rt/trunk/lib/tsan/rtl/tsan_rtl.h Thu Jan 22 08:13:56 2015
@@ -685,7 +685,7 @@ void AcquireReleaseImpl(ThreadState *thr
// The trick is that the call preserves all registers and the compiler
// does not treat it as a call.
// If it does not work for you, use normal call.
-#if !SANITIZER_DEBUG
+#if !SANITIZER_DEBUG && defined(__x86_64__)
// The caller may not create the stack frame for itself at all,
// so we create a reserve stack frame for it (1024b must be enough).
#define HACKY_CALL(f) \
More information about the llvm-commits
mailing list