ggc.h (struct alloc_zone): Move forward declaration up.
authorSteven Bosscher <stevenb@suse.de>
Mon, 1 Dec 2003 22:59:30 +0000 (22:59 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Mon, 1 Dec 2003 22:59:30 +0000 (22:59 +0000)
commit47aeffac9c6f9ec347293d4bcf8c0556c6db7f5c
tree828e8c449db658913176f3c52668d0d0325b655d
parentf26deb3d4478566f86a9aa21f54b08b457abe79c
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
gcc/ChangeLog
gcc/ggc-page.c
gcc/ggc-simple.c
gcc/ggc-zone.c
gcc/ggc.h