[Bug lto/54702] [4.8 Regression] lto1: internal compiler error: verify_cgraph_node failed

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 25 12:01:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54702

--- Comment #2 from Richard Guenther <rguenth at gcc dot gnu.org> 2012-09-25 12:01:11 UTC ---
the malloc and __builtin_malloc variant now enter symbol merging.  Fixing that
doesn't fix the issue, but the following seems "correct" anyway:

Index: gcc/lto-symtab.c
===================================================================
--- gcc/lto-symtab.c    (revision 191694)
+++ gcc/lto-symtab.c    (working copy)
@@ -610,7 +610,9 @@ lto_symtab_merge_decls (void)
   FOR_EACH_SYMBOL (node)
     if (TREE_PUBLIC (node->symbol.decl)
        && node->symbol.next_sharing_asm_name
-       && !node->symbol.previous_sharing_asm_name)
+       && !node->symbol.previous_sharing_asm_name
+       && (!symtab_function_p (node)
+           || !DECL_BUILT_IN (node->symbol.decl)))
     lto_symtab_merge_decls_1 (node);
 }

looking if that fixes my LTO bootstrap issue with alloca.



More information about the Gcc-bugs mailing list