This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC][PATCH] Extend DCE to remove unnecessary new/delete-pairs


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]