diff options
author | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-22 07:42:43 +0000 |
---|---|---|
committer | wilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-12-22 07:42:43 +0000 |
commit | 86736f9e33c4b7981d8a621728091a44afc91d36 (patch) | |
tree | 92e1b9a44d211c848fd96269a939fdf393e245ab /gcc/rtl.h | |
parent | 3167276382f4709bd9cc3007e410770ff6ba7161 (diff) | |
download | gcc-86736f9e33c4b7981d8a621728091a44afc91d36.tar.gz |
Patch from Dan Nicolaescu
* rtl.h (dump_rtx_statistics): Declare it.
* rtl.c (rtx_alloc_counts, rtx_alloc_sizes, rtvec_alloc_counts,
rtx_alloc_sizes): New static vars.
(rtx_alloc, rtvec_alloc): Update them.
(dump_rtx_statistics): New function.
* toplev.c (finalize): Call it.
* ggc-page.c (struct globals): Fix comments. Add new member
total_allocated_per_order.
(ggc_alloc): Keep track of the total allocated memory.
(ggc_print_statistics): Clarify message. Print total allocated
memory stats.
* configure.in (gather-detailed-mem-stats): New flag.
* configure: Regenerate.
* config.in: Regenerate.
* doc/install.texi (Configuration): Document
--enable-gather-detailed-mem-stats.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74930 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r-- | gcc/rtl.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/rtl.h b/gcc/rtl.h index 71862e5f47a..12c70509923 100644 --- a/gcc/rtl.h +++ b/gcc/rtl.h @@ -1457,6 +1457,7 @@ extern void set_reg_attrs_for_parm (rtx, rtx); extern rtx rtx_alloc (RTX_CODE); extern rtvec rtvec_alloc (int); extern rtx copy_rtx (rtx); +extern void dump_rtx_statistics (void); /* In emit-rtl.c */ extern rtx copy_rtx_if_shared (rtx); |