diff options
author | Jan Hubicka <jh@suse.cz> | 2007-02-05 00:40:58 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2007-02-04 23:40:58 +0000 |
commit | 284893341f2086559700fe966ea86e8e1196f775 (patch) | |
tree | 8091aed70d2cabfbbc4616e368e6d5f2bcda4f88 /gcc | |
parent | a14fb6faeb27b26cdacea6f4c5f3d121ae540d7e (diff) | |
download | gcc-284893341f2086559700fe966ea86e8e1196f775.zip gcc-284893341f2086559700fe966ea86e8e1196f775.tar.gz gcc-284893341f2086559700fe966ea86e8e1196f775.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/ipa-inline.c | 1 |
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); |