ICE in compiling complex/cacos.c for arm/thumb

Ralf Corsepius ralf.corsepius@rtems.org
Tue Oct 12 15:43:00 GMT 2010


Hi,

when bootstrapping GCC/newlib for arm/thumb using gcc-4.5.1 or 
gcc-4_5-branch, I am facing a GCC ICE:

...
/builddir/build/BUILD/rtems-4.11-arm-rtems4.11-gcc-4.5.1/build/./gcc/xgcc -B/builddir/build/BUILD/rtems-4.11-arm-rtems4.11-gcc-4.5.1/build/./gcc/ 
-nostdinc 
-B/builddir/build/BUILD/rtems-4.11-arm-rtems4.11-gcc-4.5.1/build/arm-rtems4.11/thumb/newlib/ 
-isystem 
/builddir/build/BUILD/rtems-4.11-arm-rtems4.11-gcc-4.5.1/build/arm-rtems4.11/thumb/newlib/targ-include 
-isystem 
/builddir/build/BUILD/rtems-4.11-arm-rtems4.11-gcc-4.5.1/gcc-4.5.1/newlib/libc/include 
-B/opt/rtems-4.11/arm-rtems4.11/bin/ 
-B/opt/rtems-4.11/arm-rtems4.11/lib/ -isystem 
/opt/rtems-4.11/arm-rtems4.11/include -isystem 
/opt/rtems-4.11/arm-rtems4.11/sys-include  -mthumb 
-DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" 
-DPACKAGE_VERSION=\"1.18.0\" -DPACKAGE_STRING=\"newlib\ 1.18.0\" 
-DPACKAGE_BUGREPORT=\"\" -I. 
-I../../../../../../gcc-4.5.1/newlib/libm/complex 
-I../../../../../../gcc-4.5.1/newlib/libm/complex/../common 
-I../../../../../../gcc-4.5.1/newlib/libm/complex/ -D_COMPILING_NEWLIB 
-DMALLOC_PROVIDED -DEXIT_PROVIDED -DSIGNAL_PROVIDED 
-DREENTRANT_SYSCALLS_PROVIDED -DHAVE_NANOSLEEP -DHAVE_BLKSIZE 
-DHAVE_FCNTL -DHAVE_ASSERT_FUNC -D_NO_GETLOGIN -D_NO_GETPWENT 
-D_NO_GETUT -D_NO_GETPASS -D_NO_SIGSET -D_NO_WORDEXP -D_NO_POPEN 
-fno-builtin      -g -O2  -mthumb -c -o lib_a-cacos.o `test -f 'cacos.c' 
|| echo '../../../../../../gcc-4.5.1/newlib/libm/complex/'`cacos.c
../../../../../../gcc-4.5.1/newlib/libm/complex/cacos.c: In function 
'cacos':
../../../../../../gcc-4.5.1/newlib/libm/complex/cacos.c:46:1: internal 
compiler error: in find_valid_class, at reload.c:704
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make[8]: *** [lib_a-cacos.o] Error 1


Though this definitely is a compiler bug, I found reordering the code in 
complex/cacos.c lets building succeed.

I am going to add this patch to RTEMS newlib patches and would 
appreciate if it was considered for inclusion in newlib.

TIA,

Ralf
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: newlib-complex-cacos.diff
URL: <http://sourceware.org/pipermail/newlib/attachments/20101012/7ff22e67/attachment.ksh>


More information about the Newlib mailing list