Commit 987bf56f by Jan Hubicka Committed by Jan Hubicka

re PR c++/11131 (Unrelated declaration removes inline flag from function)


	PR C++/11131
	* tree-inline.c (expand_call_inline): Always call inlinable_function_p
	in !unit-at-a-time mode.

From-SVN: r69929
parent a47c20a7
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
......
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment