http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60763
Bug ID: 60763
Summary: ICE in extract_insn starting with rev 208984
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: pthaugen at gcc dot gnu.org
CC: bergner at gcc dot gnu.org, dje at gcc dot gnu.org,
rsandifo at gcc dot gnu.org
Host: powerpc64-linux
Target: powerpc64-linux
Build: powerpc64-linux
Bootstrap build on PowerPC using --with-cpu=power8 started failing in stage2
build with stated revision. Also noticed with non-bootstrap build that several
testcases fail in similar manner. Following is example (reduced from
gcc.c-torture/compile/20020604-1.c).
[pthaugen@igoo delta]$ cat 20020604-1.c
foo (unsigned int n, int x, int y, unsigned char *z)
{
{
unsigned int i;
for (i = 0; i < n; i++)
{
{
union
{
float r;
unsigned int i;
}
e;
((e.i >= 0x3f7f0000) ? ((int) e.i <
0) ? (unsigned char) 0 : (unsigned char) 255
: (e.r = e.r * (255.0F / 256.0F) + 32768.0F, (unsigned char) e.i));
}
}
}
}
[pthaugen@igoo delta]$ ~/install/gcc/trunk_work/bin/gcc -c -O1 -mcpu=power8
20020604-1.c
20020604-1.c: In function ‘foo’:
20020604-1.c:20:1: error: unrecognizable insn:
}
^
(insn 64 63 65 5 (set (subreg:DI (reg:SF 32 0) 0)
(reg:DI 8 8)) 20020604-1.c:16 -1
(nil))
20020604-1.c:20:1: internal compiler error: in extract_insn, at recog.c:2202
0x105fafe3 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
/home/pthaugen/src/gcc/trunk_work/gcc/gcc/rtl-error.c:109
0x105fb053 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*)
/home/pthaugen/src/gcc/trunk_work/gcc/gcc/rtl-error.c:117
0x105c5723 extract_insn(rtx_def*)
/home/pthaugen/src/gcc/trunk_work/gcc/gcc/recog.c:2202
0x105c57ef extract_insn_cached(rtx_def*)
/home/pthaugen/src/gcc/trunk_work/gcc/gcc/recog.c:2105
0x10370f37 cleanup_subreg_operands(rtx_def*)
/home/pthaugen/src/gcc/trunk_work/gcc/gcc/final.c:3063
0x105c46b7 split_insn
/home/pthaugen/src/gcc/trunk_work/gcc/gcc/recog.c:2920
0x105c498b split_all_insns()
/home/pthaugen/src/gcc/trunk_work/gcc/gcc/recog.c:2974
0x105c4b0f rest_of_handle_split_after_reload
/home/pthaugen/src/gcc/trunk_work/gcc/gcc/recog.c:3923
0x105c4b0f execute
/home/pthaugen/src/gcc/trunk_work/gcc/gcc/recog.c:3952
Please submit a full bug report,