From e2500fedef1a1c5b9e818fd1e2c281adff80df4a Mon Sep 17 00:00:00 2001 From: Geoffrey Keating Date: Tue, 4 Jun 2002 07:11:05 +0000 Subject: Merge from pch-branch up to tag pch-commit-20020603. From-SVN: r54232 --- gcc/stor-layout.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'gcc/stor-layout.c') diff --git a/gcc/stor-layout.c b/gcc/stor-layout.c index 8bbf4fe..8569ca2 100644 --- a/gcc/stor-layout.c +++ b/gcc/stor-layout.c @@ -64,7 +64,7 @@ extern void debug_rli PARAMS ((record_layout_info)); /* SAVE_EXPRs for sizes of types and decls, waiting to be expanded. */ -static tree pending_sizes; +static GTY(()) tree pending_sizes; /* Nonzero means cannot safely call expand_expr now, so put variable sizes onto `pending_sizes' instead. */ @@ -1823,8 +1823,6 @@ set_sizetype (type) TYPE_REFERENCE_TO (sizetype_tab[i]) = 0; } - ggc_add_tree_root ((tree *) &sizetype_tab, ARRAY_SIZE (sizetype_tab)); - /* Go down each of the types we already made and set the proper type for the sizes in them. */ for (t = early_type_list; t != 0; t = TREE_CHAIN (t)) @@ -1980,10 +1978,4 @@ get_best_mode (bitsize, bitpos, align, largest_mode, volatilep) return mode; } -/* This function is run once to initialize stor-layout.c. */ - -void -init_stor_layout_once () -{ - ggc_add_tree_root (&pending_sizes, 1); -} +#include "gt-stor-layout.h" -- cgit v1.1