public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Jonathan Wakely <redi@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r13-3036] libstdc++: Adjust precompiled headers for freestanding Date: Mon, 3 Oct 2022 14:45:41 +0000 (GMT) [thread overview] Message-ID: <20221003144541.5BB2C3854143@sourceware.org> (raw) https://gcc.gnu.org/g:06b3c0fad1b5fe7b72e666c336595c6324933960 commit r13-3036-g06b3c0fad1b5fe7b72e666c336595c6324933960 Author: Jonathan Wakely <jwakely@redhat.com> Date: Tue Sep 20 13:30:43 2022 +0100 libstdc++: Adjust precompiled headers for freestanding Co-authored-by: Arsen Arsenović <arsen@aarsen.me> libstdc++-v3/ChangeLog: * include/precompiled/extc++.h [!_GLIBCXX_HOSTED]: Do not include headers that aren't valid for freestanding. * include/precompiled/stdc++.h [!_GLIBCXX_HOSTED]: Likewise. Diff: --- libstdc++-v3/include/precompiled/extc++.h | 17 ++++--- libstdc++-v3/include/precompiled/stdc++.h | 81 +++++++++++++++++++++++++++++-- 2 files changed, 86 insertions(+), 12 deletions(-) diff --git a/libstdc++-v3/include/precompiled/extc++.h b/libstdc++-v3/include/precompiled/extc++.h index 7fe70738042..b094701aafb 100644 --- a/libstdc++-v3/include/precompiled/extc++.h +++ b/libstdc++-v3/include/precompiled/extc++.h @@ -32,14 +32,21 @@ #include <bits/stdc++.h> #endif -#include <ext/algorithm> #if __cplusplus >= 201103L # include <ext/aligned_buffer.h> #endif #include <ext/alloc_traits.h> #include <ext/atomicity.h> -#include <ext/bitmap_allocator.h> #include <ext/cast.h> +#include <ext/iterator> +#include <ext/numeric_traits.h> +#include <ext/pointer.h> +#include <ext/typelist.h> +#include <ext/type_traits.h> + +#if _GLIBCXX_HOSTED +#include <ext/algorithm> +#include <ext/bitmap_allocator.h> #if __cplusplus >= 201103L # include <ext/cmath> #endif @@ -47,15 +54,12 @@ #include <ext/debug_allocator.h> #include <ext/extptr_allocator.h> #include <ext/functional> -#include <ext/iterator> #include <ext/malloc_allocator.h> #include <ext/memory> #include <ext/mt_allocator.h> #include <ext/new_allocator.h> #include <ext/numeric> -#include <ext/numeric_traits.h> #include <ext/pod_char_traits.h> -#include <ext/pointer.h> #include <ext/pool_allocator.h> #if __cplusplus >= 201103L # include <ext/random> @@ -66,8 +70,6 @@ #include <ext/stdio_filebuf.h> #include <ext/stdio_sync_filebuf.h> #include <ext/throw_allocator.h> -#include <ext/typelist.h> -#include <ext/type_traits.h> #include <ext/vstring.h> #include <ext/pb_ds/assoc_container.hpp> #include <ext/pb_ds/priority_queue.hpp> @@ -81,3 +83,4 @@ #include <ext/codecvt_specializations.h> #include <ext/enc_filebuf.h> #endif +#endif // HOSTED diff --git a/libstdc++-v3/include/precompiled/stdc++.h b/libstdc++-v3/include/precompiled/stdc++.h index 5ee1244dc22..bfbb1654b88 100644 --- a/libstdc++-v3/include/precompiled/stdc++.h +++ b/libstdc++-v3/include/precompiled/stdc++.h @@ -28,6 +28,80 @@ // 17.4.1.2 Headers +// C +#ifndef _GLIBCXX_NO_ASSERT +#include <cassert> +#endif +#include <cctype> +#include <cfloat> +#include <ciso646> +#include <climits> +#include <csetjmp> +#include <cstdarg> +#include <cstddef> +#include <cstdlib> + +#if __cplusplus >= 201103L +#include <cstdint> +#endif + +// C++ +// #include <bitset> +// #include <complex> +#include <algorithm> +#include <bitset> +#include <functional> +#include <iterator> +#include <limits> +#include <memory> +#include <new> +#include <numeric> +#include <typeinfo> +#include <utility> + +#if __cplusplus >= 201103L +#include <array> +#include <atomic> +#include <initializer_list> +#include <ratio> +#include <scoped_allocator> +#include <tuple> +#include <typeindex> +#include <type_traits> +#endif + +#if __cplusplus >= 201402L +#endif + +#if __cplusplus >= 201703L +#include <any> +#include <charconv> +// #include <execution> +#include <optional> +#include <variant> +#endif + +#if __cplusplus >= 202002L +#include <bit> +#include <compare> +#include <concepts> +#include <numbers> +#include <ranges> +#include <span> +#include <source_location> +#include <version> +#endif + +#if __cplusplus > 202002L +#include <expected> +#include <stdatomic.h> +#if __cpp_impl_coroutine +# include <coroutine> +#endif +#endif + + +#if _GLIBCXX_HOSTED // C #ifndef _GLIBCXX_NO_ASSERT #include <cassert> @@ -62,8 +136,6 @@ #endif // C++ -#include <algorithm> -#include <bitset> #include <complex> #include <deque> #include <exception> @@ -138,9 +210,6 @@ #include <bit> #include <compare> #include <concepts> -#if __cpp_impl_coroutine -# include <coroutine> -#endif #include <latch> #include <numbers> #include <ranges> @@ -160,3 +229,5 @@ #endif #include <stdatomic.h> #endif + +#endif // HOSTED
reply other threads:[~2022-10-03 14:45 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20221003144541.5BB2C3854143@sourceware.org \ --to=redi@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ --cc=libstdc++-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).