libstdc++: Fix freestanding build PR 92376)
authorJonathan Wakely <jwakely@redhat.com>
Fri, 17 Jan 2020 15:49:02 +0000 (15:49 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 17 Jan 2020 17:03:46 +0000 (17:03 +0000)
commit0ba6a850b597236832140bf57bf6083b6fab93f9
tree5f6a89250fe3f2047c80343a21ee9091b5778049
parent2c2e9f7a5d4b5db97f268ae247b3a82b1610a543
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.
libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/c++config
libstdc++-v3/libsupc++/new_opa.cc