]> git.ipfire.org Git - thirdparty/gcc.git/commit
libstdc++: Declare malloc for freestanding
authorJonathan Wakely <jwakely@redhat.com>
Thu, 25 Mar 2021 18:24:37 +0000 (18:24 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 25 Mar 2021 18:25:40 +0000 (18:25 +0000)
commit15d649f79d6b6dc336f6a32eec242b652a262a82
tree72a77d00fd66568ba5346db5a863a98cd05ac2a8
parentc7fc73ee459045edabb99816658f14f32d23bf92
libstdc++: Declare malloc for freestanding

For a target with none of aligned_alloc, memalign etc. we defined our
own aligned_alloc using malloc, so we need a declaration of malloc. As
in libsupc++/new_op.cc we need to declare it ourselves for freestanding
environments.

libstdc++-v3/ChangeLog:

* libsupc++/new_opa.cc [!_GLIBCXX_HOSTED]: Declare malloc.
libstdc++-v3/libsupc++/new_opa.cc