gcc/libstdc++-v3/libsupc++
Jason Merrill af63ba4b30 Implement P0035R4, C++17 new of over-aligned types.
gcc/cp/
	* cp-tree.h (enum cp_tree_index): Add CPTI_ALIGN_TYPE.
	(align_type_node): New macro.
	* call.c (build_operator_new_call): Handle C++17 aligned new.
	(second_parm_is_size_t, build_op_delete_call): Likewise.
	(non_placement_deallocation_fn_p): Likewise. Rename to
	usual_deallocation_fn_p.
	(aligned_allocation_fn_p, aligned_deallocation_fn_p): New.
	* decl.c (cxx_init_decl_processing): Add aligned new support.
	* init.c (type_has_new_extended_alignment): New.
	(build_new_1): Handle aligned new.
	* tree.c (vec_copy_and_insert): New.
gcc/c-family/
	* c.opt: Add -faligned-new and -Waligned-new.
	* c-common.c (max_align_t_align): Split out from...
	(cxx_fundamental_alignment_p): ...here.
	* c-common.h: Declare it.
	* c-cppbuiltin.c (c_cpp_builtins): Handle aligned new.
libstdc++-v3/
	* libsupc++/new: Declare aligned new/delete operators.
	* config/abi/pre/gnu.ver: Export them.
	* configure.ac: Check for aligned_alloc, posix_memalign, memalign,
	_aligned_malloc.
	* libsupc++/new_opa.cc: New.
	* libsupc++/new_opant.cc: New.
	* libsupc++/new_opva.cc: New.
	* libsupc++/new_opva.cc: New.
	* libsupc++/del_opa.cc: New.
	* libsupc++/del_opant.cc: New.
	* libsupc++/del_opsa.cc: New.
	* libsupc++/del_opva.cc: New.
	* libsupc++/del_opvant.cc: New.
	* libsupc++/del_opvsa.cc: New.
	* libsupc++/Makefile.am: Build them.

From-SVN: r240056
2016-09-09 17:22:15 -04: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_forced.h
cxxabi_init_exception.h libstdc++/68297 avoid throw/catch in make_exception_ptr 2016-08-22 18:29:31 +01:00
cxxabi.h libstdc++/68297 avoid throw/catch in make_exception_ptr 2016-08-22 18:29:31 +01:00
del_op.cc
del_opa.cc Implement P0035R4, C++17 new of over-aligned types. 2016-09-09 17:22:15 -04:00
del_opant.cc Implement P0035R4, C++17 new of over-aligned types. 2016-09-09 17:22:15 -04:00
del_opnt.cc
del_ops.cc
del_opsa.cc Implement P0035R4, C++17 new of over-aligned types. 2016-09-09 17:22:15 -04:00
del_opv.cc
del_opva.cc Implement P0035R4, C++17 new of over-aligned types. 2016-09-09 17:22:15 -04:00
del_opvant.cc Implement P0035R4, C++17 new of over-aligned types. 2016-09-09 17:22:15 -04:00
del_opvnt.cc
del_opvs.cc
del_opvsa.cc Implement P0035R4, C++17 new of over-aligned types. 2016-09-09 17:22:15 -04:00
dyncast.cc
eh_alloc.cc
eh_arm.cc
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 libstdc++/68297 avoid throw/catch in make_exception_ptr 2016-08-22 18:29:31 +01:00
eh_tm.cc
eh_type.cc
eh_unex_handler.cc
enum_type_info.cc
exception libstdc++/68297 avoid throw/catch in make_exception_ptr 2016-08-22 18:29:31 +01:00
exception_defines.h
exception_ptr.h libstdc++/68297 avoid throw/catch in make_exception_ptr 2016-08-22 18:29:31 +01:00
exception.h libstdc++/68297 avoid throw/catch in make_exception_ptr 2016-08-22 18:29:31 +01:00
function_type_info.cc
fundamental_type_info.cc
guard_error.cc
guard.cc
hash_bytes.cc
hash_bytes.h
initializer_list
Makefile.am Implement P0035R4, C++17 new of over-aligned types. 2016-09-09 17:22:15 -04:00
Makefile.in Implement P0035R4, C++17 new of over-aligned types. 2016-09-09 17:22:15 -04:00
nested_exception.cc
nested_exception.h
new Implement P0035R4, C++17 new of over-aligned types. 2016-09-09 17:22:15 -04:00
new_handler.cc
new_op.cc
new_opa.cc Implement P0035R4, C++17 new of over-aligned types. 2016-09-09 17:22:15 -04:00
new_opant.cc Implement P0035R4, C++17 new of over-aligned types. 2016-09-09 17:22:15 -04:00
new_opnt.cc
new_opv.cc
new_opva.cc Implement P0035R4, C++17 new of over-aligned types. 2016-09-09 17:22:15 -04:00
new_opvant.cc Implement P0035R4, C++17 new of over-aligned types. 2016-09-09 17:22:15 -04:00
new_opvnt.cc
pbase_type_info.cc Use static pointer to member when catching nullptr 2016-07-20 19:21:48 +01:00
pmem_type_info.cc
pointer_type_info.cc
pure.cc
si_class_type_info.cc
tinfo2.cc
tinfo.cc
tinfo.h
typeinfo libstdc++/68297 avoid throw/catch in make_exception_ptr 2016-08-22 18:29:31 +01:00
unwind-cxx.h
vec.cc
vmi_class_type_info.cc
vterminate.cc
vtv_stubs.cc