From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5A9F43877007; Mon, 16 Mar 2020 11:52:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5A9F43877007 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1584359526; bh=5WsjCAlHxXE6QH5OmpgCDU6rm+Qopfm8CPdIYV6WW/g=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QnU/BeOLQXILMVlkuGiSpOsTLCzwAWeFu9/uDkLc9JP9t6ImKn37z2hOn7oevhj5w IzaZP4lBYWYHNVYz7JStQMeRSQtgbwQkFzIiSPh4hK4kPHgQflxt9V8MuSU/oTfCIt Rri2ZiRfNkRgerC1bcRf8A0Oi2DkIOBQBg3BzE6E= From: "zsojka at seznam dot cz" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/94185] [10 Regression] crashes with "error: unable to generate reloads for {*zero_extendsidi2} internal compiler error: in curr_insn_transform, at lra-constraints.c:4006 Date: Mon, 16 Mar 2020 11:52:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 10.0 X-Bugzilla-Keywords: ice-on-valid-code, ra X-Bugzilla-Severity: normal X-Bugzilla-Who: zsojka at seznam dot cz X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Mar 2020 11:52:06 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94185 --- Comment #3 from Zdenek Sojka --- I am hitting probably the same issue: $ cat testcase.c int a, b, c; int foo (char e, short f, long g) { g =3D __builtin_mul_overflow (a, c, &b) ? g : (unsigned) g; g &=3D __builtin_clrsbll (b); return e + f + g + a + b + c; } $ x86_64-pc-linux-gnu-gcc -O -fno-omit-frame-pointer -mbranch-cost=3D1 test= case.c testcase.c: In function 'foo': testcase.c:9:1: error: unable to generate reloads for: 9 | } | ^ (insn 27 26 28 3 (set (mem/c:DI (plus:DI (reg/f:DI 19 frame) (const_int -56 [0xffffffffffffffc8])) [2 %sfp+-8 S8 A64]) (zero_extend:DI (mem/c:SI (plus:DI (reg/f:DI 19 frame) (const_int -56 [0xffffffffffffffc8])) [2 %sfp+-8 S4 A64= ]))) 114 {*zero_extendsidi2} (nil)) during RTL pass: reload testcase.c:9:1: internal compiler error: in curr_insn_transform, at lra-constraints.c:4006 0x6d3384 _fatal_insn(char const*, rtx_def const*, char const*, int, char const*) /repo/gcc-trunk/gcc/rtl-error.c:108 0x68fcfe curr_insn_transform /repo/gcc-trunk/gcc/lra-constraints.c:4006 0xe36e76 lra_constraints(bool) /repo/gcc-trunk/gcc/lra-constraints.c:5025 0xe2199c lra(_IO_FILE*) /repo/gcc-trunk/gcc/lra.c:2437 0xdd5479 do_reload /repo/gcc-trunk/gcc/ira.c:5523 0xdd5479 execute /repo/gcc-trunk/gcc/ira.c:5709 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. and also on another testcase; -fno-omit-frame-pointer seems to be the common compiler switch=