[libc-commits] [PATCH] D124214: [libc][NOT FOR COMMIT] building LLVM-libc on 32 bit arm with gcc
Michael Jones via Phabricator via libc-commits
libc-commits at lists.llvm.org
Mon May 2 15:55:06 PDT 2022
michaelrj added a comment.
In D124214#3485184 <https://reviews.llvm.org/D124214#3485184>, @gchatelet wrote:
> I can only see a reference to `aligned_alloc` in `benchmarks/LibcMemoryBenchmark.h:113`. Is this the one you're referring to?
The build error was from libc++. Specifically, libc++ calls `posix_memalign` when `new` is called. I noticed this in the functions included with `#include <memory>` (in `utils/testutils/StreamWrapper.cpp`, and possibly other test utils), but it probably effects most of libc++. As far as I'm aware your libc memory functions don't call malloc and work fine under the LLVM embedded toolchain, but I understand the confusion. I'll try to be more clear with my phrasing in future.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D124214/new/
https://reviews.llvm.org/D124214
More information about the libc-commits
mailing list