aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-09-24 01:03:58 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-09-24 01:03:58 +0000
commit541b0512b1977c888dc08b99076cee97997c950d (patch)
treec4a53c03953e9fb1d12c0932ff5d76cbe182c623
parentda8a66fc9fb130150b0c08c866227440fa0313ea (diff)
downloadgcc-541b0512b1977c888dc08b99076cee97997c950d.zip
gcc-541b0512b1977c888dc08b99076cee97997c950d.tar.gz
gcc-541b0512b1977c888dc08b99076cee97997c950d.tar.bz2
* optabs.c (init_traps): Register trap_rtx as a GC root.
From-SVN: r29643
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/optabs.c9
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 88fe18d..f2002c1 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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
diff --git a/gcc/optabs.c b/gcc/optabs.c
index b424f1b..32abf39 100644
--- a/gcc/optabs.c
+++ b/gcc/optabs.c
@@ -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