This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
optimization/5887: Internal compiler error in extract_insn
- From: roman at idecnet dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 8 Mar 2002 18:36:29 -0000
- Subject: optimization/5887: Internal compiler error in extract_insn
- Reply-to: roman at idecnet dot com
>Number: 5887
>Category: optimization
>Synopsis: Internal compiler error in extract_insn
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: ice-on-legal-code
>Submitter-Id: net
>Arrival-Date: Fri Mar 08 10:46:02 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Roman Dudek
>Release: 3.2 20020303 (experimental)
>Organization:
>Environment:
System: Linux redhat 2.4.9-13SGI_XFS_1.0.2 #1 Thu Nov 15 11:38:50 CST 2001 i686 unknown
Architecture: i686
<machine, os, target, libraries (multiple lines)>
host: i686-pc-linux-gnu
build: i686-pc-linux-gnu
target: i686-pc-linux-gnu
configured with: ./configure : (reconfigured) ./configure --prefix /usr/bin : (reconfigured) ./configure --prefix=/usr : (reconfigured) ./configure --prefix=/usr
>Description:
compiling the attached code witth:
gcc bug1.cpp -O3 -msse -ffast-math
the comiler reports internal error:
bug1.cpp: In function `void fillLookup(char*)':
bug1.cpp:23: unrecognizable insn:
(insn 275 274 276 (set (reg:CCFP 17 flags)
(compare:CCFP (reg:SF 21 exmm0 [78])
(mem/f:SF (plus:SI (reg/f:SI 6 ebp)
(const_int -268 [0xfffffef4])) [3 S4 A32]))) -1 (nil)
(nil))
bug1.cpp:23: Internal compiler error in extract_insn, at recog.c:2131
>How-To-Repeat:
compiling the attached code witth:
gcc bug1.cpp -O3 -msse -ffast-math
>Fix:
Workaround: reduce optimization for this file
(dropping -ffast-math prevents the bug)
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: application/octet-stream; name="bug1.cpp"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="bug1.cpp"
ZmxvYXQgR2V0U2NhbGUoZmxvYXQmIGEsIGZsb2F0JiBiKQp7CglhID0gMC4yNWY7CgliID0gMC43
NWY7Cn0KCnZvaWQgZmlsbExvb2t1cChjaGFyKiBsb29rdXApCnsKICAgIGZsb2F0IHgsIGR4Owog
ICAgR2V0U2NhbGUoeCwgZHgpOwoJY2hhciBhdXhbMjU2XTsKICAgIGZvcihpbnQgaSA9IDA7IGkg
PCAyNTY7IGkrKykKICAgIHsKCQlmbG9hdCB2ID0geDsKCQlpZih2IDwgMC4wZikgdiA9IDAuMGY7
CgkJaWYodiA8IDI1NS4wZikgdiA9IDI1NS4wZjsKCQlhdXhbaV0gPSBpbnQodik7CgkJeCArPSBk
eDsKICAgIH0KCQoJZm9yKGludCBqID0gMDsgaiA8IDI1NjsgaisrKSAKCQlsb29rdXBbal0gPSBh
dXhbal07Cn0KCgo=