]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 30 May 2010 00:04:53 +0000 (00:04 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 30 May 2010 00:04:53 +0000 (00:04 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@160040 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cgraph.c

index 3f1a7e34bbe5d71b9719398a88bb7e21dae1afe4..bf55665bd7f87ee9b4b3ca666bc1a282651f5ea6 100644 (file)
@@ -1,3 +1,7 @@
+2010-05-29  Jan Hubicka  <jh@suse.cz>
+
+       * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
+
 2010-05-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
 
        PR target/44165
index 229f8a30e99e62777696a76787f284929040834e..8c7916865fe174a86020a61547a78d10005f4e85 100644 (file)
@@ -1659,7 +1659,8 @@ cgraph_mark_reachable_node (struct cgraph_node *node)
          /* Verify that function does not appear to be needed out of blue
             during the optimization process.  This can happen for extern
             inlines when bodies was removed after inlining.  */
-         gcc_assert ((node->analyzed || DECL_EXTERNAL (node->decl)));
+         gcc_assert ((node->analyzed || node->in_other_partition
+                      || DECL_EXTERNAL (node->decl)));
        }
       else
         notice_global_symbol (node->decl);