This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC][PATCH] Extend DCE to remove unnecessary new/delete-pairs
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Dominik Inführ <dominik dot infuehr at theobroma-systems dot com>
- Cc: Richard Biener <richard dot guenther at gmail dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 27 Nov 2017 11:04:48 +0100
- Subject: Re: [RFC][PATCH] Extend DCE to remove unnecessary new/delete-pairs
- Authentication-results: sourceware.org; auth=none
- References: <8305B5F4-2A96-4698-8C2E-3255658B5C12@theobroma-systems.com> <CAFiYyc2nZ4vSGa5d_ni0km2kwUtyd9+BScrKzxKdbhZV=t6d1g@mail.gmail.com> <20171122103742.GN14653@tucnak> <BC60F078-9257-4E4F-8D94-7C41F7C7B802@theobroma-systems.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Nov 27, 2017 at 10:22:52AM +0100, Dominik Inführ wrote:
> @@ -4195,8 +4198,10 @@ cxx_init_decl_processing (void)
> deltype = cp_build_type_attribute_variant (void_ftype_ptr_size,
> extvisattr);
> deltype = build_exception_variant (deltype, empty_except_spec);
> - push_cp_library_fn (DELETE_EXPR, deltype, ECF_NOTHROW);
> + opdel = push_cp_library_fn (DELETE_EXPR, deltype, ECF_NOTHROW);
> + DECL_IS_OPERATOR_DELETE (opdel) = 1;
> push_cp_library_fn (VEC_DELETE_EXPR, deltype, ECF_NOTHROW);
Missing "opdel = " above.
> + DECL_IS_OPERATOR_DELETE (opdel) = 1;
> }
>
> if (aligned_new_threshold)
Jakub