http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49305
Summary: SH Target: internal compiler error: in reload_cse_simplify_operands, at postreload.c:403 Product: gcc Version: 4.7.0 Status: UNCONFIRMED Severity: major Priority: P3 Component: target AssignedTo: unassig...@gcc.gnu.org ReportedBy: oleg.e...@t-online.de When building newlib 1.19.0 it fails to build the SH2A lib: sh-elf-gcc -B/home/y/code/gcc/newlib-1.19.0-build-sh-elf/sh-elf/m2a/newlib/ -isystem /home/y/code/gcc/newlib-1.19.0-build-sh-elf/sh-elf/m2a/newlib/targ-include -isystem /home/y/code/gcc/newlib-1.19.0/newlib/libc/include -B/home/y/code/gcc/newlib-1.19.0-build-sh-elf/sh-elf/m2a/libgloss/sh -L/home/y/code/gcc/newlib-1.19.0-build-sh-elf/sh-elf/m2a/libgloss/libnosys -L/home/y/code/gcc/newlib-1.19.0/libgloss/sh -m2a -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"1.19.0\" -DPACKAGE_STRING=\"newlib\ 1.19.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I. -I../../../../../../newlib-1.19.0/newlib/libc/stdio -fno-builtin -Os -mnomacsave -mpretend-cmove -mfused-madd -freg-struct-return -m2a -c ../../../../../../newlib-1.19.0/newlib/libc/stdio/vfwscanf.c -o lib_a-vfwscanf.o ../../../../../../newlib-1.19.0/newlib/libc/stdio/vfwscanf.c: In function '__svfwscanf_r': ../../../../../../newlib-1.19.0/newlib/libc/stdio/vfwscanf.c:1454:1: error: insn does not satisfy its constraints: (insn 2358 4549 2359 471 (set (reg:SI 0 r0 [1023]) (sign_extend:SI (mem/s:HI (plus:SI (reg:SI 2 r2) (const_int 12 [0xc])) [5 fp_167(D)->_flags+0 S2 A32]))) ../../../../../../newlib-1.19.0/newlib/libc/stdio/vfwscanf.c:1447 164 {*extendqisi2_compact} (nil)) ../../../../../../newlib-1.19.0/newlib/libc/stdio/vfwscanf.c:1454:1: internal compiler error: in reload_cse_simplify_operands, at postreload.c:403 sh-elf-gcc -v Using built-in specs. COLLECT_GCC=sh-elf-gcc COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/sh-elf/4.7.0/lto-wrapper Target: sh-elf Configured with: ../gcc-trunk/configure --target=sh-elf --prefix=/usr/local --enable-languages=c,c++ --enable-multilib --disable-libssp --without-headers --disable-nls --disable-werror --enable-lto --with-newlib --with-gnu-as --with-gnu-ld --with-system-zlib Thread model: single gcc version 4.7.0 20110606 (experimental) (GCC)