mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-03 05:05:22 +08:00
libstdc++: Fix test_and_acquire for EABI
libstdc++-v3/ChangeLog: * config/cpu/arm/cxxabi_tweaks.h (_GLIBCXX_GUARD_TEST_AND_ACQUIRE): Do not try to dereference return value of __atomic_load_n.
This commit is contained in:
parent
f9c86e3105
commit
026ca1121c
@ -48,7 +48,7 @@ namespace __cxxabiv1
|
||||
typedef int __guard;
|
||||
|
||||
#define _GLIBCXX_GUARD_TEST_AND_ACQUIRE(x) \
|
||||
_GLIBCXX_GUARD_TEST(__atomic_load_n(x, __ATOMIC_ACQUIRE))
|
||||
((__atomic_load_n(x, __ATOMIC_ACQUIRE) & 1) != 0)
|
||||
#define _GLIBCXX_GUARD_SET_AND_RELEASE(x) \
|
||||
__atomic_store_n(x, 1, __ATOMIC_RELEASE)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user