tsan: use hacky call only on x86_64

required for mips64 and aarch64 ports

llvm-svn: 226829
This commit is contained in:
Dmitry Vyukov 2015-01-22 14:13:56 +00:00
parent bb5d09f0e3
commit 48846ba570
1 changed files with 1 additions and 1 deletions

View File

@ -685,7 +685,7 @@ void AcquireReleaseImpl(ThreadState *thr, uptr pc, SyncClock *c);
// 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) \