public inbox for gcc-prs@sourceware.org help / color / mirror / Atom feed
From: Tom Holroyd <tomh@po.crl.go.jp> To: gcc-gnats@gcc.gnu.org Cc: tomh@po.crl.go.jp Subject: c/5160: gcc 3.0.2 ICE on Alpha in extract_insn, at recog.c:2218 Date: Tue, 18 Dec 2001 19:36:00 -0000 [thread overview] Message-ID: <200112190333.MAA30871@holly.crl.go.jp> (raw) >Number: 5160 >Category: c >Synopsis: gcc 3.0.2 ICE on Alpha in extract_insn, at recog.c:2218 >Confidential: no >Severity: serious >Priority: medium >Responsible: unassigned >State: open >Class: ice-on-legal-code >Submitter-Id: net >Arrival-Date: Tue Dec 18 19:36:00 PST 2001 >Closed-Date: >Last-Modified: >Originator: Tom Holroyd >Release: 3.0.2 >Organization: Kansai Advanced Research Center >Environment: System: Linux holly 2.4.14 #2 Tue Nov 6 12:10:19 JST 2001 alpha unknown Architecture: alpha host: alphaev67-unknown-linux-gnu build: alphaev67-unknown-linux-gnu target: alphaev67-unknown-linux-gnu configured with: ../gcc-3.0.2/configure --disable-nls >Description: The following code (in file gccbug.c): void moo(void) { int i, c, m; float x, y; for (i = 0; i < c; i++) { m = 0; if (x + y < 0.) m |= 1; if (m) x = 1.; } } produces: % gcc -O2 -ffast-math -c gccbug.c gccbug.c: In function `moo': gccbug.c:11: Unrecognizable insn: (insn 89 28 90 (set (reg:DF 86) (ge:DF (reg:DF 76) (const_double:DF (cc0) 0 [0x0] 0 [0x0] [0]))) -1 (insn_list 28 (nil)) (expr_list:REG_DEAD (reg:DF 76) (nil))) gccbug.c:11: Internal compiler error in extract_insn, at recog.c:2218 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions. This code was originally from Mesa-4.0.2; this error causes Mesa to fail to build on Alpha. I have the latest binutils. GNU ld version 2.11.2 (with BFD 2.11.2) >How-To-Repeat: As above. >Fix: Removing -ffast-math fixes it, or using -O1. Changing almost anything in the above code makes the error go away, including removing the "|", making the "<" into a "==", changing the "1." to a "0.", removing lines, etc. This is about as minimal as I could make it. >Release-Note: >Audit-Trail: >Unformatted:
next reply other threads:[~2001-12-19 3:36 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2001-12-18 19:36 Tom Holroyd [this message] 2002-04-26 2:10 rth
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=200112190333.MAA30871@holly.crl.go.jp \ --to=tomh@po.crl.go.jp \ --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: linkBe 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).