From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A0ADF38515FB; Fri, 14 Oct 2022 10:00:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A0ADF38515FB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665741603; bh=/55DW926sXwPuBpyXDdjIKhEaM+NolbEmtvZmVcV/Z4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Di78gUnEYmkKH5/TZXp4H8a0SjOYli+pXrWnUdqcrciuMADhm4TTg9QfD+m2FCFAZ HD4lYN+5vRFBki6h4S4wEtm/YlcZR+AeDJCcM/tzQS6ST8J+1I1BA95BEUPYRj3mHV Lnz4gyW0dj3Tcnzcqxe14El7MVhRalf+avMIh8jU= 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 10:00:03 +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 #77 from CVS Commits --- The releases/gcc-10 branch has been updated by Eric Botcazou : https://gcc.gnu.org/g:d0ef37c35b7ff7324b4567652380f32079d46088 commit r10-11034-gd0ef37c35b7ff7324b4567652380f32079d46088 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.=