This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug lto/65380] [5 Regression][ICF] LTO: ICE in add_symbol_to_partition_1, at lto/lto-partition.c:158
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 18 Mar 2015 08:22:17 +0000
- Subject: [Bug lto/65380] [5 Regression][ICF] LTO: ICE in add_symbol_to_partition_1, at lto/lto-partition.c:158
- Auto-submitted: auto-generated
- References: <bug-65380-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65380
--- Comment #11 from Tobias Burnus <burnus at gcc dot gnu.org> ---
Created attachment 35050
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=35050&action=edit
one.o.000i.cgraph: -fdump-ipa-cgraph for the LTO step for the unpatched GCC
(r221482)
(In reply to Jan Hubicka from comment #8, #9 and #10)
First, I can still reproduce the issue with the unpatched GCC. In addition, the
big program also compiles successfully with -fno-ipa-icf.
Regarding "ld": As /usr/bin/ld is very old, that's with the current "ld" from
the binutils-gdb GIT (via GCC's --with-plugin-ld=) - it fails identical when I
replace the ld.bfd by ld.gold.
Regarding -fdump-ipa-cgraph: If you prefer the dump of a patched version,
please tell me.
Regarding the patch in comment 8 (with "ExTERNAL" typo fixed): Unfortunately,
it doesn't solve the problem - I still get the same ICE.
Regarding the patch in comment 9: I had to change "alias" to "alias_item" due
to
../../gcc/ipa-icf.c:1779:22: error: âaliasâ was not declared in this scope
if (DECL_EXTERNAL (alias->decl))
but afterwards: It no longer has an ICE!