aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.4.3/gcc/ggc-page.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.4.3/gcc/ggc-page.c')
-rw-r--r--gcc-4.4.3/gcc/ggc-page.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc-4.4.3/gcc/ggc-page.c b/gcc-4.4.3/gcc/ggc-page.c
index 567ea6fb5..2ddb3dc36 100644
--- a/gcc-4.4.3/gcc/ggc-page.c
+++ b/gcc-4.4.3/gcc/ggc-page.c
@@ -2363,3 +2363,9 @@ ggc_pch_read (FILE *f, void *addr)
/* Update the statistics. */
G.allocated = G.allocated_last_gc = offs - (char *)addr;
}
+
+size_t
+ggc_total_allocated (void)
+{
+ return G.bytes_mapped;
+}