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

--- Comment #12 from Martin Liška <marxin at gcc dot gnu.org> ---
(In reply to Tobias Burnus from comment #11)
> Created attachment 35050 [details]
> 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!

Hello.

What's your target where you have the PR? I'm also unable to reproduce the
issue. Even with BFD.

Thanks,
Martin

Reply via email to