gcc/libstdc++-v3/libsupc++
Jonathan Wakely b4e77f9b76 re PR libstdc++/40296 ([C++0x] std::exception_ptr comparisons)
2010-06-06  Jonathan Wakely  <jwakely.gcc@gmail.com>

	PR libstdc++/40296
	* libsupc++/exception_ptr.h (exception_ptr::exception_ptr): Replace
	__safe_bool constructor with nullptr_t constructor in C++0x mode.
	(exception_ptr::operator bool): Add explicit conversion to bool.
	(swap(exception_ptr&, exception_ptr&)): Add.
	(exception_ptr::_M_safe_bool_dummy): Only declare for old ABI.
	* libsupc++/eh_ptr.cc (exception_ptr::_M_safe_bool_dummy): Move
	next to other functions retained for ABI compatibility.
	* testsuite/18_support/exception_ptr/requirements.cc: New.
	* testsuite/18_support/exception_ptr/requirements_neg.cc: New.

From-SVN: r160340
2010-06-06 14:27:23 +01:00
..
array_type_info.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
atexit_arm.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
bad_cast.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
bad_typeid.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
class_type_info.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
cxxabi-forced.h typeinfo: Add system_header pragma. 2010-02-18 17:58:53 +00:00
cxxabi.h typeinfo: Add system_header pragma. 2010-02-18 17:58:53 +00:00
del_op.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
del_opnt.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
del_opv.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
del_opvnt.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
dyncast.cc vmi_class_type_info.cc (__do_dyncast): Use src2dst hint to defer searching bases that don't overlap the desired address. 2009-07-06 18:13:51 -04:00
eh_alloc.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
eh_arm.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
eh_aux_runtime.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
eh_call.cc settings.h (get): Mark const. 2009-05-03 16:51:50 +00:00
eh_catch.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
eh_exception.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
eh_globals.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
eh_personality.cc ios_locale.cc: Fixes for -pedantic. 2010-02-17 05:43:24 +00:00
eh_ptr.cc re PR libstdc++/40296 ([C++0x] std::exception_ptr comparisons) 2010-06-06 14:27:23 +01:00
eh_term_handler.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
eh_terminate.cc eh_terminate.cc: Fixes for -fno-exceptions. 2009-09-29 00:15:30 +00:00
eh_throw.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
eh_type.cc * eh_type.cc (__cxa_current_exception_type) Mark throw(). 2009-04-18 22:18:21 +00:00
eh_unex_handler.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
enum_type_info.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
exception typeinfo: Add system_header pragma. 2010-02-18 17:58:53 +00:00
exception_defines.h Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
exception_ptr.h re PR libstdc++/40296 ([C++0x] std::exception_ptr comparisons) 2010-06-06 14:27:23 +01:00
function_type_info.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
fundamental_type_info.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
guard.cc user.cfg.in: Regenerate, add files. 2009-11-09 22:09:30 +00:00
initializer_list c++config (std::size_t, [...]): Provide typedefs. 2010-06-03 19:15:56 +00:00
Makefile.am Fix placement of LIBTOOLFLAGS variable in v3 makefile.am. 2009-08-23 07:28:35 +00:00
Makefile.in no-dist in non-imported automake dirs. 2010-05-04 18:58:11 +00:00
nested_exception.h nested_exception.h: Fix <bits/c++0x_warning.h> include. 2010-02-18 17:20:16 +00:00
new c++config (std::size_t, [...]): Provide typedefs. 2010-06-03 19:15:56 +00:00
new_handler.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
new_op.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
new_opnt.cc eh_terminate.cc: Fixes for -fno-exceptions. 2009-09-29 00:15:30 +00:00
new_opv.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
new_opvnt.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
pbase_type_info.cc ios_locale.cc: Fixes for -pedantic. 2010-02-17 05:43:24 +00:00
pmem_type_info.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
pointer_type_info.cc ios_locale.cc: Fixes for -pedantic. 2010-02-17 05:43:24 +00:00
pure.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
si_class_type_info.cc Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
tinfo2.cc mangle.c (mangle_type_string_for_rtti): Reapply 153734. 2009-10-30 22:23:59 +00:00
tinfo.cc mangle.c (mangle_type_string_for_rtti): Reapply 153734. 2009-10-30 22:23:59 +00:00
tinfo.h Licensing changes to GPLv3 resp. GPLv3 with GCC Runtime Exception. 2009-04-09 17:00:19 +02:00
typeinfo typeinfo: Add system_header pragma. 2010-02-18 17:58:53 +00:00
unwind-cxx.h settings.h (get): Mark const. 2009-05-03 16:51:50 +00:00
vec.cc eh_terminate.cc: Fixes for -fno-exceptions. 2009-09-29 00:15:30 +00:00
vmi_class_type_info.cc vmi_class_type_info.cc (__do_dyncast): Use src2dst hint to defer searching bases that don't overlap the desired address. 2009-07-06 18:13:51 -04:00
vterminate.cc eh_terminate.cc: Fixes for -fno-exceptions. 2009-09-29 00:15:30 +00:00