summaryrefslogtreecommitdiff
path: root/gcc/ggc-page.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ggc-page.c')
-rw-r--r--gcc/ggc-page.c16
1 files changed, 11 insertions, 5 deletions
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