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: 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
# std-gnu23.m4
-# serial 3
+# serial 4
# Prefer GNU C23 to earlier versions.
#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; }
'