[PATCH] libstdc++, v2: Bump __cpp_lib_clmul
Jonathan Wakely
jwakely.gcc@gmail.com
Sat Nov 21 13:00:38 GMT 2026
On Sat, 21 Nov 2026, 12:10 Jakub Jelinek, <jakub@redhat.com> wrote:
> Hi!
>
> On Sat, Nov 21, 2026 at 12:46:48PM +0100, Tomasz Kaminski wrote:
> > > -#if __glibcxx_clmul >= 202610L // C++29
> > > +#if __glibcxx_clmul >= 202611L // C++29
> > >
> > I preffer using #ifdef __glibcxx_clmul for checks that are first
> > introduction of the features,
> > and >= number for later extensions.
>
> Works for me.
>
OK, thanks
> 2026-11-21 Jakub Jelinek <jakub@redhat.com>
>
> * include/bits/version.def (clmul): Bump FTM to 202611.
> * include/bits/version.h: Regenerate.
> * include/std/numeric: Use #ifdef __glibcxx_clmul rather than
> #if __glibcxx_clmul > 202610L.
> * testsuite/26_numerics/clmul/1.cc: Expect __cpp_lib_clmul 202611.
>
> --- a/libstdc++-v3/include/bits/version.def 2026-11-13
> 14:52:02.789825353 +0100
> +++ b/libstdc++-v3/include/bits/version.def 2026-11-20
> 12:56:11.909677894 +0100
> @@ -2712,7 +2712,7 @@ ftms = {
> ftms = {
> name = clmul;
> values = {
> - v = 202610;
> + v = 202611;
> cxxmin = 29;
> };
> };
> --- a/libstdc++-v3/include/bits/version.h 2026-11-13
> 14:52:02.789825353 +0100
> +++ b/libstdc++-v3/include/bits/version.h 2026-11-20
> 12:56:18.573405936 +0100
> @@ -2993,9 +2993,9 @@
>
> #if !defined(__cpp_lib_clmul)
> # if (__cplusplus > 202603L)
> -# define __glibcxx_clmul 202610L
> +# define __glibcxx_clmul 202611L
> # if defined(__glibcxx_want_all) || defined(__glibcxx_want_clmul)
> -# define __cpp_lib_clmul 202610L
> +# define __cpp_lib_clmul 202611L
> # endif
> # endif
> #endif /* !defined(__cpp_lib_clmul) */
> --- a/libstdc++-v3/include/std/numeric 2026-11-14 10:21:04.144087557 +0100
> +++ b/libstdc++-v3/include/std/numeric 2026-11-21 13:07:53.251114880 +0100
> @@ -766,7 +766,7 @@ namespace ranges
> } // namespace ranges
> #endif // __glibcxx_ranges_iota
>
> -#if __glibcxx_clmul >= 202610L // C++29
> +#ifdef __glibcxx_clmul // C++29
> template<typename _Tp>
> class wide_result {
> public:
> --- a/libstdc++-v3/testsuite/26_numerics/clmul/1.cc 2026-11-09
> 09:56:28.916585353 +0100
> +++ b/libstdc++-v3/testsuite/26_numerics/clmul/1.cc 2026-11-20
> 12:57:57.384306519 +0100
> @@ -4,7 +4,7 @@
>
> #ifndef __cpp_lib_clmul
> # error "Feature-test macro for clmul missing in <numeric>"
> -#elif __cpp_lib_clmul != 202610L
> +#elif __cpp_lib_clmul != 202611L
> # error "Feature-test macro for clmul has wrong value in <numeric>"
> #endif
>
>
>
> Jakub
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://gcc.gnu.org/pipermail/libstdc++/attachments/20261121/7022487d/attachment-0001.htm>
More information about the Libstdc++
mailing list