zephyr/lib/libc/common
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
..
source libc/common: Place malloc data structures in libc partition 2023-10-10 23:39:40 +03:00
CMakeLists.txt libc: Add GCC fno-builtin-malloc flag to common stdlib compilation 2023-11-13 10:21:41 +01:00
Kconfig libc/common: Place malloc data structures in libc partition 2023-10-10 23:39:40 +03:00