]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Set __cpp_lib_submdspan to 202411.
authorLuc Grosheintz <luc.grosheintz@gmail.com>
Mon, 8 Dec 2025 20:23:46 +0000 (21:23 +0100)
committerTomasz Kamiński <tkaminsk@redhat.com>
Tue, 9 Dec 2025 16:38:56 +0000 (17:38 +0100)
The submdspan feature is complete and this commit sets the feature
testing macros accordingly. Also makes the feature testing macro
submdspan depend on constant_wrapper.

Also changes the value of the internal feature testing macro for padded
layouts to 202403.

libstdc++-v3/ChangeLog:

* include/bits/version.def (padded_layouts): Set to 202403.
(submdspan): Set to 202411 add dependency.
* include/bits/version.h: Regenerate.

Reviewed-by: Tomasz Kamiński <tkaminsk@redhat.com>
Signed-off-by: Luc Grosheintz <luc.grosheintz@gmail.com>
libstdc++-v3/include/bits/version.def
libstdc++-v3/include/bits/version.h

index bbc8d383938fa6a560351e6715ee1f946c48855d..5c010a4f770ebb88a48d90ca9adaf32c51af3b01 100644 (file)
@@ -1094,17 +1094,17 @@ ftms = {
   name = padded_layouts;
   no_stdname = true; // internal
   values = {
-    v = 1;
+    v = 202403;
     cxxmin = 26;
   };
 };
 
 ftms = {
   name = submdspan;
-  no_stdname = true; // TODO: change once complete
   values = {
-    v = 1;
+    v = 202411;
     cxxmin = 26;
+    extra_cond = "__glibcxx_constant_wrapper >= 202506L";
   };
 };
 
index 7ee9ae84215e6e51d84339dc43858f4a0b8fd191..219f4bb434141829bf38290f4c0b3b442f37048c 100644 (file)
 
 #if !defined(__cpp_lib_padded_layouts)
 # if (__cplusplus >  202302L)
-#  define __glibcxx_padded_layouts 1L
+#  define __glibcxx_padded_layouts 202403L
 #  if defined(__glibcxx_want_all) || defined(__glibcxx_want_padded_layouts)
 #  endif
 # endif
 #undef __glibcxx_want_padded_layouts
 
 #if !defined(__cpp_lib_submdspan)
-# if (__cplusplus >  202302L)
-#  define __glibcxx_submdspan 1L
+# if (__cplusplus >  202302L) && (__glibcxx_constant_wrapper >= 202506L)
+#  define __glibcxx_submdspan 202411L
 #  if defined(__glibcxx_want_all) || defined(__glibcxx_want_submdspan)
+#   define __cpp_lib_submdspan 202411L
 #  endif
 # endif
 #endif /* !defined(__cpp_lib_submdspan) */