[committed] libstdc++: Add new headers to <bits/stdc++.h> PCH

Jonathan Wakely jwakely@redhat.com
Thu Apr 14 10:48:53 GMT 2022


Tested powerpc64le-linux, pushed to trunk.

-- >8 --

libstdc++-v3/ChangeLog:

	* include/precompiled/stdc++.h: Include <stacktrace> and
	<stdatomic.h> for C++23.
---
 libstdc++-v3/include/precompiled/stdc++.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libstdc++-v3/include/precompiled/stdc++.h b/libstdc++-v3/include/precompiled/stdc++.h
index 6d6d2ad7c4c..5ee1244dc22 100644
--- a/libstdc++-v3/include/precompiled/stdc++.h
+++ b/libstdc++-v3/include/precompiled/stdc++.h
@@ -155,4 +155,8 @@
 #if __cplusplus > 202002L
 #include <expected>
 #include <spanstream>
+#if __has_include(<stacktrace>)
+# include <stacktrace>
+#endif
+#include <stdatomic.h>
 #endif
-- 
2.34.1



More information about the Libstdc++ mailing list