https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92376
--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-9 branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:1b522a79133037f04c8ffcdfbe6c885ccb3ddcd3 commit r9-8284-g1b522a79133037f04c8ffcdfbe6c885ccb3ddcd3 Author: Jonathan Wakely <jwak...@redhat.com> Date: Wed Feb 26 14:20:55 2020 +0000 libstdc++: Fix freestanding build (PR 92376) In a freestanding library we don't install the <pstl/pstl_config.h> header, so don't try to include it unless it exists. 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 * include/bits/c++config: Only do PSTL config when the header is present, to fix freestanding. * libsupc++/new_opa.cc [!_GLIBCXX_HOSTED]: Declare allocation functions if they were detected by configure.