public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
From: pthomas@suse.de
To: gcc-gnats@gcc.gnu.org
Subject: optimization/5428: Mainline gcc gets an ICE in reload_cse_simplify_operands, at reload1.c:8345
Date: Fri, 18 Jan 2002 14:46:00 -0000	[thread overview]
Message-ID: <20020118223841.24404.qmail@sources.redhat.com> (raw)


>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=


                 reply	other threads:[~2002-01-18 22:46 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20020118223841.24404.qmail@sources.redhat.com \
    --to=pthomas@suse.de \
    --cc=gcc-gnats@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).