[Bug libstdc++/92376] [8/9 Regression] bootstrap fails with --disable-hosted-libstdcxx

cvs-commit at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Feb 26 14:33:00 GMT 2020


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
<redi@gcc.gnu.org>:

https://gcc.gnu.org/g:1b522a79133037f04c8ffcdfbe6c885ccb3ddcd3

commit r9-8284-g1b522a79133037f04c8ffcdfbe6c885ccb3ddcd3
Author: Jonathan Wakely <jwakely@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  <jwakely@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.


More information about the Gcc-bugs mailing list