From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 042BD38515F8; Fri, 14 Oct 2022 09:57:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 042BD38515F8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665741466; bh=yDzh/M6cd8azsyp06wkHiYbH3akwkrk7VBexIlGDDHQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wZS83koqumEoYb3M/RQNS8kwtlqyzVF+FioZEAqsjW6gSwVzj0EVrwpfJUKGYY75J Nul6lZ9/XhIkXHwt761qOFKSTweEv6E+V2Kc8dObiQ1fQYXnPEtF8MjZDNXxPLvzIw gNpbrO1jxBBAsMszONP7bx0FOWvH5+cVE3/q+/CA= 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:57:45 +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 #75 from CVS Commits --- The releases/gcc-12 branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:a5a6598d5b1d29741993371310c0bb8ca57e190c commit r12-8831-ga5a6598d5b1d29741993371310c0bb8ca57e190c 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.cc (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.=