]> rtime.felk.cvut.cz Git - fpga/lx-cpu1/gcc-tumbl.git/commitdiff
PR libstdc++/54172
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Sep 2012 15:24:06 +0000 (15:24 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Sep 2012 15:24:06 +0000 (15:24 +0000)
* 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/branches/gcc-4_7-branch@191191 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/libsupc++/guard.cc

index 6726f8e36b709819b3b4810d61cb502e096d090c..c9a794d1a7a839cb50d681f47906bdb1dfd39132 100644 (file)
@@ -1,3 +1,9 @@
+2012-09-11  Jakub Jelinek  <jakub@redhat.com>
+
+       PR libstdc++/54172
+       * libsupc++/guard.cc (__cxa_guard_acquire): Fix up the last
+       argument of the first __atomic_compare_exchange_n.
+
 2012-09-09  Thiago Macieira  <thiago.macieira@intel.com>
 
        PR libstdc++/54172
index 60165cdecb459a72655f30a5d04c1987590c6a70..f8550c03fae1e8cef2c3dd7b83c51bdfbf24f27e 100644 (file)
@@ -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;