aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1999-09-22 14:12:00 +0000
committerJeff Law <law@gcc.gnu.org>1999-09-22 08:12:00 -0600
commit00d33cb2336c12ba895fc8531cc36a0a3613758b (patch)
tree84536825329195295995b498e4988221ba372d72
parentc3b6e11400d742ce467690ef436183ae1e856ef1 (diff)
downloadgcc-00d33cb2336c12ba895fc8531cc36a0a3613758b.zip
gcc-00d33cb2336c12ba895fc8531cc36a0a3613758b.tar.gz
gcc-00d33cb2336c12ba895fc8531cc36a0a3613758b.tar.bz2
regclass.c (init_regs): Add "top_of_stack" as a garbage collection root.
* regclass.c (init_regs): Add "top_of_stack" as a garbage collection root. From-SVN: r29589
-rw-r--r--gcc/ChangeLog3
-rw-r--r--gcc/regclass.c1
2 files changed, 4 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ef867ff..e89998b 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -9,6 +9,9 @@ Wed Sep 22 06:25:15 1999 Jim Kingdon <http://developer.redhat.com>
Wed Sep 22 06:06:57 1999 Jeffrey A Law (law@cygnus.com)
+ * regclass.c (init_regs): Add "top_of_stack" as a garbage
+ collection root.
+
* flow.c (record_active_eh_regions): Terminate loop after finding
the last insn in the last basic block.
diff --git a/gcc/regclass.c b/gcc/regclass.c
index d7f9b14..a3672c4 100644
--- a/gcc/regclass.c
+++ b/gcc/regclass.c
@@ -460,6 +460,7 @@ init_regs ()
int i;
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
}