[PATCH] Build broken for x86_64 -> alpha cross
Uros Bizjak
ubizjak@gmail.com
Wed Dec 24 17:48:00 GMT 2008
Hello!
Jakub's last patchset broke x86_64 -> alpha crosscompiler build:
gcc -c -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wcast-qual
-Wold-style-definition -Wc++-compat -Wmissing-format-attribute -pedantic
-Wno-long-long -Wno-variadic-macros -Wno-overlength-strings -fno-common
-DHAVE_CONFIG_H -I. -I. -I../../gcc-svn/trunk/gcc
-I../../gcc-svn/trunk/gcc/. -I../../gcc-svn/trunk/gcc/../include
-I../../gcc-svn/trunk/gcc/../libcpp/include
-I../../gcc-svn/trunk/gcc/../libdecnumber
-I../../gcc-svn/trunk/gcc/../libdecnumber/dpd -I../libdecnumber
../../gcc-svn/trunk/gcc/dse.c -o dse.o
../../gcc-svn/trunk/gcc/dse.c: In function ‘get_call_args’:
../../gcc-svn/trunk/gcc/dse.c:2309: error: ‘targetm’ undeclared (first
use in this function)
../../gcc-svn/trunk/gcc/dse.c:2309: error: (Each undeclared identifier
is reported only once
../../gcc-svn/trunk/gcc/dse.c:2309: error: for each function it appears in.)
gmake[2]: *** [dse.o] Error 1
gmake[2]: Leaving directory `/home/uros/gcc-build-alpha-c++/gcc'
gmake[1]: *** [all-gcc] Error 2
gmake[1]: Leaving directory `/home/uros/gcc-build-alpha-c++'
gmake: *** [all] Error 2
Attached patch fixes this problem for me.
2008-12-24 Uros Bizjak <ubizjak@gmail.com>
* dse.c: Include target.h
* Makefile.in (dse.o): Depend on $(TARGET_H).
Patch was also bootstrapped on x86_64-pc-linux-gnu.
OK for mainline?
Uros.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: a.diff.txt
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20081224/82d99046/attachment.txt>
More information about the Gcc-patches
mailing list