[Bug tree-optimization/47276] [4.6 Regression] ICE in function_and_variable_visibility, at ipa.c:857 during compiling glibc.
hubicka at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Jan 13 18:08:00 GMT 2011
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. */
More information about the Gcc-bugs
mailing list