OSDN Git Service

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 6726f8e..c9a794d 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 60165cd..f8550c0 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;