From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BE3FA384843F; Tue, 6 Jul 2021 07:34:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BE3FA384843F From: "slyfox at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/100782] [11 Regression] sh4 ICEs on -O2 -fPIE -fstack-protector: internal compiler error: in curr_insn_transform, at lra-constraints.c:4132 Date: Tue, 06 Jul 2021 07:34:29 +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: 11.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at gcc dot gnu.org X-Bugzilla-Status: WAITING X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.2 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: Tue, 06 Jul 2021 07:34:29 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100782 --- Comment #3 from Sergei Trofimovich --- (In reply to Richard Biener from comment #2) > The description says: >=20 > gcc version 12.0.0 20210526 (experimental) (GCC) >=20 > so is this about GCC 12 or GCC 11? What version worked fine (why's this > marked as regression?) My apologies. It should be a gcc-11 regression. More gcc versions outputs: $ /tmp:sh4-unknown-linux-gnu-gcc-10.3.0 -O2 -mlra -fexceptions -fPIE -fstack-protector -c a.c $ sh4-unknown-linux-gnu-gcc-11.1.0 -O2 -mlra -fexceptions -fPIE -fstack-protector -c a.c a.c: In function 'ffi_raw_call_cif': a.c:9:1: error: unable to generate reloads for: 9 | } | ^ (call_insn 18 16 20 2 (parallel [ (call (mem:SI (symbol_ref:SI ("ffi_raw_to_ptrarray") [flags 0x4= 1] ) [0 ffi_raw_to_ptrarray = S4 A32]) (const_int 0 [0])) (use (reg:SI 154 fpscr0)) (use (reg:SI 12 r12)) (clobber (reg:SI 146 pr)) (clobber (reg:SI 183)) ]) "a.c":7:3 228 {call_pcrel} (expr_list:REG_CALL_DECL (symbol_ref:SI ("ffi_raw_to_ptrarray") [flags 0x41] ) (nil)) (nil)) during RTL pass: reload a.c:9:1: internal compiler error: in curr_insn_transform, at lra-constraints.c:4138 0x7f3c4ea9e7ac __libc_start_main ../csu/libc-start.c:332 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions.=