From: Paul Eggert Date: Sat, 16 Nov 2024 20:07:34 +0000 (-0800) Subject: std-gnu23: don’t test stdbit.h X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=45385fc04466776af92873dec2b5de29cf65460d;p=gnulib.git std-gnu23: don’t test stdbit.h Although freestanding C23 compilers must support , some current sort-of-C23 environments lack it. We still want to use options like -std=gnu23 on such platforms. Problem reported by Bruno Haible in: https://lists.gnu.org/r/bug-gnulib/2024-11/msg00141.html * m4/std-gnu23.m4 (_AC_C_C23_TEST_GLOBALS): Do not test stdbit.h. --- diff --git a/ChangeLog b/ChangeLog index c33d652b07..131c612ac0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2024-11-16 Paul Eggert + + std-gnu23: don’t test stdbit.h + Although freestanding C23 compilers must support , + some current sort-of-C23 environments lack it. + We still want to use options like -std=gnu23 on such platforms. + Problem reported by Bruno Haible in: + https://lists.gnu.org/r/bug-gnulib/2024-11/msg00141.html + * m4/std-gnu23.m4 (_AC_C_C23_TEST_GLOBALS): Do not test stdbit.h. + 2024-11-16 Paul Eggert std-gnu23: pacify GCC 15 diff --git a/m4/std-gnu23.m4 b/m4/std-gnu23.m4 index 5b088d2966..db48ae5254 100644 --- a/m4/std-gnu23.m4 +++ b/m4/std-gnu23.m4 @@ -1,5 +1,5 @@ # std-gnu23.m4 -# serial 3 +# serial 4 # Prefer GNU C23 to earlier versions. @@ -463,9 +463,6 @@ static_assert (0 < -uione); #include constexpr nullptr_t null_pointer = nullptr; -#include -static_assert (__STDC_ENDIAN_LITTLE__ != __STDC_ENDIAN_BIG__); - static typeof (1 + 1L) two () { return 2; } static long int three () { return 3; } '