https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92376
--- Comment #7 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-8 branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:499ea2e31fba0ff6e4492f0a62e3ffb2bdba465e commit r8-10087-g499ea2e31fba0ff6e4492f0a62e3ffb2bdba465e Author: Jonathan Wakely <jwak...@redhat.com> Date: Wed Feb 26 14:20:55 2020 +0000 libstdc++: Fix freestanding build (PR 92376) Explicitly declare aligned alloc functions for freestanding, because <cstdlib> doesn't declare them. Backport from mainline 2020-01-17 Jonathan Wakely <jwak...@redhat.com> PR libstdc++/92376 * libsupc++/new_opa.cc [!_GLIBCXX_HOSTED]: Declare allocation functions if they were detected by configure.