From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25050 invoked by alias); 26 Dec 2014 12:29:15 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 24996 invoked by uid 48); 26 Dec 2014 12:29:10 -0000 From: "iverbin at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug lto/64412] New: [regression] ICE in offload compiler: in extract_insn, at recog.c:2327 Date: Fri, 26 Dec 2014 12:29:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: lto X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: iverbin at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-12/txt/msg02751.txt.bz2 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") )) -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 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