gcc/libstdc++-v3/libsupc++
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_type_info.cc Update copyright years. 2015-01-05 13:33:28 +01:00
atexit_arm.cc Update copyright years. 2015-01-05 13:33:28 +01:00
atexit_thread.cc Update copyright years. 2015-01-05 13:33:28 +01:00
atomic_lockfree_defines.h Update copyright years. 2015-01-05 13:33:28 +01:00
bad_alloc.cc Update copyright years. 2015-01-05 13:33:28 +01:00
bad_array_length.cc Update copyright years. 2015-01-05 13:33:28 +01:00
bad_array_new.cc Update copyright years. 2015-01-05 13:33:28 +01:00
bad_cast.cc Update copyright years. 2015-01-05 13:33:28 +01:00
bad_typeid.cc Update copyright years. 2015-01-05 13:33:28 +01:00
class_type_info.cc Update copyright years. 2015-01-05 13:33:28 +01:00
cxxabi_forced.h Update copyright years. 2015-01-05 13:33:28 +01:00
cxxabi.h Update copyright years. 2015-01-05 13:33:28 +01:00
del_op.cc del_opv.cc: Suppress -Wsized-deallocation. 2015-05-21 11:12:40 -04:00
del_opnt.cc Update copyright years. 2015-01-05 13:33:28 +01:00
del_ops.cc Update copyright years. 2015-01-05 13:33:28 +01:00
del_opv.cc del_opv.cc: Suppress -Wsized-deallocation. 2015-05-21 11:12:40 -04:00
del_opvnt.cc Update copyright years. 2015-01-05 13:33:28 +01:00
del_opvs.cc Update copyright years. 2015-01-05 13:33:28 +01:00
dyncast.cc Update copyright years. 2015-01-05 13:33:28 +01:00
eh_alloc.cc re PR libstdc++/64798 (g++.old-deja/g++.eh/badalloc1.C FAILs) 2015-01-28 09:53:39 +00:00
eh_arm.cc Update copyright years. 2015-01-05 13:33:28 +01:00
eh_aux_runtime.cc Update copyright years. 2015-01-05 13:33:28 +01:00
eh_call.cc Update copyright years. 2015-01-05 13:33:28 +01:00
eh_catch.cc eh_catch.cc (uncaught_exception, [...]): Return false or zero if the library is built without exceptions. 2015-04-27 22:06:17 +01:00
eh_exception.cc Update copyright years. 2015-01-05 13:33:28 +01:00
eh_globals.cc Update copyright years. 2015-01-05 13:33:28 +01:00
eh_personality.cc sjlj.m4: New file. 2015-05-13 21:15:31 +00:00
eh_ptr.cc sjlj.m4: New file. 2015-05-13 21:15:31 +00:00
eh_term_handler.cc eh_catch.cc (uncaught_exception, [...]): Return false or zero if the library is built without exceptions. 2015-04-27 22:06:17 +01:00
eh_terminate.cc Update copyright years. 2015-01-05 13:33:28 +01:00
eh_throw.cc sjlj.m4: New file. 2015-05-13 21:15:31 +00:00
eh_tm.cc Update copyright years. 2015-01-05 13:33:28 +01:00
eh_type.cc Update copyright years. 2015-01-05 13:33:28 +01:00
eh_unex_handler.cc Update copyright years. 2015-01-05 13:33:28 +01:00
enum_type_info.cc Update copyright years. 2015-01-05 13:33:28 +01:00
exception exception (uncaught_exceptions): Add comment. 2015-04-28 13:07:40 +01:00
exception_defines.h Update copyright years. 2015-01-05 13:33:28 +01:00
exception_ptr.h Update copyright years. 2015-01-05 13:33:28 +01:00
function_type_info.cc Update copyright years. 2015-01-05 13:33:28 +01:00
fundamental_type_info.cc Update copyright years. 2015-01-05 13:33:28 +01:00
guard_error.cc Update copyright years. 2015-01-05 13:33:28 +01:00
guard.cc Use atomics in guard.cc. 2015-06-12 09:49:41 +00:00
hash_bytes.cc Update copyright years. 2015-01-05 13:33:28 +01:00
hash_bytes.h Update copyright years. 2015-01-05 13:33:28 +01:00
initializer_list Update copyright years. 2015-01-05 13:33:28 +01:00
Makefile.am Committing VTV Cygwin patch for Patrick Wollgast 2015-01-29 00:03:56 -08:00
Makefile.in libstdc++: Bump to automake 1.11.6 2015-05-13 10:51:03 +00:00
nested_exception.cc Update copyright years. 2015-01-05 13:33:28 +01:00
nested_exception.h nested_exception.h: Do not try to derive from final classes. 2015-03-17 14:24:55 +00:00
new Update copyright years. 2015-01-05 13:33:28 +01:00
new_handler.cc Update copyright years. 2015-01-05 13:33:28 +01:00
new_op.cc Update copyright years. 2015-01-05 13:33:28 +01:00
new_opnt.cc Update copyright years. 2015-01-05 13:33:28 +01:00
new_opv.cc Update copyright years. 2015-01-05 13:33:28 +01:00
new_opvnt.cc Update copyright years. 2015-01-05 13:33:28 +01:00
pbase_type_info.cc Update copyright years. 2015-01-05 13:33:28 +01:00
pmem_type_info.cc Update copyright years. 2015-01-05 13:33:28 +01:00
pointer_type_info.cc Update copyright years. 2015-01-05 13:33:28 +01:00
pure.cc Update copyright years. 2015-01-05 13:33:28 +01:00
si_class_type_info.cc Update copyright years. 2015-01-05 13:33:28 +01:00
tinfo2.cc Update copyright years. 2015-01-05 13:33:28 +01:00
tinfo.cc Update copyright years. 2015-01-05 13:33:28 +01:00
tinfo.h Update copyright years. 2015-01-05 13:33:28 +01:00
typeinfo Update copyright years. 2015-01-05 13:33:28 +01:00
unwind-cxx.h unwind-arm-common.h: Revert previous commit. 2015-01-09 15:22:19 +01:00
vec.cc Update copyright years. 2015-01-05 13:33:28 +01:00
vmi_class_type_info.cc Update copyright years. 2015-01-05 13:33:28 +01:00
vterminate.cc Update copyright years. 2015-01-05 13:33:28 +01:00
vtv_stubs.cc Committing VTV Cygwin patch for Patrick Wollgast 2015-01-29 00:03:56 -08:00