https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68811
Bug ID: 68811
Summary: [6 Regression] ICE: in get, at cgraph.h:1218
Product: gcc
Version: 6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: trippels at gcc dot gnu.org
CC: hubicka at ucw dot cz
Target Milestone: ---
Created attachment 36969
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36969&action=edit
reduced testcase
Trying to build Firefox with LTO fails:
lto1: internal compiler error: in lto_symtab_prevail_decl, at
lto/lto-symtab.h:33
0x1018d543 lto_symtab_prevail_decl
../../gcc/gcc/lto/lto-symtab.h:33
0x1018d543 lto_symtab_merge_decls_2
../../gcc/gcc/lto/lto-symtab.c:581
0x1018d543 lto_symtab_merge_decls_1
../../gcc/gcc/lto/lto-symtab.c:766
0x1018d543 lto_symtab_merge_decls()
../../gcc/gcc/lto/lto-symtab.c:789
0x1017ae6f read_cgraph_and_symbols
../../gcc/gcc/lto/lto.c:2881
0x1017ae6f lto_main()
../../gcc/gcc/lto/lto.c:3266
While reducing I hit another ICE:
trippels@gcc2-power8 app % g++ -w -flto -O2 test.ii test2.ii
lto1: internal compiler error: in get, at cgraph.h:1218
0x104c1ec7 cgraph_node::get(tree_node const*)
../../gcc/gcc/cgraph.h:1218
0x104c1ec7 symbol_table::remove_unreachable_nodes(_IO_FILE*)
../../gcc/gcc/ipa.c:370
0x1017a033 read_cgraph_and_symbols
../../gcc/gcc/lto/lto.c:2932
0x1017a033 lto_main()
../../gcc/gcc/lto/lto.c:3266
testcase is attached.