summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-29 17:42:34 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2003-07-29 17:42:34 +0000
commite193df4cb12a0e1ea8a8e6a4617abf05476cb746 (patch)
tree0f103e3ff8f0cb48d46bf37b35971a7f157ce279
parent378433550164faf6f571ca155c017b60f347053f (diff)
downloadppe42-gcc-e193df4cb12a0e1ea8a8e6a4617abf05476cb746.tar.gz
ppe42-gcc-e193df4cb12a0e1ea8a8e6a4617abf05476cb746.zip
PR C++/11131
* tree-inline.c (expand_call_inline): Always call inlinable_function_p in !unit-at-a-time mode. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@69929 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-inline.c4
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index dc9725702e4..0e339ddffd4 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+Tue Jul 29 19:24:49 CEST 2003 Jan Hubicka <jh@suse.cz>
+
+ PR C++/11131
+ * tree-inline.c (expand_call_inline): Always call inlinable_function_p
+ in !unit-at-a-time mode.
+
2003-07-28 Geoffrey Keating <geoffk@apple.com>
* c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index 759dc074731..bd45b15fe2b 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -1164,8 +1164,8 @@ expand_call_inline (tree *tp, int *walk_subtrees, void *data)
/* Don't try to inline functions that are not well-suited to
inlining. */
- if (!DECL_SAVED_TREE (fn)
- || (flag_unit_at_a_time && !cgraph_inline_p (id->current_decl, fn))
+ if ((flag_unit_at_a_time
+ && (!DECL_SAVED_TREE (fn) || !cgraph_inline_p (id->current_decl, fn)))
|| (!flag_unit_at_a_time && !inlinable_function_p (fn, id, 0)))
{
if (warn_inline && DECL_INLINE (fn) && !DID_INLINE_FUNC (fn)
OpenPOWER on IntegriCloud