This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[gcc-3_4-basic-improvements-branch] Patch installed to fix missing targetm in vmsdbgout.c
- From: "Kaveh R. Ghazi" <ghazi at caip dot rutgers dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 15 Sep 2002 15:26:29 -0400 (EDT)
- Subject: [gcc-3_4-basic-improvements-branch] Patch installed to fix missing targetm in vmsdbgout.c
This patch allows vmsdbgout.c to compile. The error only occurs on
the basic improvements branch since only there does vmsdbgout.c use
targetm.
Tested via cross-compiling cc1 on alpha-dec-vms & alpha64-dec-vms
Installed as obvious on the gcc-3_4-basic-improvements-branch.
2002-09-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* Makefile.in (vmsdbgout.o): Depend on $(TARGET_H)
* vmsdbgout.c: Include "target.h".
diff -rup orig/egcc-bib-CVS20020914/gcc/Makefile.in egcc-bib-CVS20020914/gcc/Makefile.in
--- orig/egcc-bib-CVS20020914/gcc/Makefile.in 2002-09-11 07:02:32.000000000 -0400
+++ egcc-bib-CVS20020914/gcc/Makefile.in 2002-09-15 14:40:36.351798928 -0400
@@ -1473,7 +1473,7 @@ dwarf2out.o : dwarf2out.c $(CONFIG_H) $(
dwarf2asm.o : dwarf2asm.c $(CONFIG_H) $(SYSTEM_H) flags.h $(RTL_H) $(TREE_H) \
output.h dwarf2asm.h $(TM_P_H) $(GGC_H)
vmsdbgout.o : vmsdbgout.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) flags.h \
- output.h vmsdbg.h debug.h langhooks.h function.h
+ output.h vmsdbg.h debug.h langhooks.h function.h $(TARGET_H)
xcoffout.o : xcoffout.c $(CONFIG_H) $(SYSTEM_H) $(TREE_H) $(RTL_H) xcoffout.h \
flags.h toplev.h output.h dbxout.h $(GGC_H) $(TARGET_H)
emit-rtl.o : emit-rtl.c $(CONFIG_H) $(SYSTEM_H) $(RTL_H) $(TREE_H) flags.h \
diff -rup orig/egcc-bib-CVS20020914/gcc/vmsdbgout.c egcc-bib-CVS20020914/gcc/vmsdbgout.c
--- orig/egcc-bib-CVS20020914/gcc/vmsdbgout.c 2002-09-01 22:46:08.000000000 -0400
+++ egcc-bib-CVS20020914/gcc/vmsdbgout.c 2002-09-15 14:39:59.035262264 -0400
@@ -32,6 +32,7 @@ Software Foundation, 59 Temple Place - S
#include "debug.h"
#include "langhooks.h"
#include "function.h"
+#include "target.h"
/* Difference in seconds between the VMS Epoch and the Unix Epoch */
static const long long vms_epoch_offset = 3506716800ll;