2019-07-25 Martin Liska <mliska@suse.cz> Dominik Infuhr <dominik.infuehr@theobroma-systems.com> PR c++/23383 * common.opt: Add -fallocation-dce * gimple.c (gimple_call_operator_delete_p): New. * gimple.h (gimple_call_operator_delete_p): Likewise. * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE. * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle DECL_IS_OPERATOR_DELETE_P. (mark_all_reaching_defs_necessary_1): Likewise. (propagate_necessity): Likewise. (eliminate_unnecessary_stmts): Handle gimple_call_operator_delete_p. * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Add packing of OPERATOR_DELETE. * tree-streamer-out.c (pack_ts_function_decl_value_fields): Similarly here. * tree.h (DECL_IS_OPERATOR_DELETE_P): New. (DECL_SET_IS_OPERATOR_DELETE): New. (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise. 2019-07-25 Martin Liska <mliska@suse.cz> Dominik Infuhr <dominik.infuehr@theobroma-systems.com> PR c++/23383 * c-decl.c (merge_decls): Merge OPERATOR_DELETE flag. 2019-07-25 Martin Liska <mliska@suse.cz> Dominik Infuhr <dominik.infuehr@theobroma-systems.com> PR c++/23383 * decl.c (cxx_init_decl_processing): Mark delete operators with DECL_SET_IS_OPERATOR_DELETE. 2019-07-25 Martin Liska <mliska@suse.cz Dominik Infuhr <dominik.infuehr@theobroma-systems.com> PR c++/23383 * g++.dg/cpp1y/new1.C: New test. 2019-07-25 Martin Liska <mliska@suse.cz> Dominik Infuhr <dominik.infuehr@theobroma-systems.com> PR c++/23383 * testsuite/ext/bitmap_allocator/check_delete.cc: Add -fno-allocation-dce. * testsuite/ext/bitmap_allocator/check_new.cc: Likewise. * testsuite/ext/new_allocator/check_delete.cc: Likewise. * testsuite/ext/new_allocator/check_new.cc: Likewise. Co-Authored-By: Dominik Infuehr <dominik.infuehr@theobroma-systems.com> From-SVN: r273791
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| bitmap_allocator | Loading commit data... | |
| char8_t | Loading commit data... | |
| codecvt | Loading commit data... | |
| concurrence_lock_error | Loading commit data... | |
| concurrence_unlock_error | Loading commit data... | |
| debug_allocator | Loading commit data... | |
| enc_filebuf | Loading commit data... | |
| ext_pointer | Loading commit data... | |
| forced_error | Loading commit data... | |
| iota | Loading commit data... | |
| is_heap | Loading commit data... | |
| is_sorted | Loading commit data... | |
| malloc_allocator | Loading commit data... | |
| mt_allocator | Loading commit data... | |
| new_allocator | Loading commit data... | |
| numeric_traits | Loading commit data... | |
| pb_ds | Loading commit data... | |
| pool_allocator | Loading commit data... | |
| random | Loading commit data... | |
| rope | Loading commit data... | |
| shared_ptr | Loading commit data... | |
| slist | Loading commit data... | |
| special_functions | Loading commit data... | |
| stdio_filebuf | Loading commit data... | |
| stdio_sync_filebuf | Loading commit data... | |
| throw_allocator | Loading commit data... | |
| throw_value | Loading commit data... | |
| type_traits | Loading commit data... | |
| vstring | Loading commit data... | |
| concept_checks.cc | Loading commit data... | |
| headers.cc | Loading commit data... | |
| median.cc | Loading commit data... | |
| pod_char_traits.cc | Loading commit data... |