Commit 3e7e2f12 by Benjamin Kosnik Committed by Benjamin Kosnik

PR libstdc++/54005 continued

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.

From-SVN: r190810
parent 25270f5e
...@@ -5,6 +5,12 @@ ...@@ -5,6 +5,12 @@
2012-08-30 Benjamin Kosnik <bkoz@redhat.com> 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. * testsuite/util/testsuite_abi.cc (check_version): Add GLIBCXX_3.4.18.
2012-08-29 Ulrich Drepper <drepper@gmail.com> 2012-08-29 Ulrich Drepper <drepper@gmail.com>
......
...@@ -35,6 +35,7 @@ ...@@ -35,6 +35,7 @@
#include <bits/c++config.h> #include <bits/c++config.h>
#include <stdbool.h> #include <stdbool.h>
#include <stdint.h> #include <stdint.h>
#include <cstddef>
#include <bits/atomic_lockfree_defines.h> #include <bits/atomic_lockfree_defines.h>
namespace std _GLIBCXX_VISIBILITY(default) namespace std _GLIBCXX_VISIBILITY(default)
...@@ -422,11 +423,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -422,11 +423,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
bool bool
is_lock_free() const noexcept 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 bool
is_lock_free() const volatile noexcept 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 void
store(__int_type __i, memory_order __m = memory_order_seq_cst) noexcept store(__int_type __i, memory_order __m = memory_order_seq_cst) noexcept
...@@ -716,11 +717,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -716,11 +717,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
bool bool
is_lock_free() const noexcept 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 bool
is_lock_free() const volatile noexcept 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 void
store(__pointer_type __p, store(__pointer_type __p,
......
...@@ -184,11 +184,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION ...@@ -184,11 +184,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
bool bool
is_lock_free() const noexcept 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 bool
is_lock_free() const volatile noexcept 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 void
store(_Tp __i, memory_order _m = memory_order_seq_cst) noexcept store(_Tp __i, memory_order _m = memory_order_seq_cst) noexcept
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment