From fbf6fb1e250859f09fdcb221e4c6c8b94c19118d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Mon, 26 Feb 2018 05:12:14 -0500 Subject: [PATCH] atomic.h: fix __SANITIZE_THREAD__ build Only very modern GCC's actually set this define when building with the ThreadSanitizer so this little typo slipped though. Backports commit 23ea7f57949f2f5934f4d5bbc29fe321b3a7067b from qemu --- qemu/include/qemu/atomic.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qemu/include/qemu/atomic.h b/qemu/include/qemu/atomic.h index 6fe5a06b..96564358 100644 --- a/qemu/include/qemu/atomic.h +++ b/qemu/include/qemu/atomic.h @@ -48,7 +48,7 @@ void _ReadWriteBarrier(void); */ #if defined(__SANITIZE_THREAD__) #define smp_read_barrier_depends() ({ barrier(); __atomic_thread_fence(__ATOMIC_CONSUME); barrier(); }) -#elsif defined(__alpha__) +#elif defined(__alpha__) #define smp_read_barrier_depends() asm volatile("mb":::"memory") #else #define smp_read_barrier_depends() barrier()