diff options
Diffstat (limited to 'gcc/ggc.h')
-rw-r--r-- | gcc/ggc.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ggc.h b/gcc/ggc.h index 4f25f7373c2..3a8b57e4aba 100644 --- a/gcc/ggc.h +++ b/gcc/ggc.h @@ -141,9 +141,18 @@ extern void init_stringpool (void); /* A GC implementation must provide these functions. They are internal to the GC system. */ +/* Forward declare the zone structure. Only ggc_zone implements this. */ +struct alloc_zone; + /* Initialize the garbage collector. */ extern void init_ggc (void); +/* Start a new GGC zone. */ +extern struct alloc_zone *new_ggc_zone (const char *); + +/* Free a complete GGC zone, destroying everything in it. */ +extern void destroy_ggc_zone (struct alloc_zone *); + /* Start a new GGC context. Memory allocated in previous contexts will not be collected while the new context is active. */ extern void ggc_push_context (void); @@ -193,8 +202,6 @@ extern void ggc_pch_read (FILE *, void *); /* Allocation. */ -/* Zone structure. */ -struct alloc_zone; /* For single pass garbage. */ extern struct alloc_zone *garbage_zone; /* For regular rtl allocations. */ |