From 5b2d716e76809776596f36f06253fff76dce7217 Mon Sep 17 00:00:00 2001 From: Carlo Caione Date: Sat, 15 Jul 2023 14:46:59 +0200 Subject: [PATCH] arm64: Keep the frame pointer in leaf functions It helps with debugging and usually on ARM64 we don't care about a small increase in code size. Signed-off-by: Carlo Caione --- arch/arm64/core/CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/core/CMakeLists.txt b/arch/arm64/core/CMakeLists.txt index 25cd7f8df6b..56d6413034e 100644 --- a/arch/arm64/core/CMakeLists.txt +++ b/arch/arm64/core/CMakeLists.txt @@ -43,6 +43,7 @@ if ((CONFIG_MP_MAX_NUM_CPUS GREATER 1) OR (CONFIG_SMP)) endif () zephyr_cc_option_ifdef(CONFIG_USERSPACE -mno-outline-atomics) +zephyr_cc_option_ifdef(CONFIG_ARM64_ENABLE_FRAME_POINTER -mno-omit-leaf-frame-pointer) # GCC may generate ldp/stp instructions with the Advanced SIMD Qn registers for # consecutive 32-byte loads and stores. Saving and restoring the Advanced SIMD