Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 388835 (PR51106) - [ICE/4.5/4.6/4.7] arch/x86/crypto/aesni-intel_glue.c:221:1: internal compiler error: in move_insn, at haifa-sched.c:2314
Summary: [ICE/4.5/4.6/4.7] arch/x86/crypto/aesni-intel_glue.c:221:1: internal compiler...
Status: RESOLVED FIXED
Alias: PR51106
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GCC Porting (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
: 405253 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-10-29 09:56 UTC by Roger Luethi
Modified: 2012-02-23 17:19 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Linux .config producing ICE with gcc 4.5.3 (linux-3.0.4-gcc-4.5.3-ICE.config,83.31 KB, text/plain)
2011-10-29 09:56 UTC, Roger Luethi
Details
Log file from "make arch/x86/crypto/aesni-intel_glue.o V=1 >& log" (log,4.46 KB, text/plain)
2011-11-02 07:56 UTC, Roger Luethi
Details
compressed aesni-intel_glue.i (hits file size limit if uncompressed) (aesni-intel_glue.i.bz2,146.38 KB, application/octet-stream)
2011-11-02 08:00 UTC, Roger Luethi
Details
reduced test case (aesni-intel_glue.i,690 bytes, text/plain)
2011-11-03 21:11 UTC, SpanKY
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roger Luethi 2011-10-29 09:56:15 UTC
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)
-----------------------------------------------------
Comment 1 SpanKY gentoo-dev 2011-11-01 16:14:07 UTC
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
Comment 2 Roger Luethi 2011-11-02 07:56:11 UTC
Created attachment 291511 [details]
Log file from "make arch/x86/crypto/aesni-intel_glue.o V=1 >& log"
Comment 3 Roger Luethi 2011-11-02 08:00:36 UTC
Created attachment 291513 [details]
compressed aesni-intel_glue.i (hits file size limit if uncompressed)
Comment 4 SpanKY gentoo-dev 2011-11-03 18:36:45 UTC
thanks, i can reproduce with your test cases now
Comment 5 SpanKY gentoo-dev 2011-11-03 21:11:11 UTC
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.
Comment 6 SpanKY gentoo-dev 2011-11-03 21:12:23 UTC
just need someone to open a PR upstream ;)
Comment 7 Roger Luethi 2011-11-12 13:41:23 UTC
Alright, it's at:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51106

Thanks!
Comment 8 SpanKY gentoo-dev 2011-12-06 23:52:08 UTC
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
Comment 9 Roger Luethi 2011-12-07 07:05:23 UTC
The gcc bugzilla won't let me add 4.7-20110827 ("4.7 [...] is not a valid version"), but the rest is there now.
Comment 10 Ryan Hill (RETIRED) gentoo-dev 2012-01-29 16:12:59 UTC
http://gcc.gnu.org/viewcvs?view=revision&revision=183325
Comment 11 Ryan Hill (RETIRED) gentoo-dev 2012-02-20 05:24:44 UTC
Fixed in 4.5.3 p1.1 and 4.6.3 p1.4.
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-22 16:01:34 UTC
*** Bug 405253 has been marked as a duplicate of this bug. ***
Comment 13 Jeroen Roovers (RETIRED) gentoo-dev 2012-02-23 17:19:29 UTC
*** Bug 405253 has been marked as a duplicate of this bug. ***