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 |
---|---|---|
.. | ||
39405.cc | Loading commit data... | |
43820_neg.cc | Loading commit data... | |
46910.cc | Loading commit data... | |
51365.cc | Loading commit data... | |
52924.cc | Loading commit data... | |
55123.cc | Loading commit data... | |
58659.cc | Loading commit data... | |
58839.cc | Loading commit data... | |
61036.cc | Loading commit data... | |
alias.cc | Loading commit data... | |
alloc.cc | Loading commit data... | |
alloc_min.cc | Loading commit data... | |
auto_ptr.cc | Loading commit data... | |
auto_ptr_neg.cc | Loading commit data... | |
constexpr.cc | Loading commit data... | |
copy.cc | Loading commit data... | |
default.cc | Loading commit data... | |
move.cc | Loading commit data... | |
noexcept_move_construct.cc | Loading commit data... | |
nullptr.cc | Loading commit data... | |
pointer.cc | Loading commit data... | |
unique_ptr.cc | Loading commit data... | |
unique_ptr_array.cc | Loading commit data... | |
unique_ptr_deleter.cc | Loading commit data... | |
unique_ptr_deleter_ref_1.cc | Loading commit data... | |
unique_ptr_deleter_ref_2.cc | Loading commit data... | |
unique_ptr_neg.cc | Loading commit data... | |
void_neg.cc | Loading commit data... | |
weak_ptr.cc | Loading commit data... | |
weak_ptr_expired.cc | Loading commit data... |