From: Jason Merrill Date: Thu, 6 Mar 2003 19:33:44 +0000 (-0500) Subject: tree-inline.c (inlinable_function_p): Revert earlier change pending investigation. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4c28216d00a7774de69a4f2733b8c9a70c9a5a3d;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d6264c19504..2ec6190cf3d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-03-06 Jason Merrill + + * tree-inline.c (inlinable_function_p): Revert earlier change + pending investigation. + 2003-03-06 Kazu Hirata * config/h8300/h8300.md (a new peephole2): New. diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 77b7bafff6d..e1fab06177b 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))