aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-inline.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2003-03-06 14:33:44 -0500
committerJason Merrill <jason@gcc.gnu.org>2003-03-06 14:33:44 -0500
commit4c28216d00a7774de69a4f2733b8c9a70c9a5a3d (patch)
tree00eae8c337dfceb46951c18ec2453a7f8070e123 /gcc/tree-inline.c
parent53ec7ec1f19f1279b4c035c6950ca0be56559ee0 (diff)
downloadgcc-4c28216d00a7774de69a4f2733b8c9a70c9a5a3d.zip
gcc-4c28216d00a7774de69a4f2733b8c9a70c9a5a3d.tar.gz
gcc-4c28216d00a7774de69a4f2733b8c9a70c9a5a3d.tar.bz2
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
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r--gcc/tree-inline.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index 77b7baf..e1fab06 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -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))