[PATCH] conform: don't expect macros for new C23 keywords
Adhemerval Zanella Netto
adhemerval.zanella@linaro.org
Mon Nov 23 13:00:56 GMT 2026
LGTM, thanks.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
On 21/10/26 08:12, Andreas Schwab wrote:
>
> ---
> conform/data/assert.h-data | 2 +-
> conform/data/stdalign.h-data | 6 +++++-
> conform/data/stdbool.h-data | 2 ++
> conform/data/threads.h-data | 2 ++
> 4 files changed, 10 insertions(+), 2 deletions(-)
>
> diff --git a/conform/data/assert.h-data b/conform/data/assert.h-data
> index 31c5d7c8b2..883736e039 100644
> --- a/conform/data/assert.h-data
> +++ b/conform/data/assert.h-data
> @@ -1,6 +1,6 @@
> macro assert
>
> -#if defined ISO11 || defined ISO23 || defined XOPEN2K24 || defined POSIX2024
> +#if defined ISO11 || defined XOPEN2K24 || defined POSIX2024
> macro static_assert
> #endif
>
> diff --git a/conform/data/stdalign.h-data b/conform/data/stdalign.h-data
> index d24c080522..34aa19c023 100644
> --- a/conform/data/stdalign.h-data
> +++ b/conform/data/stdalign.h-data
> @@ -1,6 +1,10 @@
> -#if defined ISO11 || defined ISO23 || defined XOPEN2K24 || defined POSIX2024
> +#if defined ISO11 || defined XOPEN2K24 || defined POSIX2024
> macro alignas
> macro alignof
> macro-int-constant __alignas_is_defined {int} == 1
> macro-int-constant __alignof_is_defined {int} == 1
> #endif
> +#if defined ISO23
> +// Dummy expectation needed for check-header-lists
> +allow __*
> +#endif
> diff --git a/conform/data/stdbool.h-data b/conform/data/stdbool.h-data
> index 2a5a08fc60..d0fa7c705b 100644
> --- a/conform/data/stdbool.h-data
> +++ b/conform/data/stdbool.h-data
> @@ -1,7 +1,9 @@
> #if !defined ISO && !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
> +#if !defined ISO23
> macro bool
> macro-int-constant true {int} == 1
> macro-int-constant false {int} == 0
> +#endif
> macro-int-constant __bool_true_false_are_defined {int} == 1
>
> #if !defined ISO && !defined ISO99 && !defined ISO11 && !defined ISO23
> diff --git a/conform/data/threads.h-data b/conform/data/threads.h-data
> index 4aa4f4668f..979b7e9527 100644
> --- a/conform/data/threads.h-data
> +++ b/conform/data/threads.h-data
> @@ -1,7 +1,9 @@
> #if defined ISO11 || defined ISO23 || defined XOPEN2K24 || defined POSIX2024
>
> macro ONCE_FLAG_INIT
> +#if !defined ISO23
> macro thread_local
> +#endif
> macro-int-constant TSS_DTOR_ITERATIONS
>
> constant thrd_success
More information about the Libc-alpha
mailing list