gcc/libstdc++-v3/libsupc++
Jonathan Wakely b66e5a95c0 PR libstdc++/68210 adjust operator new and delete for LWG 206
Ensure that nothrow versions of new and delete call the ordinary
versions of new or delete, instead of calling malloc or free directly.

These files are all compiled with -std=gnu++14 so can use noexcept and
nullptr to make the code more readable.

	PR libstdc++/68210
	* doc/xml/manual/intro.xml: Document LWG 206 change.
	* libsupc++/del_op.cc: Replace _GLIBCXX_USE_NOEXCEPT with noexcept.
	* libsupc++/del_opa.cc: Likewise.
	* libsupc++/del_opant.cc: Likewise.
	* libsupc++/del_opnt.cc: Likewise. Call operator delete(ptr) instead
	of free(ptr).
	* libsupc++/del_ops.cc: Replace _GLIBCXX_USE_NOEXCEPT with noexcept.
	* libsupc++/del_opsa.cc: Likewise.
	* libsupc++/del_opva.cc: Likewise.
	* libsupc++/del_opvant.cc: Likewise.
	* libsupc++/del_opvnt.cc: Likewise. Call operator delete[](ptr)
	instead of operator delete(ptr).
	* libsupc++/del_opvs.cc: Replace _GLIBCXX_USE_NOEXCEPT with noexcept.
	* libsupc++/del_opvsa.cc: Likewise.
	* libsupc++/new_op.cc: Use __builtin_expect in check for zero size.
	* libsupc++/new_opa.cc: Use nullptr instead of literal 0.
	* libsupc++/new_opant.cc: Likewise. Replace _GLIBCXX_USE_NOEXCEPT
	with noexcept.
	* libsupc++/new_opnt.cc: Likewise. Call operator new(sz) instead of
	malloc(sz).
	* libsupc++/new_opvant.cc: Use nullptr and noexcept.
	* libsupc++/new_opvnt.cc: Likewise. Call operator new[](sz) instead of
	operator new(sz, nothrow).
	* testsuite/18_support/new_nothrow.cc: New test.

From-SVN: r263478
2018-08-10 21:20:27 +01:00
..
array_type_info.cc
atexit_arm.cc
atexit_thread.cc
atomic_lockfree_defines.h
bad_alloc.cc
bad_array_length.cc
bad_array_new.cc
bad_cast.cc
bad_typeid.cc
class_type_info.cc
cxxabi.h
cxxabi_forced.h
cxxabi_init_exception.h
del_op.cc PR libstdc++/68210 adjust operator new and delete for LWG 206 2018-08-10 21:20:27 +01:00
del_opa.cc PR libstdc++/68210 adjust operator new and delete for LWG 206 2018-08-10 21:20:27 +01:00
del_opant.cc PR libstdc++/68210 adjust operator new and delete for LWG 206 2018-08-10 21:20:27 +01:00
del_opnt.cc PR libstdc++/68210 adjust operator new and delete for LWG 206 2018-08-10 21:20:27 +01:00
del_ops.cc PR libstdc++/68210 adjust operator new and delete for LWG 206 2018-08-10 21:20:27 +01:00
del_opsa.cc PR libstdc++/68210 adjust operator new and delete for LWG 206 2018-08-10 21:20:27 +01:00
del_opv.cc
del_opva.cc PR libstdc++/68210 adjust operator new and delete for LWG 206 2018-08-10 21:20:27 +01:00
del_opvant.cc PR libstdc++/68210 adjust operator new and delete for LWG 206 2018-08-10 21:20:27 +01:00
del_opvnt.cc PR libstdc++/68210 adjust operator new and delete for LWG 206 2018-08-10 21:20:27 +01:00
del_opvs.cc PR libstdc++/68210 adjust operator new and delete for LWG 206 2018-08-10 21:20:27 +01:00
del_opvsa.cc PR libstdc++/68210 adjust operator new and delete for LWG 206 2018-08-10 21:20:27 +01:00
dyncast.cc
eh_alloc.cc
eh_arm.cc
eh_atomics.h
eh_aux_runtime.cc
eh_call.cc
eh_catch.cc
eh_exception.cc
eh_globals.cc
eh_personality.cc
eh_ptr.cc
eh_term_handler.cc
eh_terminate.cc
eh_throw.cc
eh_tm.cc
eh_type.cc
eh_unex_handler.cc
enum_type_info.cc
exception
exception.h PR libstdc++/85831 define move constructors and operators for exceptions 2018-07-05 22:29:51 +01:00
exception_defines.h
exception_ptr.h
function_type_info.cc
fundamental_type_info.cc
guard.cc
guard_error.cc
hash_bytes.cc
hash_bytes.h
initializer_list
Makefile.am
Makefile.in PR libstdc++/86450 use -Wabi=2 and simplify -Werror use 2018-07-17 14:18:47 +01:00
nested_exception.cc
nested_exception.h
new Don't unconditionally define feature test macros in <version> 2018-07-31 23:31:14 +01:00
new_handler.cc
new_op.cc PR libstdc++/68210 adjust operator new and delete for LWG 206 2018-08-10 21:20:27 +01:00
new_opa.cc PR libstdc++/68210 adjust operator new and delete for LWG 206 2018-08-10 21:20:27 +01:00
new_opant.cc PR libstdc++/68210 adjust operator new and delete for LWG 206 2018-08-10 21:20:27 +01:00
new_opnt.cc PR libstdc++/68210 adjust operator new and delete for LWG 206 2018-08-10 21:20:27 +01:00
new_opv.cc
new_opva.cc
new_opvant.cc PR libstdc++/68210 adjust operator new and delete for LWG 206 2018-08-10 21:20:27 +01:00
new_opvnt.cc PR libstdc++/68210 adjust operator new and delete for LWG 206 2018-08-10 21:20:27 +01:00
pbase_type_info.cc
pmem_type_info.cc
pointer_type_info.cc
pure.cc
si_class_type_info.cc
tinfo.cc
tinfo.h
tinfo2.cc
typeinfo
unwind-cxx.h
vec.cc
vmi_class_type_info.cc
vterminate.cc
vtv_stubs.cc