Hi all, Here is the description of the ICE I encounter with last gcc 3.3.1 (but also with 3.3 but not with gcc-3.0): + gcc -v -save-temps -D__KERNEL__ -I/usr/src/kernel-source-2.4.21-pa02-lvm-107-20030707/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -D__linux__ -pipe -fno-strength-reduce -mno-space-regs -mfast-indirect-calls -mdisable-fpregs -ffunction-sections -march=1.1 -mschedule=7100 -D_JFS_4K -nostdinc -I /usr/lib/gcc-lib/hppa-linux/3.3.1/include -DKBUILD_BASENAME=jfs_xtree -c -o jfs_xtree.o jfs_xtree.c gcc: warning: -pipe ignored because -save-temps specified Reading specs from /usr/lib/gcc-lib/hppa-linux/3.3.1/specs Configured with: ../src/configure -v --enable-languages=c,c++,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib --enable-nls --without-included-gettext --enable-__cxa_atexit --enable-sjlj-exceptions --enable-clocale=gnu --enable-debug --enable-objc-gc hppa-linux Thread model: posix gcc version 3.3.1 20030626 (Debian prerelease) /usr/lib/gcc-lib/hppa-linux/3.3.1/cc1 -E -quiet -nostdinc -v -I/usr/src/kernel-source-2.4.21-pa02-lvm-107-20030707/include -I /usr/lib/gcc-lib/hppa-linux/3.3.1/include -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=1 -D__KERNEL__ -D__linux__ -D_JFS_4K -DKBUILD_BASENAME=jfs_xtree jfs_xtree.c -mno-space-regs -mfast-indirect-calls -mdisable-fpregs -march=1.1 -mschedule=7100 -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing -fno-common -fomit-frame-pointer -fno-strength-reduce -ffunction-sections -O2 jfs_xtree.i #include "..." search starts here: #include <...> search starts here: /usr/src/kernel-source-2.4.21-pa02-lvm-107-20030707/include /usr/lib/gcc-lib/hppa-linux/3.3.1/include End of search list. /usr/lib/gcc-lib/hppa-linux/3.3.1/cc1 -fpreprocessed jfs_xtree.i -quiet -dumpbase jfs_xtree.c -mno-space-regs -mfast-indirect-calls -mdisable-fpregs -march=1.1 -mschedule=7100 -auxbase-strip jfs_xtree.o -O2 -Wall -Wstrict-prototypes -Wno-trigraphs -version -fno-strict-aliasing -fno-common -fomit-frame-pointer -fno-strength-reduce -ffunction-sections -o jfs_xtree.s GNU C version 3.3.1 20030626 (Debian prerelease) (hppa-linux) compiled by GNU C version 3.3.1 20030626 (Debian prerelease). GGC heuristics: --param ggc-min-expand=38 --param ggc-min-heapsize=15788 jfs_xtree.c: In function `xtUpdate': jfs_xtree.c:2351: error: insn does not satisfy its constraints: (insn 7698 1165 1168 29 (nil) (set (reg:SI 24 %r24) (reg:SI 88 SAR [427])) 37 {*pa.md:2265} (nil) (nil)) jfs_xtree.c:2351: internal compiler error: in reload_cse_simplify_operands, at reload1.c:8345 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. I will attached jfs_xtree.[is] asap. Thanks in advance for your attention, Joel
Created attachment 4359 [details] precompiled version of jfs_xtree.c from linux kernel 2.4.21-pa2
I also have the pre-assembly file (jfs_xtree.s) but I doubt it will usefull; if you need it, please ask me. Joel
Confirmed broken on branch and mainline (20030707). However, reducing this is really unpleasant... Note that this bug belongs in the 'target' category, and only the flags -O2 - mdisable-fpregs are necessary to reproduce this. If someone else would like to reduce this to a smaller testcase, that'd be great...
Created attachment 4361 [details] slightly reduced testcase.i
Subject: Bug 11453 CVSROOT: /cvs/gcc Module name: gcc Changes by: danglin@gcc.gnu.org 2003-07-08 15:26:04 Modified files: gcc : ChangeLog gcc/config/pa : pa.md Log message: PR Target/11453 * pa.md: Disparage all mtsar constraints. (extzv, extv, insv): Don't fail on length of {32|64}. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.396&r2=2.397 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/pa/pa.md.diff?cvsroot=gcc&r1=1.126&r2=1.127
David Anglin already committed a patch for the mainline and is going to commit it for 3.3 branch after testing so assigning it to him.
Subject: Re: gcc > 3.3 ICE > David Anglin already committed a patch for the mainline and is going to > commit it for 3.3 branch > after testing so assigning it to him. If all goes well, I will close the PR tonight. Dave
Subject: Bug 11453 CVSROOT: /cvs/gcc Module name: gcc Branch: gcc-3_3-branch Changes by: danglin@gcc.gnu.org 2003-07-09 05:48:17 Modified files: gcc : ChangeLog gcc/config/pa : pa.md Log message: PR Target/11453 * pa.md: Disparage all mtsar constraints. (extzv, extv, insv): Don't fail on length of {32|64}. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.16114.2.643&r2=1.16114.2.644 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/pa/pa.md.diff?cvsroot=gcc&only_with_tag=gcc-3_3-branch&r1=1.116.2.9&r2=1.116.2.10
Fixed: http://gcc.gnu.org/ml/gcc-patches/2003-07/msg00826.html