On Fri, 30 Sept 2022 at 17:46, Arsen Arsenović via Libstdc++ <libstd...@gcc.gnu.org> wrote: > > Hi, > > This patchset: > - Implements the P1642 WG21 paper, with a fair few extensions, > - Fixes libstdc++' build system on systems --without-headers, > - Ports (a large chunk of) the libstdc++ testsuite to freestanding, and > - Changes the semantics of `int main' in freestanding (!!).
Thanks for all this work, Arsen! I'm testing these and will approve and commit all except [PATCH 5/10] which is outside libstdc++ and needs review. > > Thanks, > > Arsen Arsenović (7): > libstdc++: Filter out unconditional <stdio.h> default include > libstdc++: Mark headers that must be hosted as such [PR103626] > c-family: Implement new `int main' semantics in freestanding > libstdc++: Rework how freestanding install works [PR106953] > libstdc++: Make some tests work on freestanding [PR103626] > libstdc++: Re-enable std::hash<std::bitset> in freestanding [PR103626] > libstdc++: Disable hosted-only tests [PR103626] > > Jonathan Wakely (3): > libstdc++: Make _GLIBCXX_HOSTED respect -ffreestanding [PR103626] > libstdc++: Adjust precompiled headers for freestanding > libstdc++: Add effective-target 'hosted' for testsuite [PR103626] > > gcc/c-family/c-common.cc | 6 + > gcc/c-family/c-common.h | 10 + > gcc/c/c-decl.cc | 4 +- > gcc/c/c-objc-common.cc | 9 +- > gcc/cp/cp-tree.h | 12 +- > gcc/doc/invoke.texi | 20 +- > .../freestanding-main-implicitly-returns.C | 5 + > gcc/testsuite/g++.dg/no-builtin-main.C | 5 + > gcc/testsuite/gcc.dg/c11-noreturn-4.c | 2 +- > .../freestanding-main-implicitly-returns.c | 5 + > gcc/testsuite/gcc.dg/inline-10.c | 2 +- > gcc/testsuite/gcc.dg/no-builtin-main.c | 5 + > gcc/testsuite/gcc.dg/noreturn-4.c | 2 +-