http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47276
--- Comment #4 from Jan Hubicka <hubicka at gcc dot gnu.org> 2011-01-13 17:16:00 UTC --- I am testing the following patch. We are overactive on checking aliases of aliases Index: ipa.c =================================================================== --- ipa.c (revision 168753) +++ ipa.c (working copy) @@ -847,6 +847,8 @@ function_and_variable_visibility (bool w if ((node = cgraph_node_for_asm (p->target)) != NULL && !DECL_EXTERNAL (node->decl)) { + if (!node->analyzed) + continue; /* Weakrefs alias symbols from other compilation unit. In the case the destination of weakref became available because of LTO, we must mark it as needed. */