[Bug tree-optimization/94294] [missed optimization] new+delete of unused local string not removed
glisse at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Mar 23 21:57:26 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94294
--- Comment #2 from Marc Glisse <glisse at gcc dot gnu.org> ---
(In reply to Eyal Rozenberg from comment #0)
> Note: I suppose it's theoretically possible that this bug only manifests
> because bug 94293 prevents the allocated space from being recognized as
> unused; but I can't tell whether that's the case.
Pretty sure that's the case, gcc removes new/delete pairs now when nothing
writes to that memory.
More information about the Gcc-bugs
mailing list