From 44d491007190bc5154bea4a8d55eb09ab95dfb02 Mon Sep 17 00:00:00 2001 From: prabhukr Date: Mon, 6 Jan 2025 13:07:19 -0800 Subject: [PATCH] [libc] Keep framepointers for baremetal Frame pointers help unwind the stack and unwinding without frame pointer is complex and increaseis the code size. This code size increase is potentially larger than the savings achieved by disabling frame pointers. Retaining the original behavior of retaining frame pointers as the default behavior. --- libc/config/baremetal/config.json | 5 ----- 1 file changed, 5 deletions(-) diff --git a/libc/config/baremetal/config.json b/libc/config/baremetal/config.json index 85e80879d498e..08c581d1c6822 100644 --- a/libc/config/baremetal/config.json +++ b/libc/config/baremetal/config.json @@ -30,10 +30,5 @@ "LIBC_CONF_MATH_OPTIMIZATIONS": { "value": "(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES)" } - }, - "codegen": { - "LIBC_CONF_KEEP_FRAME_POINTER": { - "value": false - } } }