2012-08-30 Benjamin Kosnik <bkoz@redhat.com>
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Aug 2012 19:24:58 +0000 (19:24 +0000)
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 30 Aug 2012 19:24:58 +0000 (19:24 +0000)
PR libstdc++/54005 continued
* include/std/atomic: Use __atomic_lock_free with
* include/bits/atomic_base.h: Same.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@190810 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/atomic_base.h
libstdc++-v3/include/std/atomic

index 74ee2f5..9544c2f 100644 (file)
@@ -5,6 +5,12 @@
 
 2012-08-30  Benjamin Kosnik  <bkoz@redhat.com>
 
+       PR libstdc++/54005 continued
+       * include/std/atomic: Use __atomic_lock_free with
+       * include/bits/atomic_base.h: Same.
+
+2012-08-30  Benjamin Kosnik  <bkoz@redhat.com>
+
        * testsuite/util/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.18.
 
 2012-08-29  Ulrich Drepper  <drepper@gmail.com>
index 598e1f1..de098a3 100644 (file)
@@ -35,6 +35,7 @@
 #include <bits/c++config.h>
 #include <stdbool.h>
 #include <stdint.h>
+#include <cstddef>
 #include <bits/atomic_lockfree_defines.h>
 
 namespace std _GLIBCXX_VISIBILITY(default)
@@ -422,11 +423,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
       bool
       is_lock_free() const noexcept
-      { return __atomic_always_lock_free(sizeof(_M_i), &_M_i); }
+      { return __atomic_is_lock_free(sizeof(_M_i), NULL); }
 
       bool
       is_lock_free() const volatile noexcept
-      { return __atomic_always_lock_free(sizeof(_M_i), &_M_i); }
+      { return __atomic_is_lock_free(sizeof(_M_i), NULL); }
 
       void
       store(__int_type __i, memory_order __m = memory_order_seq_cst) noexcept
@@ -716,11 +717,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
       bool
       is_lock_free() const noexcept
-      { return __atomic_always_lock_free(_M_type_size(1), &_M_p); }
+      { return __atomic_is_lock_free(_M_type_size(1), NULL); }
 
       bool
       is_lock_free() const volatile noexcept
-      { return __atomic_always_lock_free(_M_type_size(1), &_M_p); }
+      { return __atomic_is_lock_free(_M_type_size(1), NULL); }
 
       void
       store(__pointer_type __p,
index b5ca606..535a90f 100644 (file)
@@ -184,11 +184,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
       bool
       is_lock_free() const noexcept
-      { return __atomic_always_lock_free(sizeof(_M_i), &_M_i); }
+      { return __atomic_is_lock_free(sizeof(_M_i), NULL); }
 
       bool
       is_lock_free() const volatile noexcept
-      { return __atomic_always_lock_free(sizeof(_M_i), &_M_i); }
+      { return __atomic_is_lock_free(sizeof(_M_i), NULL); }
 
       void
       store(_Tp __i, memory_order _m = memory_order_seq_cst) noexcept