Re: [PATCH] Mark DECL_SET_IS_OPERATOR_DELETE for user-provided delete operators.

2019-08-01 Thread Jason Merrill
OK. On 8/1/19 9:12 AM, Martin Liška wrote: Hi. As discussed with Marc, I'm suggesting to mark user-provided delete operators with DECL_SET_IS_OPERATOR_DELETE in order to allow possible DCE for it. I've checked that clang can also optimize that situation out. Patch can bootstrap on x86_64-linux

[PATCH] Mark DECL_SET_IS_OPERATOR_DELETE for user-provided delete operators.

2019-08-01 Thread Martin Liška
Hi. As discussed with Marc, I'm suggesting to mark user-provided delete operators with DECL_SET_IS_OPERATOR_DELETE in order to allow possible DCE for it. I've checked that clang can also optimize that situation out. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. Ready to