From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 64020385E456; Wed, 14 Feb 2024 15:35:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 64020385E456 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707924911; bh=hLqD3Vrc2Wu3puH9qhMxiW7dCRNMI/g8gRBJBMNC4iM=; h=From:To:Subject:Date:From; b=t3Dg36FgNiGMQHWub5YG7TUYRM8RtzR+IruvM0w1Ny/Zhi11SLfQ86dbU7skYufTy Fyfu1vLH1sKnsbwV3DK6758m0X26Yq0EfSJ0Ft0vWn8wwIIU+w1FH18L/G7qqzwPDY IqN9nB4cBzDHmt8gcoKTA6gCjXfA4QtIFil1vKoQ= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/ARM/heads/gcs-13)] aarch64: Do not force a stack frame for EH returns X-Act-Checkin: gcc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/vendors/ARM/heads/gcs-13 X-Git-Oldrev: e91da713875f40da8f80d494df44554db25d2a35 X-Git-Newrev: f6d55bdfef950282f2fc2a15dbda3dbfd324e876 Message-Id: <20240214153511.64020385E456@sourceware.org> Date: Wed, 14 Feb 2024 15:35:11 +0000 (GMT) List-Id: https://gcc.gnu.org/g:f6d55bdfef950282f2fc2a15dbda3dbfd324e876 commit f6d55bdfef950282f2fc2a15dbda3dbfd324e876 Author: Szabolcs Nagy Date: Tue May 9 11:07:05 2023 +0100 aarch64: Do not force a stack frame for EH returns EH returns no longer rely on clobbering the return address on the stack so forcing a stack frame is not necessary. This does not actually change the code gen for the unwinder since there are calls before the EH return. gcc/ChangeLog: * config/aarch64/aarch64.cc (aarch64_needs_frame_chain): Do not force frame chain for eh_return. (cherry picked from commit aa2ad77a9b3994fb679e5295d9570f6f8696540d) Diff: --- gcc/config/aarch64/aarch64.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gcc/config/aarch64/aarch64.cc b/gcc/config/aarch64/aarch64.cc index 0367d5dc2ef0..06aef1bb725c 100644 --- a/gcc/config/aarch64/aarch64.cc +++ b/gcc/config/aarch64/aarch64.cc @@ -8379,8 +8379,7 @@ aarch64_output_probe_sve_stack_clash (rtx base, rtx adjustment, static bool aarch64_needs_frame_chain (void) { - /* Force a frame chain for EH returns so the return address is at FP+8. */ - if (frame_pointer_needed || crtl->calls_eh_return) + if (frame_pointer_needed) return true; /* A leaf function cannot have calls or write LR. */