* tree-inline.c (inlinable_function_p): Revert earlier change
pending investigation.
From-SVN: r63897
+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.
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;
}
}
+ 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))