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
bessel_function.tcc
beta_function.tcc
ccomplex
cctype
cfenv
cfloat
cinttypes
climits
cmath
complex
complex.h
cstdarg
cstdbool
cstdint
cstdio
cstdlib
ctgmath
ctime
ctype.h
cwchar
cwctype
ell_integral.tcc
exp_integral.tcc
fenv.h
float.h
functional
functional_hash.h
gamma.tcc
hashtable_policy.h
hashtable.h
hypergeometric.tcc
inttypes.h
legendre_function.tcc
limits.h
math.h
memory
modified_bessel_func.tcc
poly_hermite.tcc
poly_laguerre.tcc
random
random.h
random.tcc
regex
riemann_zeta.tcc
shared_ptr.h
special_function_util.h
stdarg.h
stdbool.h
stdint.h
stdio.h
stdlib.h
tgmath.h
tuple
type_traits
unordered_map
unordered_map.h
unordered_set
unordered_set.h
utility
wchar.h
wctype.h