]> gcc.gnu.org Git - gcc.git/commitdiff
* optabs.c (init_traps): Register trap_rtx as a GC root.
authorMark Mitchell <mark@codesourcery.com>
Fri, 24 Sep 1999 01:03:58 +0000 (01:03 +0000)
committerMark Mitchell <mmitchel@gcc.gnu.org>
Fri, 24 Sep 1999 01:03:58 +0000 (01:03 +0000)
From-SVN: r29643

gcc/ChangeLog
gcc/optabs.c

index 88fe18d360f4323702242f54fe2d855a5d6edd9c..f2002c1bfa36f4652df033e0a563d870b773fa8d 100644 (file)
@@ -1,3 +1,7 @@
+Thu Sep 23 18:07:01 1999  Mark Mitchell  <mark@codesourcery.com>
+
+       * optabs.c (init_traps): Register trap_rtx as a GC root.
+
 Thu Sep 23 17:41:47 1999  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
 
        * config/mips/mips.c (function_arg_pass_by_reference): Define
index b424f1b931ee2287e70068787b03583201db0332..32abf391985b635ba6494fb2d5e85c069e5202f6 100644 (file)
@@ -4754,16 +4754,17 @@ ldexp(x,n)
 /* The insn generating function can not take an rtx_code argument.
    TRAP_RTX is used as an rtx argument.  Its code is replaced with
    the code to be used in the trap insn and all other fields are
-   ignored.
-
-   ??? Will need to change to support garbage collection.  */
+   ignored.  */
 static rtx trap_rtx;
 
 static void
 init_traps ()
 {
   if (HAVE_conditional_trap)
-    trap_rtx = gen_rtx_fmt_ee (EQ, VOIDmode, NULL_RTX, NULL_RTX);
+    {
+      trap_rtx = gen_rtx_fmt_ee (EQ, VOIDmode, NULL_RTX, NULL_RTX);
+      ggc_add_tree_root (&trap_rtx, 1);
+    }
 }
 #endif
 
This page took 0.076728 seconds and 5 git commands to generate.