diff options
| author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-11 15:22:54 +0000 |
|---|---|---|
| committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-09-11 15:22:54 +0000 |
| commit | 051c348b1738256f5e9db77881331151ccac3bb9 (patch) | |
| tree | 95c3b09d64b39746331650638be0ae486e038ebc /libstdc++-v3/libsupc++ | |
| parent | 046a08d8b674e5190b4d68c07c423a027c873abb (diff) | |
| download | ppe42-gcc-051c348b1738256f5e9db77881331151ccac3bb9.tar.gz ppe42-gcc-051c348b1738256f5e9db77881331151ccac3bb9.zip | |
PR libstdc++/54172
* libsupc++/guard.cc (__cxa_guard_acquire): Fix up the last
argument of the first __atomic_compare_exchange_n.
git-svn-id: svn+ssh://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.cc | 2 |
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; |

