[Bug lto/60567] lto1 ICE in add_symbol_to_partition, at lto/lto-partition.c:233 - when no -fresolution= is available

burnus at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Mar 20 19:13:00 GMT 2014


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60567

--- Comment #7 from Tobias Burnus <burnus at gcc dot gnu.org> ---
The gcc/configure check has the following comment:
    # Require GNU ld or gold 2.21+ for plugin support by default.
    # Allow -fuse-linker-plugin to enable plugin support in GNU gold 2.20.

In the driver the difference comes via HAVE_LTO_PLUGIN - and only when set, the
.res files are produced. On the CentOS6 machine, Binutils is too old, hence
also -fuse-linker-plugin is not supported.

Regarding this PR: I think either LTO should be disabled with an error message
or lto1 be modified to not ICE when the .res data is not available.



More information about the Gcc-bugs mailing list