From e01c7cca63aa448ccf625c5201d8d9d31f2633b3 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Sat, 18 May 2013 00:20:58 +0200 Subject: lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module weakrefs. * lto-symtab.c (lto_symtab_merge_cgraph_nodes): Resolve cross module weakrefs. * cgraph.c (dump_cgraph_node): Do not ice on unresolved alias. * cgraphunit.c (handle_alias_pairs): Store target of unresolved weakrefs. (output_weakrefs): Update. From-SVN: r199041 --- gcc/cgraph.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/cgraph.c') diff --git a/gcc/cgraph.c b/gcc/cgraph.c index dff3916..899f65c 100644 --- a/gcc/cgraph.c +++ b/gcc/cgraph.c @@ -1558,7 +1558,7 @@ dump_cgraph_node (FILE *f, struct cgraph_node *node) (int)node->thunk.virtual_value, (int)node->thunk.virtual_offset_p); } - if (node->alias && node->thunk.alias) + if (node->alias && node->thunk.alias && DECL_P (node->thunk.alias)) { fprintf (f, " Alias of %s", lang_hooks.decl_printable_name (node->thunk.alias, 2)); -- cgit v1.1