c++/8993: ICE with -march=pentium4
bangerth@dealii.org
bangerth@dealii.org
Thu Dec 19 15:03:00 GMT 2002
Old Synopsis: ICE during VTK compile
New Synopsis: ICE with -march=pentium4
State-Changed-From-To: feedback->closed
State-Changed-By: bangerth
State-Changed-When: Thu Dec 19 15:03:33 2002
State-Changed-Why:
I got the source in private mail. After some deletions,
the ICE can be triggered with this simple piece of code:
------------------------------
void bar() {
float *p, *q, f;
if (*p)
*q = 0;
else
*q = f;
}
--------------------------
tmp/g> /home/bangerth/bin/gcc-3.2.2-pre/bin/c++ -c -march=pentium4 -O3 x.ii
x.ii: In function `void bar()':
x.ii:7: could not split insn
(insn 53 63 64 (set (reg:SF 23 exmm2 [62])
(if_then_else:SF (eq (mem:SF (reg/v/f:SI 0 eax [58]) [2 S4 A32])
(reg:SF 23 exmm2 [62]))
(reg/v:SF 22 exmm1 [60])
(const_double:SF 0 [0x0] 0 [0x0] 0 [0x0] 0 [0x0] 0 [0x0]))) 643 {*sse_movsfcc_const0_3} (insn_list 20 (nil))
(expr_list:REG_DEAD (reg/v:SF 22 exmm1 [60])
(nil)))
x.ii:7: Internal compiler error in final_scan_insn, at final.c:2622
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
It works on mainline, though. Since -march=pentium4 has
not existed in any prior version, this is not a regression
and I close it since it is apparently fixed in mainline.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8993
More information about the Gcc-bugs
mailing list