forked from OSchip/llvm-project
tsan: use hacky call only on x86_64
required for mips64 and aarch64 ports llvm-svn: 226829
This commit is contained in:
parent
bb5d09f0e3
commit
48846ba570
|
@ -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) \
|
||||
|
|
Loading…
Reference in New Issue