From: Jason Merrill Date: Thu, 14 Nov 2024 04:39:53 +0000 (-0500) Subject: libstdc++: stdc++.h and X-Git-Tag: basepoints/gcc-16~4269 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=985bc95bd64033cb9b21d6537cb413beb8fe4939;p=thirdparty%2Fgcc.git libstdc++: stdc++.h and r13-3036 moved #include into the new freestanding section, but also moved it from a C++20 section to a C++23 section. This patch moves it back. Incidentally, I'm curious why a few headers were removed from the hosted section (including ), but most were left in place, so we have redundant includes of most hosted headers. libstdc++-v3/ChangeLog: * include/precompiled/stdc++.h: is C++20. --- diff --git a/libstdc++-v3/include/precompiled/stdc++.h b/libstdc++-v3/include/precompiled/stdc++.h index 89917106bac2..15f7f3fe34a9 100644 --- a/libstdc++-v3/include/precompiled/stdc++.h +++ b/libstdc++-v3/include/precompiled/stdc++.h @@ -92,14 +92,14 @@ #include #include #include +#if __cpp_impl_coroutine +# include +#endif #endif #if __cplusplus > 202002L #include #include -#if __cpp_impl_coroutine -# include -#endif #endif #if _GLIBCXX_HOSTED