From 3e5823c9504feaa6a239e5d4aca6b4c680613c5b Mon Sep 17 00:00:00 2001 From: davek Date: Thu, 3 Dec 2009 02:04:16 +0000 Subject: [PATCH] * ggc-page.c (struct free_object): Pull definition out ... (struct globals): .. from here. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154933 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 5 +++++ gcc/ggc-page.c | 16 +++++++++++----- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 53ea0d2fe25..8385c344316 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-12-03 Dave Korn + + * ggc-page.c (struct free_object): Pull definition out ... + (struct globals): .. from here. + 2009-12-02 Richard Guenther * fold-const.c (div_if_zero_remainder): Honor that sizetypes diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c index 84b5c110c23..807bded61fc 100644 --- a/gcc/ggc-page.c +++ b/gcc/ggc-page.c @@ -335,6 +335,16 @@ typedef struct page_table_chain #endif +#ifdef ENABLE_GC_ALWAYS_COLLECT +/* List of free objects to be verified as actually free on the + next collection. */ +struct free_object +{ + void *object; + struct free_object *next; +}; +#endif + /* The rest of the global variables. */ static struct globals { @@ -421,11 +431,7 @@ static struct globals #ifdef ENABLE_GC_ALWAYS_COLLECT /* List of free objects to be verified as actually free on the next collection. */ - struct free_object - { - void *object; - struct free_object *next; - } *free_object_list; + struct free_object *free_object_list; #endif #ifdef GATHER_STATISTICS -- 2.11.4.GIT