From 7997ede243f459020ec756905749dea47187e0a8 Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Mon, 13 Aug 2018 19:54:34 +0100 Subject: [PATCH] Add and to freestanding headers * include/Makefile.am: Install and for freestanding. * include/Makefile.in: Regenerate. * testsuite/17_intro/freestanding.cc: Check for and . From-SVN: r263514 --- libstdc++-v3/ChangeLog | 4 ++++ libstdc++-v3/include/Makefile.am | 10 +++++----- libstdc++-v3/include/Makefile.in | 10 +++++----- libstdc++-v3/testsuite/17_intro/freestanding.cc | 9 +++++++++ 4 files changed, 23 insertions(+), 10 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 424281ce949..2a785c38916 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,5 +1,9 @@ 2018-08-13 Jonathan Wakely + * include/Makefile.am: Install and for freestanding. + * include/Makefile.in: Regenerate. + * testsuite/17_intro/freestanding.cc: Check for and . + Revert 2018-08-10 Sebastian Huber diff --git a/libstdc++-v3/include/Makefile.am b/libstdc++-v3/include/Makefile.am index 70db3cb6260..271695806ff 100644 --- a/libstdc++-v3/include/Makefile.am +++ b/libstdc++-v3/include/Makefile.am @@ -1359,10 +1359,10 @@ install-data-local: install-freestanding-headers endif # This is a subset of the full install-headers rule. We only need , -# , , , , , , , -# , , , , , -# , , , and any files which they include (and -# which we provide). +# , , , , , , , +# , , , , , , +# , , , , and any files which they include +# (and which we provide). # , , , and are installed by # libsupc++, so only the others and the sub-includes are copied here. install-freestanding-headers: @@ -1375,7 +1375,7 @@ install-freestanding-headers: ${glibcxx_srcdir}/$(CPU_DEFINES_SRCDIR)/cpu_defines.h; do \ $(INSTALL_DATA) $${file} $(DESTDIR)${host_installdir}; done $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${std_builddir} - for file in limits type_traits atomic; do \ + for file in limits type_traits atomic bit version; do \ $(INSTALL_DATA) ${std_builddir}/$${file} $(DESTDIR)${gxx_include_dir}/${std_builddir}; done $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${c_base_builddir} for file in ciso646 cstddef cfloat climits cstdint cstdlib \ diff --git a/libstdc++-v3/include/Makefile.in b/libstdc++-v3/include/Makefile.in index 0e1cbe489d7..97f738a96a6 100644 --- a/libstdc++-v3/include/Makefile.in +++ b/libstdc++-v3/include/Makefile.in @@ -1781,10 +1781,10 @@ ${pch3_output}: ${pch3_source} ${pch2_output} @GLIBCXX_HOSTED_FALSE@install-data-local: install-freestanding-headers # This is a subset of the full install-headers rule. We only need , -# , , , , , , , -# , , , , , -# , , , and any files which they include (and -# which we provide). +# , , , , , , , +# , , , , , , +# , , , , and any files which they include +# (and which we provide). # , , , and are installed by # libsupc++, so only the others and the sub-includes are copied here. install-freestanding-headers: @@ -1797,7 +1797,7 @@ install-freestanding-headers: ${glibcxx_srcdir}/$(CPU_DEFINES_SRCDIR)/cpu_defines.h; do \ $(INSTALL_DATA) $${file} $(DESTDIR)${host_installdir}; done $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${std_builddir} - for file in limits type_traits atomic; do \ + for file in limits type_traits atomic bit version; do \ $(INSTALL_DATA) ${std_builddir}/$${file} $(DESTDIR)${gxx_include_dir}/${std_builddir}; done $(mkinstalldirs) $(DESTDIR)${gxx_include_dir}/${c_base_builddir} for file in ciso646 cstddef cfloat climits cstdint cstdlib \ diff --git a/libstdc++-v3/testsuite/17_intro/freestanding.cc b/libstdc++-v3/testsuite/17_intro/freestanding.cc index e5126ce5926..4c8498707c4 100644 --- a/libstdc++-v3/testsuite/17_intro/freestanding.cc +++ b/libstdc++-v3/testsuite/17_intro/freestanding.cc @@ -30,6 +30,10 @@ #include #include +// C++2a headers: +#include +#include + int main() { std::exception e; @@ -47,5 +51,10 @@ int main() std::initializer_list ilisti __attribute__((unused)); +#if __cplusplus > 201703L + static_assert( std::ispow2(256u) ); + static_assert( __cpp_lib_void_t >= 201411L ); +#endif + return 0; } -- 2.30.2