gcc/libstdc++-v3/testsuite/util
Jonathan Wakely 4c27c6584d libstdc++: Make testsuite usable with -fno-exceptions
Previously it was not possible to add -fno-exceptions to the testsuite
flags, because some files that are compiled by the v3-build_support
procedure failed with exceptions disabled.

This adjusts those files to still compile without exceptions (with
degraded functionality in some cases).

The sole testcase that explicitly checks for -fno-exceptions has also
been adjusted to use the more robust exceptions_enabled effective-target
keyword from gcc/testsuite/lib/target-supports.exp.

libstdc++-v3/ChangeLog:

	* testsuite/23_containers/vector/bool/72847.cc: Use the
	exceptions_enabled effective-target keyword instead of
	checking for an explicit -fno-exceptions option.
	* testsuite/util/testsuite_abi.cc (examine_symbol): Remove
	redundant try-catch.
	* testsuite/util/testsuite_allocator.h [!__cpp_exceptions]:
	Do not define check_allocate_max_size and memory_resource.
	* testsuite/util/testsuite_containers.h: Replace comment with
	#error if wrong standard dialect used.
	* testsuite/util/testsuite_shared.cc: Likewise.
2020-07-30 12:50:02 +01:00
..
common_type
debug
exception
hash_fn
io
native_type
performance
pstl
regression
statistic
thread
replacement_memory_operators.h
slow_clock.h
specfun_testcase.h
testsuite_abi_check.cc
testsuite_abi.cc libstdc++: Make testsuite usable with -fno-exceptions 2020-07-30 12:50:02 +01:00
testsuite_abi.h
testsuite_allocator.cc
testsuite_allocator.h libstdc++: Make testsuite usable with -fno-exceptions 2020-07-30 12:50:02 +01:00
testsuite_api.h
testsuite_character.cc
testsuite_character.h
testsuite_common_types.h PR libstdc++/95915 2020-06-29 00:36:38 +03:00
testsuite_container_traits.h
testsuite_containergen.h
testsuite_containers.h libstdc++: Make testsuite usable with -fno-exceptions 2020-07-30 12:50:02 +01:00
testsuite_counter_type.h
testsuite_error.h
testsuite_fs.h
testsuite_greedy_ops.h
testsuite_hooks.cc
testsuite_hooks.h
testsuite_io.h
testsuite_iterators.h libstdc++: Make std::copy_n work with negative and non-integral sizes 2020-06-04 14:21:34 +01:00
testsuite_new_operators.h
testsuite_performance.h
testsuite_random.h
testsuite_regex.h
testsuite_rng.h
testsuite_rvalref.h
testsuite_shared.cc libstdc++: Make testsuite usable with -fno-exceptions 2020-07-30 12:50:02 +01:00
testsuite_tr1.h