gcc/libstdc++-v3/testsuite
Pauli Nieminen ed3cb49703 Support exception propagation without lock-free atomic int
2017-01-04  Pauli Nieminen  <suokkos@gmail.com>
	    Jonathan Wakely  <jwakely@redhat.com>

	PR libstdc++/64735
	* acinclude.m4 (GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER): Define.
	* config.h.in: Regenerate.
	* config/abi/pre/gnu.ver [HAVE_EXCEPTION_PTR_SINCE_GCC46]
	(GLIBCXX_3.4.15, GLIBCXX_3.4.21, CXXABI_1.3.3, CXXABI_1.3.5): Make
	exports for exception_ptr, nested_exception, and future conditional.
	[HAVE_EXCEPTION_PTR_SINCE_GCC46] (GLIBCXX_3.4.23, CXXABI_1.3.11): Add
	exports for exception_ptr, nested_exception, and future conditional.
	* configure: Regenerate.
	* configure.ac: Use GLIBCXX_CHECK_EXCEPTION_PTR_SYMVER.
	* include/std/future: Remove check for ATOMIC_INT_LOCK_FREE
	* libsupc++/eh_atomics.h: New file for internal use only.
	(__eh_atomic_inc, __eh_atomic_dec): New.
	* libsupc++/eh_ptr.cc (exception_ptr::_M_addref)
	(exception_ptr::_M_release) (__gxx_dependent_exception_cleanup)
	(rethrow_exception): Use eh_atomics.h reference counting helpers.
	* libsupc++/eh_throw.cc (__gxx_exception_cleanup): Likewise.
	* libsupc++/eh_tm.cc (free_any_cxa_exception): Likewise.
	* libsupc++/exception: Remove check for ATOMIC_INT_LOCK_FREE.
	* libsupc++/exception_ptr.h: Likewise.
	* libsupc++/guard.cc: Include header for ATOMIC_INT_LOCK_FREE macro.
	* libsupc++/nested_exception.cc: Remove check for
	ATOMIC_INT_LOCK_FREE.
	* libsupc++/nested_exception.h: Likewise.
	* src/c++11/future.cc: Likewise.
	* testsuite/18_support/exception_ptr/*: Remove atomic builtins checks.
	* testsuite/18_support/nested_exception/*: Likewise.
	* testsuite/30_threads/async/*: Likewise.
	* testsuite/30_threads/future/*: Likewise.
	* testsuite/30_threads/headers/future/types_std_c++0x.cc: Likewise.
	* testsuite/30_threads/packaged_task/*: Likewise.
	* testsuite/30_threads/promise/*: Likewise.
	* testsuite/30_threads/shared_future/*: Likewise.

Co-Authored-By: Jonathan Wakely <jwakely@redhat.com>

From-SVN: r244051
2017-01-04 10:54:59 +00:00
..
17_intro Update copyright years. 2017-01-01 13:07:43 +01:00
18_support Support exception propagation without lock-free atomic int 2017-01-04 10:54:59 +00:00
19_diagnostics Update copyright years. 2017-01-01 13:07:43 +01:00
20_util Update copyright years. 2017-01-01 13:07:43 +01:00
21_strings Update copyright years. 2017-01-01 13:07:43 +01:00
22_locale Update copyright years. 2017-01-01 13:07:43 +01:00
23_containers Update copyright years. 2017-01-01 13:07:43 +01:00
24_iterators Update copyright years. 2017-01-01 13:07:43 +01:00
25_algorithms Update copyright years. 2017-01-01 13:07:43 +01:00
26_numerics Update copyright years. 2017-01-01 13:07:43 +01:00
27_io Update copyright years. 2017-01-01 13:07:43 +01:00
28_regex Update copyright years. 2017-01-01 13:07:43 +01:00
29_atomics Update copyright years. 2017-01-01 13:07:43 +01:00
30_threads Support exception propagation without lock-free atomic int 2017-01-04 10:54:59 +00:00
abi Update copyright years. 2017-01-01 13:07:43 +01:00
backward Update copyright years. 2017-01-01 13:07:43 +01:00
config Update copyright years. 2017-01-01 13:07:43 +01:00
data
decimal Update copyright years. 2017-01-01 13:07:43 +01:00
experimental Update copyright years. 2017-01-01 13:07:43 +01:00
ext Update copyright years. 2017-01-01 13:07:43 +01:00
lib Update copyright years. 2017-01-01 13:07:43 +01:00
libstdc++-abi Update copyright years. 2017-01-01 13:07:43 +01:00
libstdc++-dg Update copyright years. 2017-01-01 13:07:43 +01:00
libstdc++-prettyprinters Update copyright years. 2017-01-01 13:07:43 +01:00
libstdc++-xmethods Update copyright years. 2017-01-01 13:07:43 +01:00
performance Update copyright years. 2017-01-01 13:07:43 +01:00
special_functions Update copyright years. 2017-01-01 13:07:43 +01:00
tr1 Update copyright years. 2017-01-01 13:07:43 +01:00
tr2 Update copyright years. 2017-01-01 13:07:43 +01:00
util Update copyright years. 2017-01-01 13:07:43 +01:00
Makefile.am Update copyright years. 2017-01-01 13:07:43 +01:00
Makefile.in Makefile.in ($(lang_checks_parallelized)): Fix detection of -j argument. 2016-11-22 17:33:43 +01:00