aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/libsupc++
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2012-09-11 15:22:54 +0000
committerJakub Jelinek <jakub@redhat.com>2012-09-11 15:22:54 +0000
commit4fc816a48abdf5caef5a1f038b9308d432a839eb (patch)
tree95c3b09d64b39746331650638be0ae486e038ebc /libstdc++-v3/libsupc++
parent69e2611b228475159657f6718662dc242a9f852c (diff)
PR libstdc++/54172
* libsupc++/guard.cc (__cxa_guard_acquire): Fix up the last argument of the first __atomic_compare_exchange_n. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@191190 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/libsupc++')
-rw-r--r--libstdc++-v3/libsupc++/guard.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libstdc++-v3/libsupc++/guard.cc b/libstdc++-v3/libsupc++/guard.cc
index 60165cdecb4..f8550c03fae 100644
--- a/libstdc++-v3/libsupc++/guard.cc
+++ b/libstdc++-v3/libsupc++/guard.cc
@@ -253,7 +253,7 @@ namespace __cxxabiv1
int expected(0);
if (__atomic_compare_exchange_n(gi, &expected, pending_bit, false,
__ATOMIC_ACQ_REL,
- __ATOMIC_RELAXED))
+ __ATOMIC_ACQUIRE))
{
// This thread should do the initialization.
return 1;