regclass.c (init_regs): Add "top_of_stack" as a garbage collection root.
authorJeffrey A Law <law@cygnus.com>
Wed, 22 Sep 1999 14:12:00 +0000 (14:12 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 22 Sep 1999 14:12:00 +0000 (08:12 -0600)
        * regclass.c (init_regs): Add "top_of_stack" as a garbage
        collection root.

From-SVN: r29589

gcc/ChangeLog
gcc/regclass.c

index ef867ff042f0a9e20c8d6852c9009d322f643f7a..e89998b5f15cd60e1e9afd034a68c1bd623d742f 100644 (file)
@@ -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.
 
index d7f9b14c8579e00cd63d9769fb01ac1babc9e5e6..a3672c437eca6961a823d3c7d8a5774704fd6edf 100644 (file)
@@ -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
 }