This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
optimization/5428: Mainline gcc gets an ICE in reload_cse_simplify_operands, at reload1.c:8345
- From: pthomas at suse dot de
- To: gcc-gnats at gcc dot gnu dot org
- Date: 18 Jan 2002 22:38:41 -0000
- Subject: optimization/5428: Mainline gcc gets an ICE in reload_cse_simplify_operands, at reload1.c:8345
- Reply-to: pthomas at suse dot de
>Number: 5428
>Category: optimization
>Synopsis: Mainline gcc gets an ICE in reload_cse_simplify_operands, at reload1.c:8345
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Fri Jan 18 14:46:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: pthomas@suse.de
>Release: 3.1 20020114
>Organization:
>Environment:
i486-suse-linux
>Description:
cc1 version 3.1 20020114 (experimental) 486-suse-linux)
fails with an ICE when compiling the attached amd74xx.i,
which is a cut down version of drivers/ide/amd74xx.c from
Linux kernel 2.4.17, with -march=i686 -O2 :
amd74xx.i: In function `ata66_amd74xx':
amd74xx.i:42: insn does not satisfy its constraints:
(insn 157 120 79 (set (mem:QI (plus:SI (reg/f:SI 6 ebp)
(const_int -56 [0xffffffc8])) [10 ata66 S1 A8])
(reg:QI 4 sil)) 60 {*movqi_1} (nil)
(nil))
amd74xx.i:42: Internal compiler error in reload_cse_simplify_operands, at reload1.c:8345
When passing -march=i586 or lower, compilation succeeds, so
it seems to be i686 specific.
Output of 'gcc -v' is:
Reading specs from /usr/lib/gcc-lib/i486-suse-linux/3.1/specs
Configured with: ../configure --enable-threads=posix --enable-long-long --prefix=/usr --with-local-prefix=/usr/local --infodir=/usr/share/info --mandir=/usr/share/man --enable-languages=c,c++,f77,objc,java,ada --with-gxx-include-dir=/usr/include/g++ --with-slibdir=/lib --with-system-zlib --enable-shared i486-suse-linux
Thread model: posix
gcc version 3.1 20020114 (experimental)
>How-To-Repeat:
Compile the attached amd74xx.i with
gcc -c -march=i686 -O2 amd74xx.i
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="amd74xx.i"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="amd74xx.i"
dHlwZWRlZiB1bnNpZ25lZCBjaGFyIHU4OwoKc3RydWN0IHBjaV9kZXYgewogICAgICAgIHVuc2ln
bmVkIHNob3J0IGRldmljZTsKfTsKCmludCBwY2lfcmVhZF9jb25maWdfYnl0ZShzdHJ1Y3QgcGNp
X2RldiAqZGV2LCBpbnQgd2hlcmUsIHU4ICp2YWwpOwoKdHlwZWRlZiB1bnNpZ25lZCBjaGFyIGJ5
dGU7Cgp0eXBlZGVmIHN0cnVjdCBod2lmX3MgewogICAgICAgIGJ5dGUgY2hhbm5lbDsKICAgICAg
ICBzdHJ1Y3QgcGNpX2RldiAqcGNpX2RldjsKfSBpZGVfaHdpZl90OwoKdW5zaWduZWQgaW50IGF0
YTY2X2FtZDc0eHggKGlkZV9od2lmX3QgKmh3aWYpCnsKICAgICAgICBzdHJ1Y3QgcGNpX2RldiAq
ZGV2ID0gaHdpZi0+cGNpX2RldjsKICAgICAgICBieXRlIGNhYmxlXzgwX3BpblsyXSA9IHsgMCwg
MCB9OwogICAgICAgIGJ5dGUgYXRhNjYgPSAwOwogICAgICAgIGJ5dGUgdG1wYnl0ZTsKCiAgICAg
ICAgcGNpX3JlYWRfY29uZmlnX2J5dGUoZGV2LCAweDQyLCAmdG1wYnl0ZSk7CgogICAgICAgIGlm
ICh0bXBieXRlICYgMHgwMSkKCQljYWJsZV84MF9waW5bMF0gPSAxOwoKICAgICAgICBpZiAodG1w
Ynl0ZSAmIDB4MDQpCgkJY2FibGVfODBfcGluWzFdID0gMTsKCiAgICAgICAgc3dpdGNoKGRldi0+
ZGV2aWNlKSB7CiAgICAgICAgICAgICAgICBjYXNlIDB4NzQ0MToKICAgICAgICAgICAgICAgIGNh
c2UgMHg3NDExOgogICAgICAgICAgICAgICAgICAgICAgICBhdGE2NiA9IChod2lmLT5jaGFubmVs
KSA/CiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgY2FibGVfODBfcGluWzFdIDoKICAg
ICAgICAgICAgICAgICAgICAgICAgICAgICAgICBjYWJsZV84MF9waW5bMF07CiAgICAgICAgICAg
ICAgICBkZWZhdWx0OgogICAgICAgICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICB9Cgog
ICAgICAgIHJldHVybiAodW5zaWduZWQgaW50KSBhdGE2NjsKfQo=