aligned_alloc (C11) calls posix_memalign (posix) unconditionally: bug?
Thomas Preudhomme
thomas.preudhomme@foss.arm.com
Fri Sep 23 16:56:00 GMT 2016
Hi there,
GCC testcase g++.dg/cpp1z/aligned-new6.C fails to build on arm-none-eabi because
it pulls aligned_alloc which requires posix_memalign which is not defined for
arm-none-eabi targets.
Is this a case where some code is simply missing to make this work on bare-metal
targets or is this a bug? I thought posix could only be expected when targetting
a system with OS and therefore posix_memalign should not be called for
bare-metal targets.
Best regards,
Thomas
More information about the Newlib
mailing list