Skip to content

Commit 24a4ad8

Browse files
authored
[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.
1 parent 67790d3 commit 24a4ad8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libc/config/baremetal/config.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,10 @@
3838
"LIBC_CONF_MATH_OPTIMIZATIONS": {
3939
"value": "(LIBC_MATH_SKIP_ACCURATE_PASS | LIBC_MATH_SMALL_TABLES)"
4040
}
41+
},
42+
"general": {
43+
"LIBC_ADD_NULL_CHECKS": {
44+
"value": false
45+
}
4146
}
4247
}

0 commit comments

Comments
 (0)