This provides proper definitions for _GLIBCXX_READ_MEM_BARRIER and
_GLIBCXX_WRITE_MEM_BARRIER, rewrites the guards in terms of proper
atomic extensions and removes internal uses of
_GLIBCXX_READ_MEM_BARRIER and _GLIBCXX_WRITE_MEM_BARRIER and replaces
them with equivalent atomics.
2015-06-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
PR target/66200
PR c++/66192
* * config/cpu/generic/atomic_word.h (_GLIBCXX_READ_MEM_BARRIER): Define
(_GLIBCXX_WRITE_MEM_BARRIER): Likewise
* include/bits/shared_ptr_base.h: Use ACQ_REL barrier.
* include/ext/atomicity.h: Likewise.
* include/tr1/shared_ptr.h: Likewise.
* libsupc++/guard.cc (__test_and_acquire): Rewrite with atomics.
Update comment.
(__set_and_release): Likewise.
* testsuite/20_util/shared_ptr/cons/43820_neg.cc (test01): Adjust for
line numbers.
* testsuite/20_util/shared_ptr/cons/void_neg.cc: Likewise.
* testsuite/tr1/2_general_utilities/shared_ptr/cons/43820_neg.cc:
Likewise.
From-SVN: r224411
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| pb_ds | Loading commit data... | |
| algorithm | Loading commit data... | |
| aligned_buffer.h | Loading commit data... | |
| alloc_traits.h | Loading commit data... | |
| array_allocator.h | Loading commit data... | |
| atomicity.h | Loading commit data... | |
| bitmap_allocator.h | Loading commit data... | |
| cast.h | Loading commit data... | |
| cmath | Loading commit data... | |
| codecvt_specializations.h | Loading commit data... | |
| concurrence.h | Loading commit data... | |
| debug_allocator.h | Loading commit data... | |
| enc_filebuf.h | Loading commit data... | |
| extptr_allocator.h | Loading commit data... | |
| functional | Loading commit data... | |
| iterator | Loading commit data... | |
| malloc_allocator.h | Loading commit data... | |
| memory | Loading commit data... | |
| mt_allocator.h | Loading commit data... | |
| new_allocator.h | Loading commit data... | |
| numeric | Loading commit data... | |
| numeric_traits.h | Loading commit data... | |
| pod_char_traits.h | Loading commit data... | |
| pointer.h | Loading commit data... | |
| pool_allocator.h | Loading commit data... | |
| random | Loading commit data... | |
| random.tcc | Loading commit data... | |
| rb_tree | Loading commit data... | |
| rc_string_base.h | Loading commit data... | |
| rope | Loading commit data... | |
| ropeimpl.h | Loading commit data... | |
| slist | Loading commit data... | |
| sso_string_base.h | Loading commit data... | |
| stdio_filebuf.h | Loading commit data... | |
| stdio_sync_filebuf.h | Loading commit data... | |
| string_conversions.h | Loading commit data... | |
| throw_allocator.h | Loading commit data... | |
| type_traits.h | Loading commit data... | |
| typelist.h | Loading commit data... | |
| vstring.h | Loading commit data... | |
| vstring.tcc | Loading commit data... | |
| vstring_fwd.h | Loading commit data... | |
| vstring_util.h | Loading commit data... |