]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: _Static_assert is not present in C90
authorAlexandre Oliva <oliva@adacore.com>
Wed, 21 Jan 2026 03:29:48 +0000 (00:29 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Wed, 21 Jan 2026 03:29:48 +0000 (00:29 -0300)
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.

for  gcc/testsuite/ChangeLog

* gcc.target/aarch64/acle/fp8-helpers-neon.c: Silence
warnings about _Static_assert.

gcc/testsuite/gcc.target/aarch64/acle/fp8-helpers-neon.c

index ade99557a29154b8c72ddc26ed8b52f3378e11dd..6eddb110ce2b69f111b25756b58dc66e44221a84 100644 (file)
@@ -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);