Commit 4c28216d by Jason Merrill Committed by Jason Merrill

tree-inline.c (inlinable_function_p): Revert earlier change pending investigation.

        * tree-inline.c (inlinable_function_p): Revert earlier change
        pending investigation.

From-SVN: r63897
parent 53ec7ec1
2003-03-06 Jason Merrill <jason@redhat.com>
* tree-inline.c (inlinable_function_p): Revert earlier change
pending investigation.
2003-03-06 Kazu Hirata <kazu@cs.umass.edu>
* config/h8300/h8300.md (a new peephole2): New.
......
......@@ -952,11 +952,6 @@ inlinable_function_p (fn, id)
if (DECL_UNINLINABLE (fn))
return 0;
/* Check this now so that we instantiate C++ templates before reading
DECL_NUM_STMTS. */
if ((*lang_hooks.tree_inlining.cannot_inline_tree_fn) (&fn))
return 0;
/* Assume it is not inlinable. */
inlinable = 0;
......@@ -1037,6 +1032,9 @@ inlinable_function_p (fn, id)
}
}
if (inlinable && (*lang_hooks.tree_inlining.cannot_inline_tree_fn) (&fn))
inlinable = 0;
/* If we don't have the function body available, we can't inline
it. */
if (! DECL_SAVED_TREE (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