[libc-commits] [libc] 24a4ad8 - [libc] Disable null checks on baremetal platforms (#163515)
via libc-commits
libc-commits at lists.llvm.org
Wed Oct 15 10:06:29 PDT 2025
Author: Petr Hosek
Date: 2025-10-15T10:06:24-07:00
New Revision: 24a4ad89416325aabea8cc1e443a13a893457ec2
URL: https://github.com/llvm/llvm-project/commit/24a4ad89416325aabea8cc1e443a13a893457ec2
DIFF: https://github.com/llvm/llvm-project/commit/24a4ad89416325aabea8cc1e443a13a893457ec2.diff
LOG: [libc] Disable null checks on baremetal platforms (#163515)
On baremetal platforms, 0 is often a valid address and the null checks
can break otherwise correct code.
Added:
Modified:
libc/config/baremetal/config.json
Removed:
################################################################################
diff --git a/libc/config/baremetal/config.json b/libc/config/baremetal/config.json
index f01e5084b9695..796b1d8ed1398 100644
--- a/libc/config/baremetal/config.json
+++ b/libc/config/baremetal/config.json
@@ -38,5 +38,10 @@
"LIBC_CONF_MATH_OPTIMIZATIONS": {
"value": "(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES)"
}
+ },
+ "general": {
+ "LIBC_ADD_NULL_CHECKS": {
+ "value": false
+ }
}
}
More information about the libc-commits
mailing list