http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58682
Bug ID: 58682 Summary: Profiling directed optimization doesn't play well with indirect inlining Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: gcov-profile Assignee: unassigned at gcc dot gnu.org Reporter: pa...@matos-sorge.com Created attachment 30976 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30976&action=edit Profiling files and preprocessed file resulting in ICE Unzip the attachment and running cc1 from head of 4_8 branch I get: (5) $ /home/pmatos/work/tmp/GCC/builds/gcc-4_8/gcc/cc1 -fpreprocessed core_list_join.i -quiet -dumpbase core_list_join.c -auxbase core_list_join -g3 -O2 -version -fprofile-use=profile_all.fpexe -o core_list_join.s GNU C (GCC) version 4.8.2 20131010 (prerelease) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.7.2, GMP version 4.3.0, MPFR version 2.4.1, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 GNU C (GCC) version 4.8.2 20131010 (prerelease) (x86_64-unknown-linux-gnu) compiled by GNU C version 4.7.2, GMP version 4.3.0, MPFR version 2.4.1, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=30 --param ggc-min-heapsize=4096 Compiler executable checksum: 76572ada0801d80f2ac370ed86237f71 core_list_join.c:525:1: internal compiler error: in edge_badness, at ipa-inline.c:895 0xc7c61f edge_badness ../../../gcc-4_8/gcc/ipa-inline.c:895 0xc7e82d add_new_edges_to_heap ../../../gcc-4_8/gcc/ipa-inline.c:1385 0xc7fcb3 inline_small_functions ../../../gcc-4_8/gcc/ipa-inline.c:1615 0xc7fcb3 ipa_inline ../../../gcc-4_8/gcc/ipa-inline.c:1794 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. This was obtained while running a few coremark tests.