Commit 951a525f by Mark Mitchell Committed by Mark Mitchell

Makefile.in (dbxout.o): Depend on ggc.h.

	* 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.

From-SVN: r30433
parent e06981b0
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> Sat Nov 6 09:52:09 1999 Richard Henderson <rth@cygnus.com>
* i386.md (movdf_1, movxf_1): Earlyclobber general regs destination. * i386.md (movdf_1, movxf_1): Earlyclobber general regs destination.
......
...@@ -1506,7 +1506,7 @@ optabs.o : optabs.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \ ...@@ -1506,7 +1506,7 @@ optabs.o : optabs.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
toplev.h ggc.h toplev.h ggc.h
dbxout.o : dbxout.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) flags.h $(REGS_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 \ 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 \ 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 \ 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 \ 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 \ ...@@ -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 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 \ 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 \ 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 \ 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 \ 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 \ 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 $(EXPR_H) $(srcdir)/../include/obstack.h hard-reg-set.h bitmap.h toplev.h
......
...@@ -81,6 +81,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -81,6 +81,7 @@ Boston, MA 02111-1307, USA. */
#include "dbxout.h" #include "dbxout.h"
#include "toplev.h" #include "toplev.h"
#include "tm_p.h" #include "tm_p.h"
#include "ggc.h"
#ifdef XCOFF_DEBUGGING_INFO #ifdef XCOFF_DEBUGGING_INFO
#include "xcoffout.h" #include "xcoffout.h"
...@@ -463,6 +464,8 @@ dbxout_init (asm_file, input_file_name, syms) ...@@ -463,6 +464,8 @@ dbxout_init (asm_file, input_file_name, syms)
and output them all, except for those already output. */ and output them all, except for those already output. */
dbxout_typedefs (syms); dbxout_typedefs (syms);
ggc_add_string_root ((char **) &lastfile, 1);
} }
/* Output any typedef names for types described by TYPE_DECLs in SYMS, /* Output any typedef names for types described by TYPE_DECLs in SYMS,
......
...@@ -44,6 +44,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -44,6 +44,7 @@ Boston, MA 02111-1307, USA. */
#include "dwarf2out.h" #include "dwarf2out.h"
#include "toplev.h" #include "toplev.h"
#include "dyn-string.h" #include "dyn-string.h"
#include "ggc.h"
/* We cannot use <assert.h> in GCC source, since that would include /* 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. */ GCC's assert.h, which may not be compatible with the host compiler. */
...@@ -9698,6 +9699,9 @@ dwarf2out_line (filename, line) ...@@ -9698,6 +9699,9 @@ dwarf2out_line (filename, line)
/* Emit the .file and .loc directives understood by GNU as. */ /* Emit the .file and .loc directives understood by GNU as. */
if (lastfile == 0 || strcmp (filename, lastfile)) 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); fprintf (asm_out_file, "\t.file 0 \"%s\"\n", filename);
lastfile = filename; lastfile = filename;
} }
......
...@@ -31,6 +31,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -31,6 +31,7 @@ Boston, MA 02111-1307, USA. */
#include "flags.h" #include "flags.h"
#include "toplev.h" #include "toplev.h"
#include "output.h" #include "output.h"
#include "ggc.h"
#ifdef XCOFF_DEBUGGING_INFO #ifdef XCOFF_DEBUGGING_INFO
...@@ -350,6 +351,9 @@ xcoffout_source_file (file, filename, inline_p) ...@@ -350,6 +351,9 @@ xcoffout_source_file (file, filename, inline_p)
fprintf (file, "\n"); fprintf (file, "\n");
xcoff_current_include_file = filename; xcoff_current_include_file = filename;
} }
if (!xcoff_lastfile)
ggc_add_root (&xcoff_lastfile, 1);
xcoff_lastfile = filename; xcoff_lastfile = filename;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment