[PATCH] libstdc++: Install precompiled <bits/expc++.h> header

Jonathan Wakely jwakely@redhat.com
Thu Sep 10 18:03:46 GMT 2020


This header was added to the source tree years ago, but doesn't actually
get precompiled or installed when building the library.

This change installs it alongside the other precompiled headers, and
also updates it to include the Filesystem TS and all LFTS headers (but
not the Networking TS ones).

libstdc++-v3/ChangeLog:

	* include/Makefile.am (host_headers): Add precompiled/expc++.h.
	* include/Makefile.in: Regenerate.
	* include/precompiled/expc++.h: Add Filesystem TS header and
	missing LFTS headers.

Do we want to do this, or should we just delete the header instead?


-------------- next part --------------
commit 6a7a99d4c0ef7c4eee706791cb5f3fc67439b6a6
Author: Jonathan Wakely <jwakely@redhat.com>
Date:   Thu Sep 10 19:00:57 2020

    libstdc++: Install precompiled <bits/expc++.h> header
    
    This header was added to the source tree years ago, but doesn't actually
    get precompiled or installed when building the library.
    
    This change installs it alongside the other precompiled headers, and
    also updates it to include the Filesystem TS and all LFTS headers (but
    not the Networking TS ones).
    
    libstdc++-v3/ChangeLog:
    
            * include/Makefile.am (host_headers): Add precompiled/expc++.h.
            * include/Makefile.in: Regenerate.
            * include/precompiled/expc++.h: Add Filesystem TS header and
            missing LFTS headers.

diff --git a/libstdc++-v3/include/Makefile.am b/libstdc++-v3/include/Makefile.am
index 1dff3862e35..768f30a7067 100644
--- a/libstdc++-v3/include/Makefile.am
+++ b/libstdc++-v3/include/Makefile.am
@@ -954,7 +954,8 @@ host_headers = \
 	${glibcxx_srcdir}/$(ERROR_CONSTANTS_SRCDIR)/error_constants.h \
 	${glibcxx_srcdir}/include/precompiled/stdc++.h \
 	${glibcxx_srcdir}/include/precompiled/stdtr1c++.h \
-	${glibcxx_srcdir}/include/precompiled/extc++.h
+	${glibcxx_srcdir}/include/precompiled/extc++.h \
+	${glibcxx_srcdir}/include/precompiled/expc++.h
 
 # Non-installed host_header files.
 COMPATIBILITY_H = config/abi/compatibility.h
diff --git a/libstdc++-v3/include/precompiled/expc++.h b/libstdc++-v3/include/precompiled/expc++.h
index 28b6fe9420b..3805a6f9299 100644
--- a/libstdc++-v3/include/precompiled/expc++.h
+++ b/libstdc++-v3/include/precompiled/expc++.h
@@ -26,13 +26,16 @@
  *  This is an implementation file for a precompiled header.
  */
 
-#if __cplusplus < 201103L
-#include <bits/extc++.h>
+#include <bits/stdc++.h>
+
+#if __cplusplus >= 201103L
+#include <experimental/filesystem>
 #endif
 
-#if __cplusplus > 201103L
+#if __cplusplus >= 201402L
 #include <experimental/algorithm>
 #include <experimental/any>
+#include <experimental/array>
 #include <experimental/chrono>
 #include <experimental/deque>
 #include <experimental/filesystem>
@@ -42,10 +45,15 @@
 #include <experimental/list>
 #include <experimental/map>
 #include <experimental/memory>
+#include <experimental/memory_resource>
 #include <experimental/numeric>
 #include <experimental/optional>
+#include <experimental/propagate_const>
+#include <experimental/random>
 #include <experimental/ratio>
+#include <experimental/regex>
 #include <experimental/set>
+#include <experimental/source_location>
 #include <experimental/string>
 #include <experimental/string_view>
 #include <experimental/system_error>
@@ -53,5 +61,6 @@
 #include <experimental/type_traits>
 #include <experimental/unordered_map>
 #include <experimental/unordered_set>
+#include <experimental/utility>
 #include <experimental/vector>
 #endif


More information about the Libstdc++ mailing list