aboutsummaryrefslogtreecommitdiff
path: root/gcc/ggc-simple.c
diff options
context:
space:
mode:
authorSteven Bosscher <stevenb@suse.de>2003-12-01 22:59:30 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2003-12-01 22:59:30 +0000
commit47aeffac9c6f9ec347293d4bcf8c0556c6db7f5c (patch)
tree828e8c449db658913176f3c52668d0d0325b655d /gcc/ggc-simple.c
parentf26deb3d4478566f86a9aa21f54b08b457abe79c (diff)
downloadgcc-47aeffac9c6f9ec347293d4bcf8c0556c6db7f5c.zip
gcc-47aeffac9c6f9ec347293d4bcf8c0556c6db7f5c.tar.gz
gcc-47aeffac9c6f9ec347293d4bcf8c0556c6db7f5c.tar.bz2
ggc.h (struct alloc_zone): Move forward declaration up.
* ggc.h (struct alloc_zone): Move forward declaration up. (new_ggc_zone): New function prototype. (destroy_ggc_zone): Ditto. * ggc-simple.c (new_ggc_zone): New function, does nothing. (destroy_ggc_zone): Ditto. * ggc-page.c (new_ggc_zone): New function, does nothing. (destroy_ggc_zone): Ditto. * ggc-zone.c (struct page_entry): Fix comment. (ggc_alloc_typed): Use a switch statement instead of ifs. (new_ggc_zone): New function to set up a new GC zone. (destroy_ggc_zone): New function to remove a GC zone. init_ggc): Use new_ggc_zone to set up the default zones. (ggc_collect): Walk a list of zones, instead of just the default zones. Report statistics using the zone name. From-SVN: r74132
Diffstat (limited to 'gcc/ggc-simple.c')
-rw-r--r--gcc/ggc-simple.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/gcc/ggc-simple.c b/gcc/ggc-simple.c
index eee33a5..2f75021 100644
--- a/gcc/ggc-simple.c
+++ b/gcc/ggc-simple.c
@@ -344,6 +344,20 @@ init_ggc (void)
{
}
+/* Start a new GGC zone. */
+
+struct alloc_zone *
+new_ggc_zone (const char *name ATTRIBUTE_UNUSED)
+{
+ return NULL;
+}
+
+/* Destroy a GGC zone. */
+void
+destroy_ggc_zone (struct alloc_zone *zone ATTRIBUTE_UNUSED)
+{
+}
+
/* Start a new GGC context. Memory allocated in previous contexts
will not be collected while the new context is active. */