* ggc.h (struct alloc_zone): Move forward declaration up.
commit867d54fa17b07a131758adc8b0ce1e81d263fe86
authorsteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Dec 2003 22:59:30 +0000 (1 22:59 +0000)
committersteven <steven@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 1 Dec 2003 22:59:30 +0000 (1 22:59 +0000)
tree828e8c449db658913176f3c52668d0d0325b655d
parent72983aaaa3107d9c4d65eb1e00da7021ecc0a8c2
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74132 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ggc-page.c
gcc/ggc-simple.c
gcc/ggc-zone.c
gcc/ggc.h