zephyr/lib/libc
Grant Ramsay 679d82c484 libc: Add GCC fno-builtin-malloc flag to common stdlib compilation
This prevents the compiler from optimizing calloc into an
infinite recursive call.

For example a call to malloc + memset zero at GCC -O2 will be
replaced by a call to calloc. This causes infinite recursion
if the function being implemented *is* calloc.

fno-builtin-malloc forces the compiler to avoid this optimization.

Signed-off-by: Grant Ramsay <gramsay@enphaseenergy.com>
2023-11-13 10:21:41 +01:00
..
arcmwdt syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
armstdc lib: libc: armstdc: add missing retarget of fputc to _stdout_hook 2023-10-04 11:02:37 +02:00
common libc: Add GCC fno-builtin-malloc flag to common stdlib compilation 2023-11-13 10:21:41 +01:00
minimal syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
newlib syscall: rename Z_OOPS -> K_OOPS 2023-11-03 11:46:52 +01:00
picolibc libc/picolibc: Don't force TLS when using picolibc module 2023-11-07 09:42:19 +01:00
CMakeLists.txt lib: syscalls: use zephyr_syscall_header 2023-06-17 07:57:45 -04:00
Kconfig libc/picolibc: Don't force TLS when using picolibc module 2023-11-07 09:42:19 +01:00