Hello, I am porting my backend to GCC47 and during libgcc configuration I get: configure:4511: checking whether to use setjmp/longjmp exceptions configure:: /home/pm18/p4ws/pm18_binutils/bc/main/result/linux/ intermediate/FirmwareGcc47Package/./gcc/xgcc -B/home/pm18/p4ws/ pm18_binutils/bc/main/result/linux/intermediate/Firmware Gcc47Package/./gcc/ -B/home/pm18/p4ws/pm18_binutils/bc/main/result/linux/ image/gcc_470_1/xap-local-xap/bin/ -B/home/pm18/p4ws/pm18_binutils/bc/ main/result/linux/image/gcc_470_1/xap-l ocal-xap/lib/ -isystem /home/pm18/p4ws/pm18_binutils/bc/main/result/linux/ image/gcc_470_1/xap-local-xap/include -isystem /home/pm18/p4ws/ pm18_binutils/bc/main/result/linux/image/gcc_ 470_1/xap-local-xap/sys-include -c --save-temps -fexceptions conftest.c >&5 conftest.c: In function 'foo': conftest.c:19:1: internal compiler error: in emit_move_insn, at expr.c:3435 Please submit a full bug report, with preprocessed source if appropriate. See <bug database module 'GCC for Xap2'> for instructions. configure:: $? = 1
My guess is that this is due to the use of -fexceptions. The failing program is: | /* confdefs.h */ | #define PACKAGE_NAME "GNU C Runtime Library" | #define PACKAGE_TARNAME "libgcc" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "GNU C Runtime Library 1.0" | #define PACKAGE_BUGREPORT "" | #define PACKAGE_URL "http://www.gnu.org/software/libgcc/" | #define SIZEOF_DOUBLE 0 | #define SIZEOF_LONG_DOUBLE 0 | #define HAVE_GETIPINFO 1 | /* end confdefs.h. */ | | void bar (); | void clean (int *); | void foo () | { | int i __attribute__ ((cleanup (clean))); | bar(); | } | Is there any new requirement for backends related to exceptions on GCC47? We have never supported exceptions and we haven't had any trouble until now. Also, I get loads of errors of the following while testing for the existence of system headers. Am I expected to have a working libc for my port at this point in GCC compilation? conftest.c:9:19: fatal error: stdio.h: No such file or directory libgcc configuration terminates with: checking size of long double... 0 checking whether decimal floating point is supported... no configure: WARNING: decimal float is not supported for this target, ignored checking whether fixed-point is supported... no checking whether to use setjmp/longjmp exceptions... unknown checking if the linker (/home/pm18/p4ws/pm18_binutils/bc/main/result/ linux/intermediate/FirmwareGcc47Package/./gcc/collect-ld) is GNU ld... no checking for thread model used by GCC... single checking whether assembler supports CFI directives... yes *** Configuration xap-local-xap not supported make[2]: *** [configure-target-libgcc] Error 1 Cheers, -- PMatos