[libc-commits] [libc] [libc] Keep framepointers for baremetal (PR #121836)
via libc-commits
libc-commits at lists.llvm.org
Tue Jan 7 12:13:49 PST 2025
https://github.com/Prabhuk updated https://github.com/llvm/llvm-project/pull/121836
>From 44d491007190bc5154bea4a8d55eb09ab95dfb02 Mon Sep 17 00:00:00 2001
From: prabhukr <prabhukr at google.com>
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 85e80879d498e6..08c581d1c68226 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
- }
}
}
More information about the libc-commits
mailing list