gcc/libstdc++-v3/testsuite
Paolo Carlini 30a333ceeb [multiple changes]
2008-08-23  Paolo Carlini  <paolo.carlini@oracle.com>

	* testsuite/lib/libstdc++.exp (check_v3_target_atomic_builtins): Add.
	* testsuite/lib/dg-options.exp (dg-require-atomic-builtins): Likewise.
	* testsuite/18_support/exception_ptr/current_exception.cc: Use it.
        * testsuite/18_support/exception_ptr/rethrow_exception.cc: Likewise.
        * testsuite/18_support/exception_ptr/lifespan.cc: Likewise.

2008-08-23  Sebastian Redl <sebastian.redl@getdesigned.at>

	Add (again) exception propagation support as per N2179.  Feature is
	available only when _GLIBCXX_ATOMIC_BUILTINS_4 is defined.
	* libsupc++/exception_ptr.h (exception_ptr, current_exception,
        copy_exception, rethrow_exception): New file, implement exception
	propagation.
        * libsupc++/eh_ptr.cc (exception_ptr, current_exception,
        rethrow_exception, __gxx_dependent_exception_cleanup): Likewise.
        * libsupc++/unwind-cxx.h (__cxa_exception): Add reference count.
	(__cxa_dependent_exception, __cxa_allocate_dependent_exception,
        __cxa_free_dependent_exception, __get_dependent_exception_from_ue,
        __GXX_INIT_DEPENDENT_EXCEPTION_CLASS, __is_dependent_exception,
        __gxx_dependent_exception_class, __get_object_from_ue,
        __get_object_from_ambiguous_exception): Add.
        (__GXX_INIT_EXCEPTION_CLASS, __gxx_exception_class): Rename.
        (__is_gxx_exception_class): Handle dependent exceptions.
        * libsupc++/eh_arm.cc (__cxa_type_match): Likewise.
        * libsupc++/eh_call.cc (__cxa_call_unexpected): Likewise.
        * libsupc++/eh_personality.cc (__gxx_personality_*): Likewise.
        * libsupc++/eh_type.cc (__cxa_current_exception_type): Likewise.
        * libsupc++/eh_alloc.cc (__cxa_allocate_dependent_exception,
        __cxa_free_dependent_exception): Add.
        * libsupc++/eh_throw.cc (__gxx_exception_cleanup): Handle reference
        counting.
        * libsupc++/exception: Conditionally include exception_ptr.h.
        * libsupc++/Makefile.am: Register new files.
        * libsupc++/Makefile.in: Regenerate.
        * config/abi/pre/gnu.ver: Add new symbols.
        * testsuite/18_support/exception_ptr/current_exception.cc: Test the
        core functionality of current_exception().
        * testsuite/18_support/exception_ptr/rethrow_exception.cc: Test the
        core functionality of rethrow_exception().
        * testsuite/18_support/exception_ptr/lifespan.cc: Test the life span of
        exception objects during exception propagation.

From-SVN: r139509
2008-08-23 11:28:30 +00:00
..
17_intro
18_support [multiple changes] 2008-08-23 11:28:30 +00:00
19_diagnostics testsuite_api.h (diamond_derivation<>::test): Expect ambiguity together with the standard exception classes. 2008-08-05 20:39:48 +00:00
20_util testsuite_api.h (diamond_derivation<>::test): Expect ambiguity together with the standard exception classes. 2008-08-05 20:39:48 +00:00
21_strings PR libstdc++/33979 (partial) 2008-08-20 19:29:54 +00:00
22_locale
23_containers Add initializer_list support as per N2679. 2008-07-21 15:40:39 -04:00
24_iterators
25_algorithms
26_numerics Add initializer_list support as per N2679. 2008-07-21 15:40:39 -04:00
27_io re PR testsuite/37149 (27_io/basic_ostream/inserters_other/char/error_code.cc) 2008-08-18 17:48:15 +00:00
28_regex Add initializer_list support as per N2679. 2008-07-21 15:40:39 -04:00
29_atomics
30_threads condition_variable: Update to N2691 WD. 2008-07-23 22:17:31 +00:00
abi
backward
config
data
ext PR libstdc++/33979 (partial) 2008-08-20 19:29:54 +00:00
lib [multiple changes] 2008-08-23 11:28:30 +00:00
libstdc++-abi
libstdc++-dg
performance
thread
tr1 Formatting fixes for include/tr1_impl/regex. 2008-08-11 21:06:00 +00:00
util testsuite_api.h (diamond_derivation<>::test): Expect ambiguity together with the standard exception classes. 2008-08-05 20:39:48 +00:00
Makefile.am
Makefile.in acinclude.m4 ([GLIBCXX_CHECK_CLOCK_GETTIME]): Reinstate clock_gettime search, but only in libposix4, never link librt. 2008-08-01 14:06:38 +00:00