This is the mail archive of the
gcc-prs@gcc.gnu.org
mailing list for the GCC project.
Re: optimization/8985: ICE in extract_insn, at recog.c:2148 with -fssa-ccp option
- From: reichelt at igpm dot rwth-aachen dot de
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, vitalyb at mailru dot com
- Date: 18 Dec 2002 13:10:47 -0000
- Subject: Re: optimization/8985: ICE in extract_insn, at recog.c:2148 with -fssa-ccp option
- Reply-to: reichelt at igpm dot rwth-aachen dot de, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, vitalyb at mailru dot com, gcc-gnats at gcc dot gnu dot org
Old Synopsis: "Internal compiler error in extract_insn, at recog.c:2148" with -fssa-ccp option
New Synopsis: ICE in extract_insn, at recog.c:2148 with -fssa-ccp option
State-Changed-From-To: open->analyzed
State-Changed-By: reichelt
State-Changed-When: Wed Dec 18 05:10:46 2002
State-Changed-Why:
Confirmed.
The bug is present since gcc 3.1 when the option -fssa-ccp was introduced.
It affects the 3.2 branch and gcc 3.3 as of 20021216.
A shorter testcase is the following:
-------------------------snip here-----------------------------
int foo ()
{
int i=0;
char *p="";
if (p) i|=1;
return i && p;
}
-------------------------snip here-----------------------------
Compiling this with gcc 3.2.1 (gcc -O -fssa -fssa-ccp) I get:
PR8985.cc: In function `int foo()':
PR8985.cc:9: unrecognizable insn:
(insn 27 55 28 (parallel[
(set (reg:SI 64)
(const_int 1 [0x1]))
(clobber (reg:CC 17 flags))
] ) -1 (nil)
(expr_list:REG_UNUSED (reg:CC 17 flags)
(insn_list:REG_WAS_0 11 (expr_list:REG_EQUAL (const_int 1 [0x1])
(nil)))))
PR8985.cc:9: Internal compiler error in extract_insn, at recog.c:2148
Please submit a full bug report, [etc.]
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8985