re PR middle-end/30696 (Linker failure with OpenMP and inline function)
authorJan Hubicka <jh@suse.cz>
Sun, 4 Feb 2007 23:40:58 +0000 (00:40 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sun, 4 Feb 2007 23:40:58 +0000 (23:40 +0000)
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.

From-SVN: r121582

gcc/ChangeLog
gcc/ipa-inline.c

index 0f237cf02bf21877e521296458f2e10aad488c38..203873e01823b21d0455a7241bcdfbc7e84e7fc1 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 5e6a7e68457ae18d651a6cc7f3a2e375ddaf2a31..736a3ae7a93c19c5b9be782bec33733dbdd1604c 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);