Hi,
I made an extension of the alpha backend. To make it cleaner I have
created another backend directory (in gcc/config/mtalpha). I updated the
configure scripts and binutils accordingly (with the new path, name
"mtalpha", features of my extension).
The problem is when I generate the compiler (as a cross-compiler on my
x86 machine), I have the following errors while generating the libgcc:
HEADERS="auto-host.h ansidecl.h" DEFINES="USED_FOR_TARGET " \
/bin/sh ../../gcc-4.1.0-core-uT/gcc/mkconfig.sh tconfig.h
/opt/gcc_dev/gcc-4.1.0-core-uT-build/./gcc/xgcc
-B/opt/gcc_dev/gcc-4.1.0-core-uT-build/./gcc/
-B/opt/cross-mtalpha/mtalpha-linux-gnu/bin/
-B/opt/cross-mtalpha/mtalpha-linux-gnu/lib/ -isystem
/opt/cross-mtalpha/mtalpha-linux-gnu/include -isystem
/opt/cross-mtalpha/mtalpha-linux-gnu/sys-include -O2 -O2 -g3 -O0 -mieee
-DIN_GCC -DCROSS_COMPILE -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -Wold-style-definition -isystem ./include -I. -I.
-I../../gcc-4.1.0-core-uT/gcc -I../../gcc-4.1.0-core-uT/gcc/.
-I../../gcc-4.1.0-core-uT/gcc/../include
-I../../gcc-4.1.0-core-uT/gcc/../libcpp/include -g0
-finhibit-size-directive -fno-inline-functions -fno-exceptions
-fno-zero-initialized-in-bss -fno-unit-at-a-time -Dinhibit_libc \
-c ../../gcc-4.1.0-core-uT/gcc/crtstuff.c -DCRT_BEGIN \
-o crtbegin.o
In file included from ../../gcc-4.1.0-core-uT/gcc/crtstuff.c:71:
../../gcc-4.1.0-core-uT/gcc/unwind-dw2-fde.h:59: warning: integer
constant is too large for 'long' type
../../gcc-4.1.0-core-uT/gcc/unwind-dw2-fde.h:59: error: width of
'sorted' exceeds its type
../../gcc-4.1.0-core-uT/gcc/unwind-dw2-fde.h:60: warning: integer
constant is too large for 'long' type
../../gcc-4.1.0-core-uT/gcc/unwind-dw2-fde.h:60: error: width of
'from_array' exceeds its type
../../gcc-4.1.0-core-uT/gcc/unwind-dw2-fde.h:61: warning: integer
constant is too large for 'long' type
../../gcc-4.1.0-core-uT/gcc/unwind-dw2-fde.h:61: error: width of
'mixed_encoding' exceeds its type
../../gcc-4.1.0-core-uT/gcc/unwind-dw2-fde.h:62: warning: integer
constant is too large for 'long' type
../../gcc-4.1.0-core-uT/gcc/unwind-dw2-fde.h:62: error: width of
'encoding' exceeds its type
../../gcc-4.1.0-core-uT/gcc/unwind-dw2-fde.h:65: warning: integer
constant is too large for 'long' type
../../gcc-4.1.0-core-uT/gcc/unwind-dw2-fde.h:65: error: width of 'count'
exceeds its type
../../gcc-4.1.0-core-uT/gcc/unwind-dw2-fde.h: In function 'last_fde':
../../gcc-4.1.0-core-uT/gcc/unwind-dw2-fde.h:180: warning: comparison is
always false due to limited range of data type
../../gcc-4.1.0-core-uT/gcc/crtstuff.c: At top level:
../../gcc-4.1.0-core-uT/gcc/crtstuff.c:184: warning: integer constant is
too large for 'long' type
../../gcc-4.1.0-core-uT/gcc/crtstuff.c:186: error: size of array
'__CTOR_LIST__' is too large
../../gcc-4.1.0-core-uT/gcc/crtstuff.c:186: warning: integer constant is
too large for 'long' type
../../gcc-4.1.0-core-uT/gcc/crtstuff.c:197: warning: integer constant is
too large for 'long' type
../../gcc-4.1.0-core-uT/gcc/crtstuff.c:199: error: size of array
'__DTOR_LIST__' is too large
../../gcc-4.1.0-core-uT/gcc/crtstuff.c:199: warning: integer constant is
too large for 'long' type
../../gcc-4.1.0-core-uT/gcc/crtstuff.c:206: warning: integer constant is
too large for 'long' type
../../gcc-4.1.0-core-uT/gcc/crtstuff.c:207: error: requested alignment
is too large
../../gcc-4.1.0-core-uT/gcc/crtstuff.c:234: warning: initialization
makes pointer from integer without a cast
../../gcc-4.1.0-core-uT/gcc/crtstuff.c: In function '__do_global_dtors_aux':
../../gcc-4.1.0-core-uT/gcc/crtstuff.c:264: warning: integer constant is
too large for 'long' type
../../gcc-4.1.0-core-uT/gcc/crtstuff.c:300: warning: integer constant is
too large for 'long' type
make[1]: *** [crtbegin.o] Error 1
make[1]: Leaving directory `/opt/gcc_dev/gcc-4.1.0-core-uT-build/gcc'
make: *** [all-gcc] Error 2
Any clue ?
Thanks for any help.
T.