[clang] [clang] document that by default FP turned off for ARM baremetal (PR #122881)

Ties Stuij via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 14 03:44:43 PST 2025


https://github.com/stuij updated https://github.com/llvm/llvm-project/pull/122881

>From 7865fd2bf4e0bb9c35b3d14f362732c994914568 Mon Sep 17 00:00:00 2001
From: Ties Stuij <ties.stuij at arm.com>
Date: Tue, 14 Jan 2025 10:01:33 +0000
Subject: [PATCH 1/2] [clang] document that by default FP turned off for ARM
 baremetal

As per #117140.
---
 clang/docs/ReleaseNotes.rst | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index 794943b24a003c..663e7561f715c0 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -1076,6 +1076,8 @@ Arm and AArch64 Support
   in leaf functions after enabling ``-fno-omit-frame-pointer``, you can do so by adding
   the ``-momit-leaf-frame-pointer`` option.
 
+- For ARM baremetal targets, the frame pointer (FP) is now turned off by default.
+
 - Support has been added for the following processors (-mcpu identifiers in parenthesis):
 
   For AArch64:

>From 69669604d4b37193ef8487af13043cd9d78484e3 Mon Sep 17 00:00:00 2001
From: Ties Stuij <ties.stuij at arm.com>
Date: Tue, 14 Jan 2025 11:42:41 +0000
Subject: [PATCH 2/2] Address review comment by moving text up and expanding on
 it

---
 clang/docs/ReleaseNotes.rst | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index 663e7561f715c0..27193ca9349a6e 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -1071,13 +1071,15 @@ Arm and AArch64 Support
 - Implementation of SVE2.1 and SME2.1 in accordance with the Arm C Language
   Extensions (ACLE) is now available.
 
+- For ARM baremetal targets, the frame pointer (FP) is now turned off by
+  default. To turn on frame pointers for Arm baremetal targets, use
+  the ``-fno-omit-frame-pointer`` command line option.
+
 - In the ARM Target, the frame pointer (FP) of a leaf function can be retained
   by using the ``-fno-omit-frame-pointer`` option. If you want to eliminate the FP
   in leaf functions after enabling ``-fno-omit-frame-pointer``, you can do so by adding
   the ``-momit-leaf-frame-pointer`` option.
 
-- For ARM baremetal targets, the frame pointer (FP) is now turned off by default.
-
 - Support has been added for the following processors (-mcpu identifiers in parenthesis):
 
   For AArch64:



More information about the cfe-commits mailing list