From 439a7e544da9c5f6e9c1b14ec054e3bdda7eddc2 Mon Sep 17 00:00:00 2001 From: Dan Nicolaescu Date: Mon, 22 Dec 2003 07:42:43 +0000 Subject: 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 --- gcc/rtl.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gcc/rtl.h') diff --git a/gcc/rtl.h b/gcc/rtl.h index 71862e5..12c7050 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); -- cgit v1.1