]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Add new headers to <bits/stdc++.h> for PCH
authorJonathan Wakely <jwakely@redhat.com>
Mon, 7 Apr 2025 10:15:03 +0000 (11:15 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 7 Apr 2025 15:08:24 +0000 (16:08 +0100)
This adds the new C23 headers to the PCH, and also removes the
__has_include check for <stacktrace> because we provide that
unconditionally now.

libstdc++-v3/ChangeLog:

* include/precompiled/stdc++.h: Include <stdbit.h> and
<stdckdint.h>. Include <stacktrace> unconditionally.

libstdc++-v3/include/precompiled/stdc++.h

index 1ffde3ed450c53b69c7a8a17cc2ff23d35fac83a..f4b312d9e470e87c7bac0373092762682c8ec184 100644 (file)
 #include <generator>
 #include <print>
 #include <spanstream>
-#if __has_include(<stacktrace>)
-# include <stacktrace>
-#endif
+#include <stacktrace>
 #include <stdatomic.h>
 #include <stdfloat>
 #endif
 
 #if __cplusplus > 202302L
 #include <text_encoding>
+#include <stdbit.h>
+#include <stdckdint.h>
 #endif
 
 #endif // HOSTED