https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66358
Bug ID: 66358 Summary: [5/6 Regression] [SH] ICE: in extract_constrain_insn, at recog.c:2232 Product: gcc Version: 6.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: kkojima at gcc dot gnu.org CC: olegendo at gcc dot gnu.org Target Milestone: --- Target: sh*-*-* On sh4-unknown-linux-gnu, gcc5/6 fails to compile libiberty/regex.c with -O2 -fpic: libiberty/regex.c: In function 'byte_re_match_2_internal': libiberty/regex.c:7486:1: error: insn does not satisfy its constraints: (insn 14303 10571 14304 388 (set (reg:SI 2 r2) (sign_extend:SI (mem:QI (plus:SI (reg/f:SI 6 r6 [orig:794 D.8765 ] [794]) (const_int 5 [0x5])) [0 MEM[(unsigned char *)_1000 + 5B]+0 S1 A8]))) libiberty/regex.c:7109 232 {*extendqisi2_compact_mem_disp} (nil)) libiberty/regex.c:7486:1: internal compiler error: in extract_constrain_insn, at recog.c:2232 0x86d443f _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) ../../ORIG/trunk/gcc/rtl-error.c:110 0x86d4475 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) ../../ORIG/trunk/gcc/rtl-error.c:121 0x86a0835 extract_constrain_insn(rtx_insn*) ../../ORIG/trunk/gcc/recog.c:2232 0x86a3b29 copyprop_hardreg_forward_1 ../../ORIG/trunk/gcc/regcprop.c:788 0x86a4877 execute ../../ORIG/trunk/gcc/regcprop.c:1283 There is no problem with gcc-4.9.x.