This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/9331: ICE in final_scan_finsn
- From: bangerth at dealii dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, mutz at kde dot org, nobody at gcc dot gnu dot org
- Date: 15 Jan 2003 19:30:18 -0000
- Subject: Re: optimization/9331: ICE in final_scan_finsn
- Reply-to: bangerth at dealii dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, mutz at kde dot org, nobody at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Old Synopsis: g++ 3.2 gives ice on optimizing a VTK source file - SSE releated
New Synopsis: ICE in final_scan_finsn
State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Wed Jan 15 11:30:16 2003
State-Changed-Why:
Confirmed. Here's a much reduced testcase:
----------------------------
void foo() {
float trueValue;
float* outSI;
if (*outSI)
*outSI = trueValue;
else
*outSI = 0;
}
----------------------------
It crashed the C and C++ front ends of 3.2/3/4 branches
alike:
g/a> /home/bangerth/bin/gcc-3.4-pre/bin/gcc -march=pentium3 -O -c x.c
x.c: In function `foo':
x.c:9: error: could not split insn
(insn 34 11 35 0x4001839c (set (reg:SF 21 exmm0 [62])
(if_then_else:SF (ne (mem:SF (reg/v/f:SI 0 eax [59]) [0 S4 A32])
(reg:SF 21 exmm0 [61]))
(reg/v:SF 22 exmm1 [58])
(const_double:SF 0 [0x0] 0.0 [0x0.0p+0]))) 495 {*sse_movsfcc_const0_3} (insn_list 11 (nil))
(expr_list:REG_DEAD (reg/v:SF 22 exmm1 [58])
(expr_list:REG_EQUIV (mem:SF (reg/v/f:SI 0 eax [59]) [0 S4 A32])
(nil))))
x.c:9: internal compiler error: in final_scan_insn, at final.c:2495
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
W.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9331