[Bug tree-optimization/64330] [5 Regression] IPA-ICF merges const exported vars that could be addressable in other TUs
hubicka at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Dec 17 16:49:00 GMT 2014
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64330
Jan Hubicka <hubicka at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu.org
--- Comment #7 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
I think the test should be something like
VIRTUAL || -fmerge-all-constants || (!TREE_ADDRESSABLE && !
externally_visible)
te current code seems to miss the externally_visible flag. Indeed you can not
merge symbols that may have address taken.
How does asan behave with aliases?
Honza
More information about the Gcc-bugs
mailing list