From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E1A2338515D1; Fri, 14 Oct 2022 09:56:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E1A2338515D1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665741408; bh=0dGk8wwjBe8aJ+4aM3o/sDrZxNuAbuYsuN4gJVF4ar0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OyaMemB1pW8iO9Gd8+NVR0dg5AbZCPHybNZU08Lcy6vkWFCU2PcmynmO1Le9iOwj1 LrNdTddtRcFvFr02/hpnA5pdeHeC0hkKh8HjfSumbza8kxR6QslDFoI4jqRmP7DMvZ n1TzLRD/2oTpANqiQ4PyCMZC9T+griHjf/9qFAV4= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/107248] wrong scheduling of stack adjustment in leaf function at -O2 Date: Fri, 14 Oct 2022 09:56:48 +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: 7.1.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: ebotcazou at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- 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=3D107248 --- Comment #5 from CVS Commits --- The master branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:e39b170695a161feba7401b7d21d824db9ee1f8f commit r13-3296-ge39b170695a161feba7401b7d21d824db9ee1f8f 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.=