diff options
author | Dan Nicolaescu <dann@ics.uci.edu> | 2003-12-22 07:42:43 +0000 |
---|---|---|
committer | Jim Wilson <wilson@gcc.gnu.org> | 2003-12-21 23:42:43 -0800 |
commit | 439a7e544da9c5f6e9c1b14ec054e3bdda7eddc2 (patch) | |
tree | 92e1b9a44d211c848fd96269a939fdf393e245ab /gcc/rtl.h | |
parent | d9dd2c4ed71f3f1f5cb20424c7bb753eda60ac96 (diff) | |
download | gcc-439a7e544da9c5f6e9c1b14ec054e3bdda7eddc2.zip gcc-439a7e544da9c5f6e9c1b14ec054e3bdda7eddc2.tar.gz gcc-439a7e544da9c5f6e9c1b14ec054e3bdda7eddc2.tar.bz2 |
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.
From-SVN: r74930
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r-- | gcc/rtl.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |