With the attached test case which tests WHOPR with weak aliases I get a segfault in lto_symtab_merge_decls_1 line 758
This happens in if (prevailing->node->same_body_alias) prevailing->node->same_body->local.used_from_object_file = true; else prevailing->node->local.used_from_object_file = true; because node is NULL Interestingly this only happens with gold, if I drop -fuse-linker-plugin there is no segfault This is an extract of a failure that occurred while buidling a much larger project. -- Summary: weak LTO with gold causes ICE in lto_symtab_merge_decls_1 Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: andi-gcc at firstfloor dot org GCC build triplet: x86_64-linux GCC host triplet: x86_64-linux GCC target triplet: x86_64-linux http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44966