[crosstool-ng] Internal compiler error with gcc 4.3.2 + patch

Thomas Petazzoni thomas.petazzoni@free-electrons.com
Wed Aug 5 08:38:00 GMT 2009


Hello,

While compiling icu, with a gcc 4.3.2/glibc toolchain generated by
crosstool-ng 1.4.1, I got the following internal compiler error :

/usr/local/xtools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-g++ -D_REENTRANT -I. -I../common   -DU_I18N_IMPLEMENTATION -g -O2 -fvisibility=hidden -c -DPIC -fPIC -o rematch.o rematch.cpp
rematch.cpp: In member function 'void icu_3_8::RegexMatcher::MatchAt(int32_t, UErrorCode&)':
rematch.cpp:2290: error: unrecognizable insn:
(insn 4205 1393 1395 183 rematch.cpp:1462 (set (reg:SI 12 ip)
        (plus:SI (reg:SI 3 r3 [971])
            (mult:SI (reg/v:SI 14 lr [orig:254 opValue.2027 ] [254])
                (const_int 32 [0x20])))) -1 (nil))
rematch.cpp:2290: internal compiler error: in extract_insn, at recog.c:1990
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

My compiler version:

$ /usr/local/xtools/arm-unknown-linux-gnueabi/bin/arm-unknown-linux-gnueabi-g++ -v
Using built-in specs.
Target: arm-unknown-linux-gnueabi
Configured with: /home/thomas/local/crosstool-ng-1.4.1/targets/src/gcc-4.3.2/configure --build=i486-build_pc-linux-gnu --host=i486-build_pc-linux-gnu --target=arm-unknown-linux-gnueabi --prefix=/usr/local/xtools/arm-unknown-linux-gnueabi --with-sysroot=/usr/local/xtools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi//sys-root --enable-languages=c,c++ --disable-multilib --with-float=soft --with-gmp=/usr/local/xtools/arm-unknown-linux-gnueabi --with-mpfr=/usr/local/xtools/arm-unknown-linux-gnueabi --with-pkgversion=crosstool-NG-1.4.1 --disable-sjlj-exceptions --enable-__cxa_atexit --with-local-prefix=/usr/local/xtools/arm-unknown-linux-gnueabi/arm-unknown-linux-gnueabi//sys-root --disable-nls --enable-threads=posix --enable-symvers=gnu --enable-c99 --enable-long-long --enable-target-optspace
Thread model: posix
gcc version 4.3.2 (crosstool-NG-1.4.1) 

This issue is already fixed in upstream gcc. See report
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37436. The patch is
available at http://gcc.gnu.org/viewcvs?view=rev&revision=142778. The
fix is not part of 4.3.3 and the just released 4.3.4. It should be part
of gcc 4.3.5, according to the target milestone visible on the bug.

Therefore, Crosstool-ng should probably include the fix for gcc
4.3.[234].

Sincerly,

Thomas
-- 
Thomas Petazzoni, Free Electrons
Kernel, drivers and embedded Linux development,
consulting, training and support.
http://free-electrons.com

--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list