[Bug lto/91307] -flto causes binary to vary
hubicka at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Aug 15 15:58:00 GMT 2019
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91307
--- Comment #9 from Jan Hubicka <hubicka at gcc dot gnu.org> ---
I am not 100% sure if hashing calle names works safely, since they will all be
something like "static construction" or so, so I guess one can construct two
different translation units that will end up with same hash. But perhaps we
could teach LTO FE to produce those names purely on symbols exported from the
LTO unit since those should be unique and use it everywhere (including the
lto_priv numbers)?
Of course unless we go the route of getting API to the plugin interface to
obtain full symbol name.
More information about the Gcc-bugs
mailing list