From 284893341f2086559700fe966ea86e8e1196f775 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 5 Feb 2007 00:40:58 +0100 Subject: [PATCH] re PR middle-end/30696 (Linker failure with OpenMP and inline function) 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 | 6 ++++++ gcc/ipa-inline.c | 1 + 2 files changed, 7 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0f237cf02bf..203873e0182 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2007-02-05 Jan Hubicka + + 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 * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c index 5e6a7e68457..736a3ae7a93 100644 --- a/gcc/ipa-inline.c +++ b/gcc/ipa-inline.c @@ -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);