gcc fails to build the attached testcase with optimization levels above -O0. The problem occurs with all versions from the gcc 4.x branch. Versions gcc 3.x do not expose the problem. Note that the ICE occurs on both old-ABI and EABI.
Using built-in specs. Target: arm-linux-gnueabi Configured with: ../src/configure -v --with-pkgversion='Debian 4.3.0-5' --with-bugurl=file:///usr/share/doc/gcc-4.3/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --enable-nls --with-gxx-include-dir=/usr/include/c++/4.3 --program-suffix=-4.3 --enable-clocale=gnu --enable-libstdcxx-debug --enable-objc-gc --enable-mpfr --disable-libssp --disable-sjlj-exceptions --enable-checking=release --build=arm-linux-gnueabi --host=arm-linux-gnueabi --target=arm-linux-gnueabi Thread model: posix gcc version 4.3.1 20080523 (prerelease) (Debian 4.3.0-5)
gcc fails to build the attached testcase with optimization levels above -O0. The problem occurs with all versions from the gcc 4.x branch. Versions gcc 3.x do not expose the problem. Note that the ICE occurs on both old-ABI and EABI.
Using built-in specs. pkgversion= 'Debian 4.3.0-5' --with- bugurl= file:// /usr/share/ doc/gcc- 4.3/README. Bugs --enable- languages= c,c++,fortran, objc,obj- c++ --prefix=/usr --enable-shared --with-system-zlib --libexecdir= /usr/lib --without- included- gettext --enable- threads= posix --enable-nls --with- gxx-include- dir=/usr/ include/ c++/4.3 --program- suffix= -4.3 --enable- clocale= gnu --enable- libstdcxx- debug --enable-objc-gc --enable-mpfr --disable-libssp --disable- sjlj-exceptions --enable- checking= release --build= arm-linux- gnueabi --host= arm-linux- gnueabi --target= arm-linux- gnueabi
Target: arm-linux-gnueabi
Configured with: ../src/configure -v --with-
Thread model: posix
gcc version 4.3.1 20080523 (prerelease) (Debian 4.3.0-5)