GCC 3.0 --host=i686-linux --target=sh-elf build failure; needs backported patch
Toshi Morita
tm2@best.com
Tue May 15 13:56:00 GMT 2001
version: gcc 3.0 branch
host: i686-linux
target: sh-elf
GCC fails to build with this error:
...
gcc -c -DCROSS_COMPILE -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -I. -I. -I../../gcc/gcc -I../../gcc/gcc/. -I../../gcc/gcc/config -I../../gcc/gcc/../include ../../gcc/gcc/dwarf2out.c -o dwarf2out.o
../../gcc/gcc/dwarf2out.c: In function `dwarf2out_frame_debug':
../../gcc/gcc/dwarf2out.c:1598: `ACCUMULATE_OUTGOING_ARGS' undeclared (first use in this function)
../../gcc/gcc/dwarf2out.c:1598: (Each undeclared identifier is reported only once
../../gcc/gcc/dwarf2out.c:1598: for each function it appears in.)
../../gcc/gcc/dwarf2out.c: In function `output_call_frame_info':
../../gcc/gcc/dwarf2out.c:1767: warning: integer constant is unsigned in ANSI C, signed with -traditional
../../gcc/gcc/dwarf2out.c: In function `int_loc_descriptor':
../../gcc/gcc/dwarf2out.c:7008: warning: integer constant is unsigned in ANSI C, signed with -traditional
../../gcc/gcc/dwarf2out.c:7020: warning: integer constant is unsigned in ANSI C, signed with -traditional
make[1]: *** [dwarf2out.o] Error 1
make[1]: Leaving directory `/home/tm/gcc3.0/linux-build-sh-elf/gcc'
make: *** [all-gcc] Error 2
[tm@localhost linux-build-sh-elf]$
...because this patch needs to be applied to the 3.0 branch as well
as the mainline:
2001-03-18 Richard Henderson <rth@redhat.com>
* defaults.h (ACCUMULATE_OUTGOING_ARGS, PUSH_ARGS): Move from ...
* calls.c: ... here.
* combine.c, expr.c, final.c, function.c toplev.c: Don't provide
defaults for them here.
The body of the patch is at:
http://gcc.gnu.org/ml/gcc-patches/2001-03/msg01308.html
Toshi
More information about the Gcc-bugs
mailing list