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

--- Comment #9 from Sergei Trofimovich <slyfox at gcc dot gnu.org> ---
(In reply to Sergei Trofimovich from comment #8)
> Might end up being caused by the same bug in PR96913: TOPN streaming
> from/for shared libraries is incorrect.
> 
> Proposed patch:
> https://gcc.gnu.org/pipermail/gcc-patches/2020-September/553320.html

The patch is not enough to fix the ICE. It only converts gcc-11's hangup to the
ICE (as as gcc-10).

Here is the somewhat selfcontained reproducer of the original bug:

    https://dev.gentoo.org/~slyfox/bugs/96394-pgo-ipa-ICE/tauthon-repro-
gcc-10.tar.bz2 (13MB)

The result on gcc-11 with above gcc patch:

  $ LANG=C ./try.bash
  ... < takes a while >


during IPA pass: inline
../tauthon-2.8.2/Modules/parsermodule.c:3760:1: internal compiler error: in
add_new_edges_to_heap, at ipa-inline.c:1754
 3760 | }
      | ^
0x5ef2b3 add_new_edges_to_heap
       
/usr/src/debug/sys-devel/gcc-11.0.0_pre9999/gcc-11.0.0_pre9999/gcc/ipa-inline.c:1754
0x1429b89 inline_small_functions
       
/usr/src/debug/sys-devel/gcc-11.0.0_pre9999/gcc-11.0.0_pre9999/gcc/ipa-inline.c:2218
0x1429b89 ipa_inline
       
/usr/src/debug/sys-devel/gcc-11.0.0_pre9999/gcc-11.0.0_pre9999/gcc/ipa-inline.c:2697
0x1429b89 execute
       
/usr/src/debug/sys-devel/gcc-11.0.0_pre9999/gcc-11.0.0_pre9999/gcc/ipa-inline.c:3099

Reply via email to