This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/47276] [4.6 Regression] ICE in function_and_variable_visibility, at ipa.c:857 during compiling glibc.


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.  */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]