diff options
author | Jan Hubicka <jh@suse.cz> | 2009-04-18 17:48:16 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2009-04-18 15:48:16 +0000 |
commit | b8add5942c0ce71990233b594d5f0bdec31d73c8 (patch) | |
tree | 74629d2486edc497cc2f32e7b666fd1f23f63e71 /libstdc++-v3/src/atomic.cc | |
parent | a5cb563b79b71ef5dbf3c3c0aca014c785f79927 (diff) | |
download | gcc-b8add5942c0ce71990233b594d5f0bdec31d73c8.tar.gz |
formater.h: Include bits/c++config.h.
* include/debug/formater.h: Include bits/c++config.h.
(_M_error): Mark noreturn.
* include/bits/c++config (_GLIBCXX_PURE, _GLIBCXX_CONST,
_GLIBCXX_NORETURN): New.
* include/bits/stl_tree.h (_Rb_tree_increment, _Rb_tree_increment,
_Rb_tree_decrement, _Rb_tree_decrement, _Rb_tree_black_count): Mark pure.
* include/c_compatibility/stdatomic.h (atomic_flag_test_and_set_explicit,
atomic_flag_clear_explicit, __atomic_flag_wait_explicit,
__atomic_flag_for_address): Mark by throw ().
* src/atomic.cc (atomic_flag_test_and_set_explicit,
atomic_flag_clear_explicit, __atomic_flag_wait_explicit,
__atomic_flag_for_address): Mark by throw ().
From-SVN: r146317
Diffstat (limited to 'libstdc++-v3/src/atomic.cc')
-rw-r--r-- | libstdc++-v3/src/atomic.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libstdc++-v3/src/atomic.cc b/libstdc++-v3/src/atomic.cc index e3e668b4cb5..3a2ff3d52e9 100644 --- a/libstdc++-v3/src/atomic.cc +++ b/libstdc++-v3/src/atomic.cc @@ -78,7 +78,7 @@ namespace std { bool atomic_flag_test_and_set_explicit(volatile __atomic_flag_base* __a, - memory_order __m) + memory_order __m) throw () { volatile atomic_flag d(__a->_M_i); return d.test_and_set(__m); @@ -86,7 +86,7 @@ namespace std void atomic_flag_clear_explicit(volatile __atomic_flag_base* __a, - memory_order __m) + memory_order __m) throw () { volatile atomic_flag d(__a->_M_i); return d.clear(__m); @@ -94,14 +94,14 @@ namespace std void __atomic_flag_wait_explicit(volatile __atomic_flag_base* __a, - memory_order __x) + memory_order __x) throw () { while (atomic_flag_test_and_set_explicit(__a, __x)) { }; } volatile __atomic_flag_base* - __atomic_flag_for_address(const volatile void* __z) + __atomic_flag_for_address(const volatile void* __z) throw () { uintptr_t __u = reinterpret_cast<uintptr_t>(__z); __u += (__u >> 2) + (__u << 4); |