summaryrefslogtreecommitdiffstats
path: root/libsanitizer
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@mengyan1223.wang>2022-03-11 10:59:29 +0800
committerXi Ruoyao <xry111@mengyan1223.wang>2022-03-15 00:34:12 +0800
commita60a3a95d0f6bb11567a13b8684c97671ef12e1d (patch)
treef03b9ddeae4bac39f9ed8f9454832cd5ed6d1407 /libsanitizer
parentlra: Fix up debug_p handling in lra_substitute_pseudo [PR104778] (diff)
downloadgcc-a60a3a95d0f6bb11567a13b8684c97671ef12e1d.tar.gz
gcc-a60a3a95d0f6bb11567a13b8684c97671ef12e1d.tar.bz2
gcc-a60a3a95d0f6bb11567a13b8684c97671ef12e1d.tar.xz
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.h4
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 fc13ca52dda..ccf18f0786d 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,
96// This include provides explicit template instantiations for atomic_uint64_t 96// This include provides explicit template instantiations for atomic_uint64_t
97// on MIPS32, which does not directly support 8 byte atomics. It has to 97// on MIPS32, which does not directly support 8 byte atomics. It has to
98// proceed the template definitions above. 98// proceed the template definitions above.
99#if defined(_MIPS_SIM) && defined(_ABIO32) 99#if defined(_MIPS_SIM) && defined(_ABIO32) && _MIPS_SIM == _ABIO32
100 #include "sanitizer_atomic_clang_mips.h" 100# include "sanitizer_atomic_clang_mips.h"
101#endif 101#endif
102 102
103#undef ATOMIC_ORDER 103#undef ATOMIC_ORDER