aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog12
-rw-r--r--gcc/Makefile.in7
-rw-r--r--gcc/dbxout.c3
-rw-r--r--gcc/dwarf2out.c4
-rw-r--r--gcc/xcoffout.c4
5 files changed, 27 insertions, 3 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 6864759..ecca2e5 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,15 @@
+Sat Nov 6 09:57:59 1999 Mark Mitchell <mark@codesourcery.com>
+
+ * Makefile.in (dbxout.o): Depend on ggc.h.
+ (dwarf2out.o): Likewise.
+ (xcoffout.o): Likewise.
+ * dbxout.c: Include ggc.h.
+ (dbxout_init): Register lastfile as a root.
+ * dwarf2out.c: Include ggc.h.
+ (dwarf2out_line): Register lastfile as a root.
+ * xcoffout.c: Include ggc.h.
+ (xcoffout_source_line): Register xcoff_lastfile as a root.
+
Sat Nov 6 09:52:09 1999 Richard Henderson <rth@cygnus.com>
* i386.md (movdf_1, movxf_1): Earlyclobber general regs destination.
diff --git a/gcc/Makefile.in b/gcc/Makefile.in
index f92b4d4..e0f5db9 100644
--- a/gcc/Makefile.in
+++ b/gcc/Makefile.in
@@ -1506,7 +1506,7 @@ optabs.o : optabs.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
toplev.h ggc.h
dbxout.o : dbxout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) flags.h $(REGS_H) \
insn-config.h reload.h gstab.h xcoffout.h defaults.h output.h dbxout.h \
- toplev.h
+ toplev.h gcc.h
sdbout.o : sdbout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) flags.h except.h \
function.h $(EXPR_H) output.h hard-reg-set.h $(REGS_H) defaults.h real.h \
insn-config.h $(srcdir)/../include/obstack.h xcoffout.h c-pragma.h \
@@ -1515,9 +1515,10 @@ dwarfout.o : dwarfout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) dwarf.h \
flags.h insn-config.h reload.h output.h defaults.h toplev.h dwarfout.h
dwarf2out.o : dwarf2out.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) dwarf2.h \
flags.h insn-config.h reload.h output.h defaults.h \
- hard-reg-set.h $(REGS_H) $(EXPR_H) toplev.h dwarf2out.h dyn-string.h
+ hard-reg-set.h $(REGS_H) $(EXPR_H) toplev.h dwarf2out.h dyn-string.h \
+ ggc.h
xcoffout.o : xcoffout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) xcoffout.h \
- flags.h toplev.h output.h dbxout.h
+ flags.h toplev.h output.h dbxout.h ggc.h
emit-rtl.o : emit-rtl.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
function.h $(REGS_H) insn-config.h $(RECOG_H) real.h ggc.h \
$(EXPR_H) $(srcdir)/../include/obstack.h hard-reg-set.h bitmap.h toplev.h
diff --git a/gcc/dbxout.c b/gcc/dbxout.c
index 5357b02..7005194 100644
--- a/gcc/dbxout.c
+++ b/gcc/dbxout.c
@@ -81,6 +81,7 @@ Boston, MA 02111-1307, USA. */
#include "dbxout.h"
#include "toplev.h"
#include "tm_p.h"
+#include "ggc.h"
#ifdef XCOFF_DEBUGGING_INFO
#include "xcoffout.h"
@@ -463,6 +464,8 @@ dbxout_init (asm_file, input_file_name, syms)
and output them all, except for those already output. */
dbxout_typedefs (syms);
+
+ ggc_add_string_root ((char **) &lastfile, 1);
}
/* Output any typedef names for types described by TYPE_DECLs in SYMS,
diff --git a/gcc/dwarf2out.c b/gcc/dwarf2out.c
index 41fe6cb..232ec81 100644
--- a/gcc/dwarf2out.c
+++ b/gcc/dwarf2out.c
@@ -44,6 +44,7 @@ Boston, MA 02111-1307, USA. */
#include "dwarf2out.h"
#include "toplev.h"
#include "dyn-string.h"
+#include "ggc.h"
/* We cannot use <assert.h> in GCC source, since that would include
GCC's assert.h, which may not be compatible with the host compiler. */
@@ -9698,6 +9699,9 @@ dwarf2out_line (filename, line)
/* Emit the .file and .loc directives understood by GNU as. */
if (lastfile == 0 || strcmp (filename, lastfile))
{
+ if (lastfile == 0)
+ ggc_add_string_root ((char **) &lastfile, 1);
+
fprintf (asm_out_file, "\t.file 0 \"%s\"\n", filename);
lastfile = filename;
}
diff --git a/gcc/xcoffout.c b/gcc/xcoffout.c
index 6ee08ec..ae53150 100644
--- a/gcc/xcoffout.c
+++ b/gcc/xcoffout.c
@@ -31,6 +31,7 @@ Boston, MA 02111-1307, USA. */
#include "flags.h"
#include "toplev.h"
#include "output.h"
+#include "ggc.h"
#ifdef XCOFF_DEBUGGING_INFO
@@ -350,6 +351,9 @@ xcoffout_source_file (file, filename, inline_p)
fprintf (file, "\n");
xcoff_current_include_file = filename;
}
+
+ if (!xcoff_lastfile)
+ ggc_add_root (&xcoff_lastfile, 1);
xcoff_lastfile = filename;
}