[libc-commits] [libc] 3b19e78 - [libc] Keep framepointers for baremetal (#121836)
via libc-commits
libc-commits at lists.llvm.org
Tue Jan 7 13:22:18 PST 2025
Author: Prabhuk
Date: 2025-01-07T13:22:14-08:00
New Revision: 3b19e787fc5da27dfcc9ac6552b06a763f12ea03
URL: https://github.com/llvm/llvm-project/commit/3b19e787fc5da27dfcc9ac6552b06a763f12ea03
DIFF: https://github.com/llvm/llvm-project/commit/3b19e787fc5da27dfcc9ac6552b06a763f12ea03.diff
LOG: [libc] Keep framepointers for baremetal (#121836)
Keep framepointers enabled by default for the default baremetal libc
builds.
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.
Added:
Modified:
libc/config/baremetal/config.json
Removed:
################################################################################
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