From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4BEA03858D39; Tue, 3 Jan 2023 11:13:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4BEA03858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1672744389; bh=+b+Q47owDVGqbOYu956r6YgjgoUXKJnFk2pIJb7p3DI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=sJzB9yofd4PNcgg6YU4cN7BPDpzcgXvM5JkkWEY2fXAmCVaFwZ1hFMyCd3TXGzG+j w2XgBSJpUFBdrHWgHHnNqRnymruE6059Pw0V6PsjwM3ntNE/AJMpkty31Eok9HQZ1m enKOei3eObFQsDGH0c2aQ4BI9gzd/MHes7UJQLKc= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/108263] [13 Regression] ICE building Linux kernel on ppc64le Date: Tue, 03 Jan 2023 11:13:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ice-on-valid-code, inline-asm X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: jakub at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108263 --- Comment #2 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:4fb639a7fee5df32a2d1e7afa40fdf31d280464b commit r13-4974-g4fb639a7fee5df32a2d1e7afa40fdf31d280464b Author: Jakub Jelinek Date: Tue Jan 3 12:12:35 2023 +0100 cfgrtl: Don't try to redirect asm goto to EXIT [PR108263] The following testcase distilled from Linux kernel on ppc64le ICEs, because fixup_reorder_chain sees a bb with a single fallthru edge falling into a bb with simple return and decides to redirect that fallthru edge to EXIT. That is possible if the bb ending in the fallthru edge doesn't end with a jump or ends with a normal unconditional jump, but not when the bb ends with asm goto which can despite a single fallthru have multiple labels to the fallthrough basic block. The following patch makes sure we never try to redirect such cases to E= XIT. 2023-01-03 Jakub Jelinek PR rtl-optimization/108263 * cfgrtl.cc (fixup_reorder_chain): Avoid trying to redirect asm goto to EXIT. * gcc.dg/pr108263.c: New test.=