summaryrefslogtreecommitdiff
path: root/gcc/xcoffout.c
diff options
context:
space:
mode:
authorMark Mitchell <mark@codesourcery.com>1999-11-06 18:00:18 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-11-06 18:00:18 +0000
commit951a525fefc72be228eb70c7fd1586be9235afab (patch)
treec0d4b74c0177a02d70e723b24982d68c7838cffb /gcc/xcoffout.c
parente06981b09a2f0607cb85f692cb8b9fd89a72de32 (diff)
downloadgcc-951a525fefc72be228eb70c7fd1586be9235afab.tar.gz
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
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;
}