Bug 11453 - gcc > 3.3 ICE
Summary: gcc > 3.3 ICE
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 3.3.1
: P2 normal
Target Milestone: 3.4.0
Assignee: John David Anglin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-07-07 12:56 UTC by Joel Soete
Modified: 2003-07-09 06:02 UTC (History)
1 user (show)

See Also:
Host:
Target: hppa-linux
Build:
Known to work:
Known to fail:
Last reconfirmed: 2003-07-08 16:48:05


Attachments
precompiled version of jfs_xtree.c from linux kernel 2.4.21-pa2 (67.86 KB, text/plain)
2003-07-07 13:00 UTC, Joel Soete
Details
slightly reduced testcase.i (63.85 KB, text/plain)
2003-07-08 05:48 UTC, Dara Hazeghi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Soete 2003-07-07 12:56:00 UTC
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
Comment 1 Joel Soete 2003-07-07 13:00:22 UTC
Created attachment 4359 [details]
precompiled version of jfs_xtree.c from linux kernel 2.4.21-pa2
Comment 2 Joel Soete 2003-07-07 13:03:42 UTC
I also have the pre-assembly file (jfs_xtree.s) but I doubt it will usefull; if
you need it, please ask me.

Joel
Comment 3 Dara Hazeghi 2003-07-08 05:47:00 UTC
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...
Comment 4 Dara Hazeghi 2003-07-08 05:48:22 UTC
Created attachment 4361 [details]
slightly reduced testcase.i
Comment 5 GCC Commits 2003-07-08 15:26:09 UTC
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

Comment 6 Andrew Pinski 2003-07-08 16:48:04 UTC
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.
Comment 7 dave 2003-07-08 16:54:55 UTC
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
Comment 8 GCC Commits 2003-07-09 05:48:19 UTC
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

Comment 9 John David Anglin 2003-07-09 06:02:12 UTC
Fixed:
http://gcc.gnu.org/ml/gcc-patches/2003-07/msg00826.html