gcc/libstdc++-v3/testsuite
Gleb Natapov 27abac2648 libstdc++/68297 avoid throw/catch in make_exception_ptr
2016-08-22  Gleb Natapov  <gleb@scylladb.com>

	PR libstdc++/68297
	* config/abi/pre/gnu-versioned-namespace.ver: Export
	__cxa_init_primary_exception and std::exception_ptr(void*).
	* config/abi/pre/gnu.ver (CXXABI_1.3.11) : Add new symbol version and
	export __cxa_init_primary_exception and std::exception_ptr(void*).
	* include/Makefile.am: Add new headers.
	* include/Makefile.in: Regenerate.
	* libsupc++/Makefile.am: Add new headers.
	* libsupc++/Makefile.in: Regenerate.
	* libsupc++/cxxabi.h (__cxa_allocate_exception): Move to ...
	* libsupc++/cxxabi_init_exception.h: New header.
	(__cxa_init_primary_exception): Declare.
	* libsupc++/eh_throw.cc (__cxa_init_primary_exception): Define.
	(__cxa_throw): Use __cxa_init_primary_exception.
	* libsupc++/exception (std::exception): Move to ...
	* libsupc++/exception.h: New header.
	* libsupc++/exception_ptr.h (__exception_ptr::exception_ptr): Add
	friend declaration.
	(__exception_ptr::__dest_thunk): New function template.
	(std::make_exception_ptr) [__cpp_rtti && !_GLIBCXX_HAVE_CDTOR_CALLABI]:
	Use __cxa_allocate_exception and __cxa_init_primary_exception to
	create exception_ptr.
	* libsupc++/typeinfo: Include bits/exception.h instead of exception.
	* testsuite/util/testsuite_abi.cc: Add CXXABI_1.3.11 version.

From-SVN: r239664
2016-08-22 18:29:31 +01:00
..
17_intro Remove "-x c" from dg-options in libstdc++ C++ test 2016-08-01 13:18:23 +01:00
18_support Skip C tests if test flags include C++ options 2016-08-02 14:32:26 +01:00
19_diagnostics Move dg-error directives to relevant lines 2016-08-02 20:34:25 +01:00
20_util Add noexcept to std::function swap 2016-08-22 17:47:34 +01:00
21_strings Simplify dg-options for tests using pthreads 2016-08-19 17:36:07 +01:00
22_locale Simplify dg-options for tests using pthreads 2016-08-19 17:36:07 +01:00
23_containers Simplify dg-options for tests using pthreads 2016-08-19 17:36:07 +01:00
24_iterators Adjust testcase for C++14 compatibility 2016-08-17 14:38:58 +01:00
25_algorithms Use effective target instead of -std in dg-options 2016-08-17 20:43:13 +01:00
26_numerics Add comment explaining why -std=c++14 is needed. 2016-08-17 17:09:15 +01:00
27_io Simplify dg-options for tests using pthreads 2016-08-19 17:36:07 +01:00
28_regex Remove unused headers and variables from libstdc++ tests 2016-08-01 13:18:08 +01:00
29_atomics Define std::atomic<T>::is_always_lock_free for C++17 2016-08-19 16:42:27 +01:00
30_threads Simplify dg-options for tests using pthreads 2016-08-19 17:36:07 +01:00
abi Skip C tests if test flags include C++ options 2016-08-02 14:32:26 +01:00
backward Fix __gnu_cxx::hash_set test to pass in C++98 mode 2016-08-01 13:45:47 +01:00
config
data
decimal
experimental Define std::not_fn for C++17 2016-08-19 16:42:34 +01:00
ext Simplify dg-options for tests using pthreads 2016-08-19 17:36:07 +01:00
lib * testsuite/lib/libstdc++.exp: Fix typo in comment. 2016-08-06 11:44:17 +01:00
libstdc++-abi
libstdc++-dg
libstdc++-prettyprinters
libstdc++-xmethods
performance
special_functions Only run math special function tests for C++11 and later 2016-08-02 14:32:16 +01:00
tr1 Simplify dg-options for tests using pthreads 2016-08-19 17:36:07 +01:00
tr2
util libstdc++/68297 avoid throw/catch in make_exception_ptr 2016-08-22 18:29:31 +01:00
Makefile.am
Makefile.in