From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0186B3851ABD; Fri, 14 Oct 2022 09:58:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0186B3851ABD DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665741523; bh=eenBepImewy2G+GnD/jtmFPwt/CO5NzoauLqv/lr6q0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=VY4pAf+yQwJOQrNJMcGKa+IC0+5AbUS99oYz2IsMl2v7NJezuaw3/q7YfatcyW7FA pk2ruRkWwP1HbKY4Fy7ddiSIf4KxYcqn4xzv0hNn2+eT0qFzz+W+9AXztyLo2/YmyY AJUdbuHGhKEqyTuk2i3bHBeiJh4W7P6oO6TBCdJA= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/38644] [4.6 Regression] Optimization flag -O1 -fschedule-insns2 causes wrong code Date: Fri, 14 Oct 2022 09:58:42 +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: 4.3.2 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.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=3D38644 --- Comment #76 from CVS Commits --- The releases/gcc-11 branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:3f4b65df625edae3e8829718af721ad2330b3f22 commit r11-10311-g3f4b65df625edae3e8829718af721ad2330b3f22 Author: Eric Botcazou Date: Fri Oct 14 11:52:04 2022 +0200 Fix PR target/107248 This is the infamous PR rtl-optimization/38644 rearing its ugly head for leaf functions on SPARC more than a decade later... Richard E.'s gener= ic solution has never been implemented so let's do as other RISC back-ends did. gcc/ PR target/107248 * config/sparc/sparc.c (sparc_expand_prologue): Emit a frame blockage for leaf functions. (sparc_flat_expand_prologue): Emit frame instead of full blocka= ge. (sparc_expand_epilogue): Emit a frame blockage for leaf functio= ns. (sparc_flat_expand_epilogue): Emit frame instead of full blocka= ge.=