diff options
author | Mark Mitchell <mark@codesourcery.com> | 2001-02-14 16:24:45 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2001-02-14 16:24:45 +0000 |
commit | c6d9a88cbc231b27539ebf4be3f0843cbf59841c (patch) | |
tree | 358938d277595e7cf94e5146dc0522239e45faf5 /gcc/integrate.c | |
parent | 4806765ec47c11611b78a58908db872b1600e45f (diff) | |
download | gcc-c6d9a88cbc231b27539ebf4be3f0843cbf59841c.zip gcc-c6d9a88cbc231b27539ebf4be3f0843cbf59841c.tar.gz gcc-c6d9a88cbc231b27539ebf4be3f0843cbf59841c.tar.bz2 |
Makefile.in (toplev.o): Depend on params.h.
* Makefile.in (toplev.o): Depend on params.h.
(intergate.o): Likewise.
(params.o): New target.
* flags.h (inline_max_insns): Remove.
* integrate.c: Include params.h.
Use MAX_INLINE_INSNS instead of inline_max_insns.
* params.c: New file.
* params.h: Likewise.
* params.def: Likewise.
* toplev.c: Include params.h.
(lang_independent_params): New variable.
(decode_f_option): Use the param machinery instead of setting
max_inline_insns.
(independent_decode_option): Handle "--param name=value".
(main): Register language-independent parameters.
From-SVN: r39683
Diffstat (limited to 'gcc/integrate.c')
-rw-r--r-- | gcc/integrate.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c index bfcd85b..9f28a37 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -40,6 +40,7 @@ Boston, MA 02111-1307, USA. */ #include "toplev.h" #include "intl.h" #include "loop.h" +#include "params.h" #include "obstack.h" #define obstack_chunk_alloc xmalloc @@ -89,15 +90,6 @@ static void copy_insn_list PARAMS ((rtx, struct inline_remap *, static int compare_blocks PARAMS ((const PTR, const PTR)); static int find_block PARAMS ((const PTR, const PTR)); -/* The maximum number of instructions accepted for inlining a - function. Increasing values mean more agressive inlining. - This affects currently only functions explicitly marked as - inline (or methods defined within the class definition for C++). - The default value of 10000 is arbitrary but high to match the - previously unlimited gcc capabilities. */ - -int inline_max_insns = 10000; - /* Used by copy_rtx_and_substitute; this indicates whether the function is called for the purpose of inlining or some other purpose (i.e. loop unrolling). This affects how constant pool references are handled. @@ -135,11 +127,11 @@ function_cannot_inline_p (fndecl) tree last = tree_last (TYPE_ARG_TYPES (TREE_TYPE (fndecl))); /* For functions marked as inline increase the maximum size to - inline_max_insns (-finline-limit-<n>). For regular functions + MAX_INLINE_INSNS (-finline-limit-<n>). For regular functions use the limit given by INTEGRATE_THRESHOLD. */ int max_insns = (DECL_INLINE (fndecl)) - ? (inline_max_insns + ? (MAX_INLINE_INSNS + 8 * list_length (DECL_ARGUMENTS (fndecl))) : INTEGRATE_THRESHOLD (fndecl); |