On Wed, Nov 06, 2024 at 09:55:29AM +0100, Richard Biener wrote:
> Btw, did you check what happens when doing new/delete without nothrow()
> and either external or internal EH?  I think optimizing is OK in all
> cases, but I guess EH edges will prevent the optimization?

I've checked the one with external EH and that works fine, otherwise
it would have never worked for anything.
With internal EH I think it will not work, the EH edges will prevent it,
but sure, we should double-check that.

BTW, all those errno etc. discussions I think do not apply to the
replaceable new/delete when used from new/delete expressions, because
the standard explicitly says those calls can be omitted.

        Jakub

Reply via email to