http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52855
Bug #: 52855 Summary: ARM: Internal compiler error: in extract_insn, at recog.c:2109 Classification: Unclassified Product: gcc Version: 4.6.3 Status: UNCONFIRMED Severity: major Priority: P3 Component: c AssignedTo: unassig...@gcc.gnu.org ReportedBy: mpthomp...@gmail.com Created attachment 27080 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=27080 Preprocessed *.i* file that triggers the bug. See command line in description to trigger bug. Using GCC 4.6.3 on Debian armhf to create ARMv6+VFP binaries for Raspberry Pi computer. The compiler differs from the standard Debian Wheezy armhf as the configured with the options: --with-arch=armv6 --with-float=hard --with-fpu=vfp The file that triggers the error mg.c from a build of the Perl package. Test files and information to reproduce the error given below. ## ## GCC Version and Configurations Options ## ## Note: --with-arch=armv6 --with-float=hard --with-fpu=vfp ## $ gcc -v Using built-in specs. COLLECT_GCC=gcc COLLECT_LTO_WRAPPER=/usr/lib/gcc/arm-linux-gnueabihf/4.6/lto-wrapper Target: arm-linux-gnueabihf Configured with: ../src/configure -v --with-pkgversion='Debian 4.6.3-1' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --disable-sjlj-exceptions --with-arch=armv6 --with-float=hard --with-fpu=vfp --enable-checking=release --build=arm-linux-gnueabihf --host=arm-linux-gnueabihf --target=arm-linux-gnueabihf Thread model: posix gcc version 4.6.3 (Debian 4.6.3-1) ## ## System Type and Information ## Debian Wheezy armhf (hard float) install. $ uname -a Linux armor.home.lan 2.6.35.3-mx5 #1 PREEMPT Wed Mar 28 04:03:29 PDT 2012 armv7l GNU/Linux $ cat /proc/cpuinfo Processor : ARMv7 Processor rev 5 (v7l) BogoMIPS : 999.42 Features : swp half thumb fastmult vfp edsp neon vfpv3 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x2 CPU part : 0xc08 CPU revision : 5 Hardware : Freescale MX53 LOCO Board Revision : 53321 Serial : 0000000000000000 ## ## Command Line To Reproduce Bug ## gcc -DPERL_CORE -c -D_REENTRANT -D_GNU_SOURCE -DDEBIAN -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -g -Wall -W -Wextra -Wdeclaration-after-statement -Wendif-labels -Wc++-compat -Wwrite-strings -o cccPDUUP.o cccPDUUP.i ## ## Compiler Error Messages ## mg.c: In function ‘Perl_magic_get’: mg.c:1168:1: error: unrecognizable insn: (insn 1708 1707 1709 69 (set (reg:SI 2 r2) (sign_extend:SI (mem/s/j:QI (plus:SI (reg:SI 0 r0) (const_int 1681 [0x691])) [0 my_perl_54(D)->Iutf8cache+0 S1 A8]))) mg.c:967 -1 (nil)) mg.c:1168:1: internal compiler error: in extract_insn, at recog.c:2109 Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions. Preprocessed source stored into /tmp/ccsQAOCv.out file, please attach this to your bugreport. $