This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

aligned_alloc (C11) calls posix_memalign (posix) unconditionally: bug?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]