On Mon, Jan 19, 2026 at 11:13 AM Alexandre Oliva <[email protected]> wrote:
>
>
> fp8-helpers-neon.c uses _Static_assert, but the compiler warns that
> this feature is not present in C90. Annotate it as an __extension__
> to silence the warning, preserving the intent of the test.
>
> Regstrapped on x86_64-linux-gnu. Also tested with aarch64-elf and
> arm-eabi with gcc-15. Ok to install?
Ok.
>
>
> for gcc/testsuite/ChangeLog
>
> * gcc.target/aarch64/acle/fp8-helpers-neon.c: Silence
> warnings about _Static_assert.
> ---
> .../gcc.target/aarch64/acle/fp8-helpers-neon.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gcc/testsuite/gcc.target/aarch64/acle/fp8-helpers-neon.c
> b/gcc/testsuite/gcc.target/aarch64/acle/fp8-helpers-neon.c
> index ade99557a2915..6eddb110ce2b6 100644
> --- a/gcc/testsuite/gcc.target/aarch64/acle/fp8-helpers-neon.c
> +++ b/gcc/testsuite/gcc.target/aarch64/acle/fp8-helpers-neon.c
> @@ -10,7 +10,7 @@ test_prepare_fpmr_sysreg ()
> {
>
> #define _S_EQ(expr, expected)
> \
> - _Static_assert (expr == expected, #expr " == " #expected)
> + __extension__ _Static_assert (expr == expected, #expr " == " #expected)
>
> _S_EQ (__arm_fpm_init (), 0);
>
>
> --
> Alexandre Oliva, happy hacker https://blog.lx.oliva.nom.br/
> Free Software Activist FSFLA co-founder GNU Toolchain Engineer
> More tolerance and less prejudice are key for inclusion and diversity.
> Excluding neuro-others for not behaving ""normal"" is *not* inclusive!