]> Savannah Git Hosting - gnulib.git/commitdiff
std-gnu23: don’t test stdbit.h
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Nov 2024 20:07:34 +0000 (12:07 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 16 Nov 2024 20:18:30 +0000 (12:18 -0800)
Although freestanding C23 compilers must support <stdbit.h>,
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.

ChangeLog
m4/std-gnu23.m4

index c33d652b079d4d87d47bdf01f929214df4c8d784..131c612ac0caca33d70901ce023a2e0323d20cad 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2024-11-16  Paul Eggert  <eggert@cs.ucla.edu>
+
+       std-gnu23: don’t test stdbit.h
+       Although freestanding C23 compilers must support <stdbit.h>,
+       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  <eggert@cs.ucla.edu>
 
        std-gnu23: pacify GCC 15
index 5b088d2966bdee0c2f99844f445eedd20f9f3070..db48ae52547a68eb9b77f7724de8fc09d4aec9b6 100644 (file)
@@ -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 <stddef.h>
 constexpr nullptr_t null_pointer = nullptr;
 
-#include <stdbit.h>
-static_assert (__STDC_ENDIAN_LITTLE__ != __STDC_ENDIAN_BIG__);
-
 static typeof (1 + 1L) two () { return 2; }
 static long int three () { return 3; }
 '