aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/ipa-inline.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0f237cf..203873e 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/ipa-inline.c b/gcc/ipa-inline.c
index 5e6a7e6..736a3ae 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);