This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/47276] [4.6 Regression] ICE in function_and_variable_visibility, at ipa.c:857 during compiling glibc.
- From: "hubicka at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 13 Jan 2011 17:16:08 +0000
- Subject: [Bug tree-optimization/47276] [4.6 Regression] ICE in function_and_variable_visibility, at ipa.c:857 during compiling glibc.
- Auto-submitted: auto-generated
- References: <bug-47276-4@http.gcc.gnu.org/bugzilla/>
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. */