This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Bootstrap failure in targhooks.c
- From: Rainer Orth <ro at TechFak dot Uni-Bielefeld dot DE>
- To: neroden at twcny dot rr dot com (Nathanael Nerode)
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 23 Sep 2003 23:22:44 +0200 (MEST)
- Subject: Re: Bootstrap failure in targhooks.c
- References: <20030923210432.GA14410@twcny.rr.com>
Nathanael Nerode writes:
> gcc -c -g -DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long -fno-common -DHAVE_CONFIG_H -I. -I. -I../../gcc-main/gcc -I../../gcc-main/gcc/. -I../../gcc-main/gcc/../include ../../gcc-main/gcc/targhooks.c -o targhooks.o
> ../../gcc-main/gcc/targhooks.c: In function `default_external_libcall':
> ../../gcc-main/gcc/targhooks.c:68: error: `asm_out_file' undeclared (first use in this function)
> ../../gcc-main/gcc/targhooks.c:68: error: (Each undeclared identifier is reported only once
> ../../gcc-main/gcc/targhooks.c:68: error: for each function it appears in.)
> make[2]: *** [targhooks.o] Error 1
>
> I don't think this is due to one of my local changes, though I suppose
> I could be wrong.
> I'm guessing one of Rainer Orth's recent changes, perhaps?
I fear you're right: I had only bootstrapped on mips-sgi-irix6.5, where
ASM_OUTPUT_EXTERNAL_LIBCALL isn't defined any longer due to my patch. I
think the patch below fixes this, but will make extra sure by bootstrapping
on sparc-sun-solaris2.8 (which includes elfos.h and thus gets a definition
of A_O_E_L).
Sorry for the breakage.
Rainer
-----------------------------------------------------------------------------
Rainer Orth, Faculty of Technology, Bielefeld University
Tue Sep 23 20:32:19 2003 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
* targhooks.c: Include output.h.
* Makefile.in (targhooks.o): Add output.h to dependency list.
Index: gcc/Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.1156
diff -u -p -r1.1156 Makefile.in
--- gcc/Makefile.in 14 Sep 2003 10:28:21 -0000 1.1156
+++ gcc/Makefile.in 23 Sep 2003 21:18:18 -0000
@@ -1490,7 +1492,8 @@ opts.o : opts.c opts.h options.h toplev.
coretypes.h $(TREE_H) $(TM_H) $(LANGHOOKS_H) $(GGC_H) $(RTL_H) \
output.h $(DIAGNOSTIC_H) $(TM_P_H) $(INSN_ATTR_H) intl.h
targhooks.o : targhooks.c targhooks.h $(CONFIG_H) $(SYSTEM_H) \
- coretypes.h $(TREE_H) $(TM_H) $(RTL_H) $(TM_P_H) function.h toplev.h
+ coretypes.h $(TREE_H) $(TM_H) $(RTL_H) $(TM_P_H) function.h \
+ output.h toplev.h
toplev.o : toplev.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) $(TREE_H) $(RTL_H) \
function.h flags.h xcoffout.h input.h $(INSN_ATTR_H) output.h $(DIAGNOSTIC_H) \
Index: gcc/targhooks.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/targhooks.c,v
retrieving revision 2.6
diff -u -p -r2.6 targhooks.c
--- gcc/targhooks.c 23 Sep 2003 19:17:42 -0000 2.6
+++ gcc/targhooks.c 23 Sep 2003 21:18:18 -0000
@@ -55,6 +55,7 @@ Software Foundation, 59 Temple Place - S
#include "rtl.h"
#include "tree.h"
#include "expr.h"
+#include "output.h"
#include "toplev.h"
#include "function.h"
#include "target.h"