diff options
author | Xi Ruoyao <xry111@mengyan1223.wang> | 2022-03-11 10:59:29 +0800 |
---|---|---|
committer | Xi Ruoyao <xry111@mengyan1223.wang> | 2022-03-15 00:34:12 +0800 |
commit | a60a3a95d0f6bb11567a13b8684c97671ef12e1d (patch) | |
tree | f03b9ddeae4bac39f9ed8f9454832cd5ed6d1407 /libsanitizer | |
parent | 77eb0461abe61a85f69270048ad81b25b1cc95d6 (diff) | |
download | gcc-a60a3a95d0f6bb11567a13b8684c97671ef12e1d.zip gcc-a60a3a95d0f6bb11567a13b8684c97671ef12e1d.tar.gz gcc-a60a3a95d0f6bb11567a13b8684c97671ef12e1d.tar.bz2 |
libsanitizer: cherry-pick db7bca28638e from upstream
libsanitizer/
* sanitizer_common/sanitizer_atomic_clang.h: Ensures to only
include sanitizer_atomic_clang_mips.h for O32.
Diffstat (limited to 'libsanitizer')
-rw-r--r-- | libsanitizer/sanitizer_common/sanitizer_atomic_clang.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsanitizer/sanitizer_common/sanitizer_atomic_clang.h b/libsanitizer/sanitizer_common/sanitizer_atomic_clang.h index fc13ca5..ccf18f0 100644 --- a/libsanitizer/sanitizer_common/sanitizer_atomic_clang.h +++ b/libsanitizer/sanitizer_common/sanitizer_atomic_clang.h @@ -96,8 +96,8 @@ inline bool atomic_compare_exchange_weak(volatile T *a, // This include provides explicit template instantiations for atomic_uint64_t // on MIPS32, which does not directly support 8 byte atomics. It has to // proceed the template definitions above. -#if defined(_MIPS_SIM) && defined(_ABIO32) - #include "sanitizer_atomic_clang_mips.h" +#if defined(_MIPS_SIM) && defined(_ABIO32) && _MIPS_SIM == _ABIO32 +# include "sanitizer_atomic_clang_mips.h" #endif #undef ATOMIC_ORDER |