OSDN Git Service

PR middle-end/30696
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 4 Feb 2007 23:40:58 +0000 (23:40 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 4 Feb 2007 23:40:58 +0000 (23:40 +0000)
* ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
nodes in cgraph, don't remove offline copy of the function.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@121582 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/ipa-inline.c

index 0f237cf..203873e 100644 (file)
@@ -1,3 +1,9 @@
+2007-02-05  Jan Hubicka  <jh@suse.cz>
+
+       PR middle-end/30696
+       * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
+       nodes in cgraph, don't remove offline copy of the function.
+
 2007-02-04  Jan Hubicka  <jh@suse.cz>
 
        * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
index 5e6a7e6..736a3ae 100644 (file)
@@ -204,6 +204,7 @@ cgraph_clone_inlined_nodes (struct cgraph_edge *e, bool duplicate, bool update_o
         In that case just go ahead and re-use it.  */
       if (!e->callee->callers->next_caller
          && !e->callee->needed
+         && !cgraph_new_nodes
          && flag_unit_at_a_time)
        {
          gcc_assert (!e->callee->global.inlined_to);