gcc/libstdc++-v3/include/tr1
Ramana Radhakrishnan 57e6d9be77 Use atomics in guard.cc.
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
2015-06-12 09:49:41 +00:00
..
array Update copyright years. 2015-01-05 13:33:28 +01:00
bessel_function.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
beta_function.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
ccomplex Update copyright years. 2015-01-05 13:33:28 +01:00
cctype Update copyright years. 2015-01-05 13:33:28 +01:00
cfenv Update copyright years. 2015-01-05 13:33:28 +01:00
cfloat Update copyright years. 2015-01-05 13:33:28 +01:00
cinttypes Update copyright years. 2015-01-05 13:33:28 +01:00
climits Update copyright years. 2015-01-05 13:33:28 +01:00
cmath Update copyright years. 2015-01-05 13:33:28 +01:00
complex Update copyright years. 2015-01-05 13:33:28 +01:00
complex.h Update copyright years. 2015-01-05 13:33:28 +01:00
cstdarg Update copyright years. 2015-01-05 13:33:28 +01:00
cstdbool Update copyright years. 2015-01-05 13:33:28 +01:00
cstdint Update copyright years. 2015-01-05 13:33:28 +01:00
cstdio Update copyright years. 2015-01-05 13:33:28 +01:00
cstdlib Update copyright years. 2015-01-05 13:33:28 +01:00
ctgmath Update copyright years. 2015-01-05 13:33:28 +01:00
ctime Update copyright years. 2015-01-05 13:33:28 +01:00
ctype.h Update copyright years. 2015-01-05 13:33:28 +01:00
cwchar Update copyright years. 2015-01-05 13:33:28 +01:00
cwctype Update copyright years. 2015-01-05 13:33:28 +01:00
ell_integral.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
exp_integral.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
fenv.h Update copyright years. 2015-01-05 13:33:28 +01:00
float.h Update copyright years. 2015-01-05 13:33:28 +01:00
functional Update copyright years. 2015-01-05 13:33:28 +01:00
functional_hash.h Update copyright years. 2015-01-05 13:33:28 +01:00
gamma.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
hashtable.h Update copyright years. 2015-01-05 13:33:28 +01:00
hashtable_policy.h Update copyright years. 2015-01-05 13:33:28 +01:00
hypergeometric.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
inttypes.h Update copyright years. 2015-01-05 13:33:28 +01:00
legendre_function.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
limits.h Update copyright years. 2015-01-05 13:33:28 +01:00
math.h Update copyright years. 2015-01-05 13:33:28 +01:00
memory Update copyright years. 2015-01-05 13:33:28 +01:00
modified_bessel_func.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
poly_hermite.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
poly_laguerre.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
random Update copyright years. 2015-01-05 13:33:28 +01:00
random.h Update copyright years. 2015-01-05 13:33:28 +01:00
random.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
regex Update copyright years. 2015-01-05 13:33:28 +01:00
riemann_zeta.tcc Update copyright years. 2015-01-05 13:33:28 +01:00
shared_ptr.h Use atomics in guard.cc. 2015-06-12 09:49:41 +00:00
special_function_util.h Update copyright years. 2015-01-05 13:33:28 +01:00
stdarg.h Update copyright years. 2015-01-05 13:33:28 +01:00
stdbool.h Update copyright years. 2015-01-05 13:33:28 +01:00
stdint.h Update copyright years. 2015-01-05 13:33:28 +01:00
stdio.h Update copyright years. 2015-01-05 13:33:28 +01:00
stdlib.h Update copyright years. 2015-01-05 13:33:28 +01:00
tgmath.h Update copyright years. 2015-01-05 13:33:28 +01:00
tuple Update copyright years. 2015-01-05 13:33:28 +01:00
type_traits Update copyright years. 2015-01-05 13:33:28 +01:00
unordered_map Update copyright years. 2015-01-05 13:33:28 +01:00
unordered_map.h Update copyright years. 2015-01-05 13:33:28 +01:00
unordered_set Update copyright years. 2015-01-05 13:33:28 +01:00
unordered_set.h Update copyright years. 2015-01-05 13:33:28 +01:00
utility Update copyright years. 2015-01-05 13:33:28 +01:00
wchar.h Update copyright years. 2015-01-05 13:33:28 +01:00
wctype.h Update copyright years. 2015-01-05 13:33:28 +01:00