aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.7/libstdc++-v3/include/ext/atomicity.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.7/libstdc++-v3/include/ext/atomicity.h')
-rw-r--r--gcc-4.7/libstdc++-v3/include/ext/atomicity.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc-4.7/libstdc++-v3/include/ext/atomicity.h b/gcc-4.7/libstdc++-v3/include/ext/atomicity.h
index 9f48b81c6..ed1bb6df6 100644
--- a/gcc-4.7/libstdc++-v3/include/ext/atomicity.h
+++ b/gcc-4.7/libstdc++-v3/include/ext/atomicity.h
@@ -42,9 +42,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
// To abstract locking primitives across all thread policies, use:
// __exchange_and_add_dispatch
// __atomic_add_dispatch
-#if defined(_GLIBCXX_ATOMIC_BUILTINS) && (!defined(__clang__) || defined(__i386__))
- // NOTE: clang arm/mips can't compile the following two library calls yet.
- static inline _Atomic_word
+#ifdef _GLIBCXX_ATOMIC_BUILTINS
+ static inline _Atomic_word
__exchange_and_add(volatile _Atomic_word* __mem, int __val)
{ return __atomic_fetch_add(__mem, __val, __ATOMIC_ACQ_REL); }