diff options
author | Zack Weinberg <zack@wolery.cumb.org> | 2000-08-29 20:57:11 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-08-29 20:57:11 +0000 |
commit | fba0bfd4546bb2b864a841cf1d43957dbaa38a89 (patch) | |
tree | 467a74cb03ab3a07329d87c25f28745ba9ed5e7f /gcc/timevar.c | |
parent | 612105a61a150594ef233db883b1bf1ad6501720 (diff) | |
download | gcc-fba0bfd4546bb2b864a841cf1d43957dbaa38a89.tar.gz |
flags.h (time_report, mem_report): New global flags.
* flags.h (time_report, mem_report): New global flags.
* toplev.c: Define time_report and mem_report.
(f_options): Add -ftime-report and -fmem-report.
(compile_file): Turn on time_report if quiet_flag is off.
Call ggc_print_statistics at very end if mem_report is on.
* timevar.c (TIMEVAR_ENABLE): Examine time_report, not quiet_flag.
* ggc-common.c (ggc_print_statistics): Rename to
ggc_print_common_statistics; all callers changed. Scale
quantities above 10K to kilobytes and above 10M to megabytes.
* ggc-page.c (ggc_page_print_statistics): Rename to
ggc_print_statistics. Report memory consumed by internal data
structures for each allocation bucket. Scale quantities above
10K to kilobytes and above 10M to megabytes.
* ggc-simple.c: Prototype debug_ggc_tree to avoid warning.
Cast PTR_KEY(p) to unsigned long in fprintf call to avoid warning.
Define tally_leaves always.
(ggc_print_statistics): New function.
* ggc.h: Adjust for renamed functions.
From-SVN: r36049
Diffstat (limited to 'gcc/timevar.c')
-rw-r--r-- | gcc/timevar.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/timevar.c b/gcc/timevar.c index 6635c1d13dc..5a79fa7ccab 100644 --- a/gcc/timevar.c +++ b/gcc/timevar.c @@ -40,7 +40,7 @@ extern int getrusage PARAMS ((int, struct rusage *)); /* See timevar.h for an explanation of timing variables. */ /* This macro evaluates to non-zero if timing variables are enabled. */ -#define TIMEVAR_ENABLE (!quiet_flag) +#define TIMEVAR_ENABLE (time_report) /* A timing variable. */ |