summaryrefslogtreecommitdiff
path: root/gcc/xcoffout.c
diff options
context:
space:
mode:
authormmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1999-11-06 18:00:18 +0000
committermmitchel <mmitchel@138bc75d-0d04-0410-961f-82ee72b054a4>1999-11-06 18:00:18 +0000
commitcff53614c5fcdc00d829b353fba0e812c7adda22 (patch)
treec0d4b74c0177a02d70e723b24982d68c7838cffb /gcc/xcoffout.c
parent313b5927177828266b2b9ab6cfc707219a1d3c23 (diff)
downloadgcc-cff53614c5fcdc00d829b353fba0e812c7adda22.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@30433 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/xcoffout.c')
-rw-r--r--gcc/xcoffout.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/xcoffout.c b/gcc/xcoffout.c
index 6ee08ec2fb1..ae531504f10 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;
}