This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix treelang build
- From: Andreas Jaeger <aj at suse dot de>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 12 Mar 2003 09:05:14 +0100
- Subject: Fix treelang build
treelang was broken by the c-cppbuiltin change, it fails to bootstrap
on x86_64-linux-gnu with:
/usr/src/aj/cvs/gcc/gcc/c-common.c:4752: undefined reference to `builtin_define_with_value'
c-common.o(.text+0xcfaf):/usr/src/aj/cvs/gcc/gcc/c-common.c:4753: undefined reference to `builtin_define_with_value'
c-common.o(.text+0xcfcc):/usr/src/aj/cvs/gcc/gcc/c-common.c:4754: undefined reference to `builtin_define_with_value'
c-common.o(.text+0xcfde):/usr/src/aj/cvs/gcc/gcc/c-common.c:4755: undefined reference to `builtin_define_with_value'
collect2: ld returned 1 exit status
make[2]: *** [tree1] Error 1
The appended patch fixes this (tested on x86-64). I'm committing it
as obvious,
Andreas
2003-03-12 Andreas Jaeger <aj at suse dot de>
* Make-lang.in (tree1$(exeext)): Add c-cppbuiltin.o.
============================================================
Index: gcc/treelang/Make-lang.in
--- treelang/Make-lang.in 4 Mar 2003 21:33:35 -0000 1.14
+++ treelang/Make-lang.in 12 Mar 2003 08:03:42 -0000
@@ -82,10 +82,12 @@ treelang.done: tree1$(exeext)
# core compiler
tree1$(exeext): treelang/tree1.o treelang/treetree.o treelang/lex.o treelang/parse.o\
- $(TREE_BE_LIBS) c-convert.o c-typeck.o c-common.o c-decl.o attribs.o
+ $(TREE_BE_LIBS) c-convert.o c-typeck.o c-common.o c-cppbuiltin.o \
+ c-decl.o attribs.o
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ \
- treelang/tree1.o treelang/treetree.o treelang/lex.o treelang/parse.o c-convert.o\
- c-typeck.o c-common.o c-decl.o attribs.o $(TREE_BE_LIBS)
+ treelang/tree1.o treelang/treetree.o treelang/lex.o treelang/parse.o
+ c-convert.o c-typeck.o c-common.o c-cppbuiltin.o c-decl.o attribs.o \
+ $(TREE_BE_LIBS)
#
# Compiling object files from source files.
--
Andreas Jaeger
SuSE Labs aj at suse dot de
private aj at arthur dot inka dot de
http://www.suse.de/~aj