+Tue Sep 7 22:39:18 1999 Mark Mitchell <mark@codesourcery.com>
+
+ * rs6000.c: Include ggc.h.
+ (rs6000_add_gc_roots): New function.
+ (override_options): Call it.
+
Tue Sep 7 22:09:03 1999 Richard Henderson <rth@cygnus.com>
* alpha.h (alpha_compare): New.
#include "function.h"
#include "output.h"
#include "toplev.h"
+#include "ggc.h"
#ifndef TARGET_NO_PROTOTYPE
#define TARGET_NO_PROTOTYPE 0
/* Flag to say the TOC is initialized */
int toc_initialized;
+static void rs6000_add_gc_roots PROTO ((void));
+
\f
/* Default register names. */
char rs6000_reg_names[][8] =
#ifdef SUBTARGET_OVERRIDE_OPTIONS
SUBTARGET_OVERRIDE_OPTIONS;
#endif
+
+ /* Register global variables with the garbage collector. */
+ rs6000_add_gc_roots ();
}
void
{
fatal_insn ("bad address", op);
}
+
+/* Called to register all of our global variables with the garbage
+ collector. */
+
+static void
+rs6000_add_gc_roots ()
+{
+ ggc_add_rtx_root (&rs6000_compare_op0, 1);
+ ggc_add_rtx_root (&rs6000_compare_op1, 1);
+}