Created attachment 291127 [details] Linux .config producing ICE with gcc 4.5.3 Building Linux 3.0.4 with gcc-4.5.3 results in an ICE: arch/x86/crypto/aesni-intel_glue.c: In function 'aes_decrypt': arch/x86/crypto/aesni-intel_glue.c:221:1: internal compiler error: in move_insn, at haifa-sched.c:2314 Older kernels (i.e. 2.6.39) are affected, too. gcc-4.4.5 works fine. The error can also be avoided by enabling CONFIG_CC_OPTIMIZE_FOR_SIZE. ----------------------------------------------------- $ gcc -v Using built-in specs. COLLECT_GCC=/usr/i686-pc-linux-gnu/gcc-bin/4.5.3/gcc COLLECT_LTO_WRAPPER=/usr/libexec/gcc/i686-pc-linux-gnu/4.5.3/lto-wrapper Target: i686-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-4.5.3-r1/work/gcc-4.5.3/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/4.5.3 --includedir=/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/4.5.3 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/4.5.3/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/4.5.3/info --with-gxx-include-dir=/usr/lib/gcc/i686-pc-linux-gnu/4.5.3/include/g++-v4 --host=i686-pc-linux-gnu --build=i686-pc-linux-gnu --disable-altivec --disable-fixed-point --without-ppl --without-cloog --disable-lto --enable-nls --without-included-gettext --with-system-zlib --disable-werror --enable-secureplt --disable-multilib --enable-libmudflap --disable-libssp --enable-libgomp --with-python-dir=/share/gcc-data/i686-pc-linux-gnu/4.5.3/python --enable-checking=release --enable-java-awt=gtk --with-arch=i686 --enable-languages=c,c++,java,fortran --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --with-bugurl=http://bugs.gentoo.org/ --with-pkgversion='Gentoo 4.5.3-r1 p1.0, pie-0.4.5' Thread model: posix gcc version 4.5.3 (Gentoo 4.5.3-r1 p1.0, pie-0.4.5) -----------------------------------------------------
run in your kernel dir: make arch/x86/crypto/aesni-intel_glue.o if that fails, run: make arch/x86/crypto/aesni-intel_glue.o V=1 >& log make arch/x86/crypto/aesni-intel_glue.i and then post the "log" and "arch/x86/crypto/aesni-intel_glue.i" files as attachments
Created attachment 291511 [details] Log file from "make arch/x86/crypto/aesni-intel_glue.o V=1 >& log"
Created attachment 291513 [details] compressed aesni-intel_glue.i (hits file size limit if uncompressed)
thanks, i can reproduce with your test cases now
Created attachment 291613 [details] reduced test case $ gcc-4.5.2 -c -m32 -O2 aesni-intel_glue.i aesni-intel_glue.i:32:25: warning: initialization from incompatible pointer type aesni-intel_glue.i: In function ‘aes_decrypt’: aesni-intel_glue.i:30:1: internal compiler error: in move_insn, at haifa-sched.c:2314 Please submit a full bug report, with preprocessed source if appropriate. See <http://bugs.gentoo.org/> for instructions.
just need someone to open a PR upstream ;)
Alright, it's at: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51106 Thanks!
i don't have perms on the gcc bugzilla, but you'll want to edit the bug and add: Known to fail: 4.5.3 4.6.2 4.7-20110827 Known to work: 4.3.6 4.4.5 Target: i686-pc-linux-gnu Host: i686-pc-linux-gnu
The gcc bugzilla won't let me add 4.7-20110827 ("4.7 [...] is not a valid version"), but the rest is there now.
http://gcc.gnu.org/viewcvs?view=revision&revision=183325
Fixed in 4.5.3 p1.1 and 4.6.3 p1.4.
*** Bug 405253 has been marked as a duplicate of this bug. ***