aboutsummaryrefslogtreecommitdiff
path: root/gcc/regclass.c
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@redhat.com>2002-06-04 07:11:05 +0000
committerGeoffrey Keating <geoffk@redhat.com>2002-06-04 07:11:05 +0000
commit9a3568c5fe1c277a9eab03a3ea566b7337ccfd8a (patch)
tree720630adca0f6b357e05c4feb8cbe33d556925ce /gcc/regclass.c
parent9bce404194529ae3bc38de62f7caf2eb4038cc8c (diff)
Merge from pch-branch up to tag pch-commit-20020603.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@54232 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/regclass.c')
-rw-r--r--gcc/regclass.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/regclass.c b/gcc/regclass.c
index 57672baf3c4..84c7ba330bb 100644
--- a/gcc/regclass.c
+++ b/gcc/regclass.c
@@ -242,13 +242,9 @@ static regset reg_changes_mode;
#endif /* CLASS_CANNOT_CHANGE_MODE */
-#ifdef HAVE_SECONDARY_RELOADS
-
/* Sample MEM values for use by memory_move_secondary_cost. */
-static rtx top_of_stack[MAX_MACHINE_MODE];
-
-#endif /* HAVE_SECONDARY_RELOADS */
+static GTY(()) rtx top_of_stack[MAX_MACHINE_MODE];
/* Linked list of reg_info structures allocated for reg_n_info array.
Grouping all of the allocated structures together in one lump
@@ -614,7 +610,6 @@ init_regs ()
for (i = 0; i < MAX_MACHINE_MODE; i++)
top_of_stack[i] = gen_rtx_MEM (i, stack_pointer_rtx);
- ggc_add_rtx_root (top_of_stack, MAX_MACHINE_MODE);
}
#endif
}
@@ -2598,3 +2593,5 @@ regset_release_memory ()
{
bitmap_release_memory ();
}
+
+#include "gt-regclass.h"