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/params.def | |
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/params.def')
-rw-r--r-- | gcc/params.def | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/gcc/params.def b/gcc/params.def new file mode 100644 index 0000000..f96a89f --- /dev/null +++ b/gcc/params.def @@ -0,0 +1,50 @@ +/* params.def - Run-time parameters. + Copyright (C) 2001 Free Software Foundation, Inc. + Written by Mark Mitchell <mark@codesourcery.com>. + +This file is part of GNU CC. + +GNU CC is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +GNU CC is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. + +You should have received a copy of the GNU General Public License +along with GNU CC; see the file COPYING. If not, write to +the Free Software Foundation, 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. + +*/ + +/* This file contains definitions for language-independent + parameters. The DEFPARAM macro takes 4 arguments: + + - The enumeral corresonding to this parameter. + + - The name that can be used to set this parameter using the + command-line option `--param <name>=<value>'. + + - A help string explaining how the parameter is used. + + - A default value for the parameter. */ + +/* 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. */ +DEFPARAM (PARAM_MAX_INLINE_INSNS, + "max-inline-insns", + "The maximum number of instructions in a function that is eligible for inlining", + 10000) + +/* +Local variables: +mode:c +End: */ |