A destroying operator delete takes responsibility for calling the destructor for the object it is deleting; this is intended to be useful for sized delete of a class allocated with a trailing buffer, where the compiler can't know the size of the allocation, and so would pass the wrong size to the non-destroying sized operator delete. gcc/c-family/ * c-cppbuiltin.c (c_cpp_builtins): Define __cpp_impl_destroying_delete. gcc/cp/ * call.c (std_destroying_delete_t_p, destroying_delete_p): New. (aligned_deallocation_fn_p, usual_deallocation_fn_p): Use destroying_delete_p. (build_op_delete_call): Handle destroying delete. * decl2.c (coerce_delete_type): Handle destroying delete. * init.c (build_delete): Don't call dtor with destroying delete. * optimize.c (build_delete_destructor_body): Likewise. libstdc++-v3/ * libsupc++/new (std::destroying_delete_t): New. From-SVN: r266053
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| Makefile.am | Loading commit data... | |
| Makefile.in | Loading commit data... | |
| array_type_info.cc | Loading commit data... | |
| atexit_arm.cc | Loading commit data... | |
| atexit_thread.cc | Loading commit data... | |
| atomic_lockfree_defines.h | Loading commit data... | |
| bad_alloc.cc | Loading commit data... | |
| bad_array_length.cc | Loading commit data... | |
| bad_array_new.cc | Loading commit data... | |
| bad_cast.cc | Loading commit data... | |
| bad_typeid.cc | Loading commit data... | |
| class_type_info.cc | Loading commit data... | |
| cxxabi.h | Loading commit data... | |
| cxxabi_forced.h | Loading commit data... | |
| cxxabi_init_exception.h | Loading commit data... | |
| del_op.cc | Loading commit data... | |
| del_opa.cc | Loading commit data... | |
| del_opant.cc | Loading commit data... | |
| del_opnt.cc | Loading commit data... | |
| del_ops.cc | Loading commit data... | |
| del_opsa.cc | Loading commit data... | |
| del_opv.cc | Loading commit data... | |
| del_opva.cc | Loading commit data... | |
| del_opvant.cc | Loading commit data... | |
| del_opvnt.cc | Loading commit data... | |
| del_opvs.cc | Loading commit data... | |
| del_opvsa.cc | Loading commit data... | |
| dyncast.cc | Loading commit data... | |
| eh_alloc.cc | Loading commit data... | |
| eh_arm.cc | Loading commit data... | |
| eh_atomics.h | Loading commit data... | |
| eh_aux_runtime.cc | Loading commit data... | |
| eh_call.cc | Loading commit data... | |
| eh_catch.cc | Loading commit data... | |
| eh_exception.cc | Loading commit data... | |
| eh_globals.cc | Loading commit data... | |
| eh_personality.cc | Loading commit data... | |
| eh_ptr.cc | Loading commit data... | |
| eh_term_handler.cc | Loading commit data... | |
| eh_terminate.cc | Loading commit data... | |
| eh_throw.cc | Loading commit data... | |
| eh_tm.cc | Loading commit data... | |
| eh_type.cc | Loading commit data... | |
| eh_unex_handler.cc | Loading commit data... | |
| enum_type_info.cc | Loading commit data... | |
| exception | Loading commit data... | |
| exception.h | Loading commit data... | |
| exception_defines.h | Loading commit data... | |
| exception_ptr.h | Loading commit data... | |
| function_type_info.cc | Loading commit data... | |
| fundamental_type_info.cc | Loading commit data... | |
| guard.cc | Loading commit data... | |
| guard_error.cc | Loading commit data... | |
| hash_bytes.cc | Loading commit data... | |
| hash_bytes.h | Loading commit data... | |
| initializer_list | Loading commit data... | |
| nested_exception.cc | Loading commit data... | |
| nested_exception.h | Loading commit data... | |
| new | Loading commit data... | |
| new_handler.cc | Loading commit data... | |
| new_op.cc | Loading commit data... | |
| new_opa.cc | Loading commit data... | |
| new_opant.cc | Loading commit data... | |
| new_opnt.cc | Loading commit data... | |
| new_opv.cc | Loading commit data... | |
| new_opva.cc | Loading commit data... | |
| new_opvant.cc | Loading commit data... | |
| new_opvnt.cc | Loading commit data... | |
| pbase_type_info.cc | Loading commit data... | |
| pmem_type_info.cc | Loading commit data... | |
| pointer_type_info.cc | Loading commit data... | |
| pure.cc | Loading commit data... | |
| si_class_type_info.cc | Loading commit data... | |
| tinfo.cc | Loading commit data... | |
| tinfo.h | Loading commit data... | |
| tinfo2.cc | Loading commit data... | |
| typeinfo | Loading commit data... | |
| unwind-cxx.h | Loading commit data... | |
| vec.cc | Loading commit data... | |
| vmi_class_type_info.cc | Loading commit data... | |
| vterminate.cc | Loading commit data... | |
| vtv_stubs.cc | Loading commit data... |