diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2003-02-22 03:08:47 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2003-02-22 03:08:47 +0000 |
commit | 9ac121af2a23ff86838f619ae58a6be7cf16d605 (patch) | |
tree | a4fedfbc4cbd08463a6d674fcb9176179935dd4d /gcc/toplev.c | |
parent | 453ee2313a9f013158f1c5ab8bd97cf495c5c270 (diff) | |
download | gcc-9ac121af2a23ff86838f619ae58a6be7cf16d605.zip gcc-9ac121af2a23ff86838f619ae58a6be7cf16d605.tar.gz gcc-9ac121af2a23ff86838f619ae58a6be7cf16d605.tar.bz2 |
Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
* Makefile.in (ggc-common.o): Depend on $(PARAMS_H)
* doc/invoke.texi (ggc-min-expand, ggc-min-heapsize): Update
documentation.
* ggc-common.c: Include params.h
(ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
init_ggc_heuristics): New functions.
* ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic,
init_ggc_heuristics): Prototype.
* toplev.c (print_version): Output GGC heuristics.
(parse_options_and_default_flags): Call init_ggc_heuristics.
From-SVN: r63268
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 92bc8ad..4489852 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -4638,6 +4638,8 @@ print_version (file, indent) FILE *file; const char *indent; { + fnotice (file, "GGC heuristics: --param ggc-min-expand=%d --param ggc-min-heapsize=%d\n", + PARAM_VALUE (GGC_MIN_EXPAND), PARAM_VALUE (GGC_MIN_HEAPSIZE)); #ifndef __VERSION__ #define __VERSION__ "[?]" #endif @@ -4893,6 +4895,9 @@ parse_options_and_default_flags (argc, argv) /* Register the language-independent parameters. */ add_params (lang_independent_params, LAST_PARAM); + /* This must be done after add_params but before argument processing. */ + init_ggc_heuristics(); + /* Perform language-specific options initialization. */ (*lang_hooks.init_options) (); |