https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64412
Bug ID: 64412 Summary: [regression] ICE in offload compiler: in extract_insn, at recog.c:2327 Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: lto Assignee: unassigned at gcc dot gnu.org Reporter: iverbin at gcc dot gnu.org CC: bernds at gcc dot gnu.org, hubicka at gcc dot gnu.org, kyukhin at gcc dot gnu.org, tschwinge at gcc dot gnu.org After fixing PR lto/64043 (r218767) the offload target compiler began crashing while reading intermediate bytecode. FAIL: libgomp.c/examples-4/e.53.5.c (internal compiler error) FAIL: libgomp.c/for-3.c (internal compiler error) FAIL: libgomp.c++/for-11.C (internal compiler error) FAIL: libgomp.fortran/examples-4/e.53.3.f90 -O2 (internal compiler error) etc. To reproduce using Intel Xeon Phi emulation: 1. Build offload and host compilers as described in https://gcc.gnu.org/wiki/Offloading#How_to_try_offloading_enabled_GCC 2. Run make check-target-libgomp RUNTESTFLAGS="c.exp=e.53.5.c" libgomp/testsuite/libgomp.c/examples-4/e.53.5.c: In function 'accum._omp_fn.1': libgomp/testsuite/libgomp.c/examples-4/e.53.5.c:53:13: error: unrecognizable insn: #pragma omp parallel for reduction(+:tmp) ^ (insn 176 66 177 4 (set (reg:DI 0 ax) (symbol_ref:DI ("Q") <var_decl 0x7fb57ffcb900 Q>)) -1 (nil)) libgomp/testsuite/libgomp.c/examples-4/e.53.5.c:53:13: internal compiler error: in extract_insn, at recog.c:2327 0xbadaf7 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) gcc/rtl-error.c:110 0xbadb38 _fatal_insn_not_found(rtx_def const*, char const*, int, char const*) gcc/rtl-error.c:118 0xb60522 extract_insn(rtx_insn*) gcc/recog.c:2327 0xb60221 extract_constrain_insn(rtx_insn*) gcc/recog.c:2228 0xb6e973 copyprop_hardreg_forward_1 gcc/regcprop.c:773 0xb701db execute gcc/regcprop.c:1279 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <http://gcc.gnu.org/bugs.html> for instructions. mkoffload-intelmic: fatal error: x86_64-pc-linux-gnu-accel-x86_64-intelmicemul-linux-gnu-gcc returned 1 exit status compilation terminated. lto-wrapper: fatal error: accel/x86_64-intelmicemul-linux-gnu/mkoffload returned 1 exit status compilation terminated. ld: lto-wrapper failed collect2: error: ld returned 1 exit status