params.def: Introduce parameter max-inline-insns-rtl for a separate limit for the...
authorKurt Garloff <garloff@suse.de>
Sun, 2 Mar 2003 21:18:16 +0000 (21:18 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Sun, 2 Mar 2003 21:18:16 +0000 (21:18 +0000)
commitbc52247263d666d1e942145d1f643491a0c2d81a
tree8779d656c10e23abf78abe1a1c94a499d158237b
parentf4ae98be562f298bbf51fd9b54ccce7f1ab0d0e6
params.def: Introduce parameter max-inline-insns-rtl for a separate limit for the RTL inliner.

2003-03-02  Kurt Garloff  <garloff@suse.de>

* params.def: Introduce parameter max-inline-insns-rtl for
a separate limit for the RTL inliner.
* params.h: Likewise.
* integrate.c (function_cannot_inline_p): Use it.
* toplev.c (decode_f_option): Set multiple parameters
controlling inlining with -finline-limit.
* params.def: Fix orthographic and typographic errors.
* doc/invoke.texi: Document parameters controlling inlining
and the way -finline-limit sets multiple of them.

* tree.h (struct tree_decl): Introduce inlined_function_flag,
recording whether the function became eligible for inlining
by a compiler flag rather than the declaration.
Provide DID_INLINE_FUNC macro to access it.
* c-decl.c (grokdeclarator): Set DID_INLINE_FUNC.
* cp/decl.c (grokfndecl): Likewise.
* toplev.c (rest_of_compilation): Likewise.
* cp/optimize (maybe_clone_body): Copy DID_INLINE_FUNC.
* print-tree.c (print_node): Report it.
* params.def: Introduce new max-inline-insns-auto limit.
* params.h: Likewise.
* tree-inline.c (inlinable_function_p): Apply it to functions
with DID_INLINE_FUNC set.
* toplev.c (decode_f_option): Initialize it from -finline-limit
value.
* doc/invoke.texi: Document new parameter.

From-SVN: r63688
12 files changed:
gcc/ChangeLog
gcc/c-decl.c
gcc/cp/decl.c
gcc/cp/optimize.c
gcc/doc/invoke.texi
gcc/integrate.c
gcc/params.def
gcc/params.h
gcc/print-tree.c
gcc/toplev.c
gcc/tree-inline.c
gcc/tree.h