https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92376
--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jonathan Wakely <r...@gcc.gnu.org>: https://gcc.gnu.org/g:0ba6a850b597236832140bf57bf6083b6fab93f9 commit r10-6049-g0ba6a850b597236832140bf57bf6083b6fab93f9 Author: Jonathan Wakely <jwak...@redhat.com> Date: Fri Jan 17 15:49:02 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. 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.