https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84658

--- Comment #17 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
(In reply to Richard Biener from comment #16)
> Hum, isn't the bug INVALID then?  Shouldn't we restrict -fmerge-all-constants

No.

> to not address-taken variables to not make the option useless?

-fmerge-all-constants is an extension where the addresses of the constant
variables may be the same even if without the option they would need to be
guaranteed to be different.  That is the whole point of the option, many people
just don't care about it and care more about .rodata size, so they have an
option to tell the compiler about it.

> I presume -fmerge-all-constants pre-dates ICF?

Yes, by far.  -fmerge-all-constants is from 2001, ICF from 2014.

Reply via email to