From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D4F443858C01; Wed, 23 Aug 2023 10:51:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D4F443858C01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692787908; bh=KZk1eJlR6uWXQR0GUI23Cudwkg3kfJty4OcKanuxKYA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qqnkQUypzuooySisAMwYXVEmP/dDGn2ZwOfNvyg9+Er7AsYu/e+3XeQ4xEUw7Zphn 98jgdZC/0TKYQ5M0UnKwA5RpdqCoQDukmPBxWkKSfqqfPW3jBXEIVFi5FVUoFwpoOU XQrLuaxF5Z6GqbFNeq2GPPU42Ax5q6h5TH1lCki4= From: "rearnsha at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111096] Frame pointer is not used even when -fomit-frame-pointer is specified Date: Wed, 23 Aug 2023 10:51:47 +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: 14.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rearnsha at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: WONTFIX X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: resolution bug_status 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=3D111096 Richard Earnshaw changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |WONTFIX Status|UNCONFIRMED |RESOLVED --- Comment #5 from Richard Earnshaw --- This was a deliberate design choice. Although the frame chain is not set u= p by code that omits the frame pointer, the chain of frames that are set up by o= ther functions is still valid this way. This ensures that any code that does tr= y to walk the frame chain will not crash. If we reused the frame pointer for ot= her purposes, then any code trying to walk the frame chain (eg backtrace()) wou= ld encounter an invalid record and likely crash. With 31 main registers, the benefit from one additional one is not especial= ly large.=