Since GCC 15 defaults to -std=gnu23, add -std=gnu17 to apx-ndd-tls-1[ab].c
to avoid:
gcc.target/i386/apx-ndd-tls-1a.c: In function âkâ:
gcc.target/i386/apx-ndd-tls-1a.c:29:7: error: too many arguments to function âlâ
gcc.target/i386/apx-ndd-tls-1a.c:25:5: note: declared here
* gcc.target/i386/apx-ndd-tls-1a.c: -std=gnu17.
* gcc.target/i386/apx-ndd-tls-1b.c: Likewise.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
/* PR target/113733 */
/* { dg-do assemble { target { apxf && { ! ia32 } } } } */
/* { dg-require-effective-target tls } */
-/* { dg-options "-mapxf -O3 -w" } */
+/* { dg-options "-std=gnu17 -mapxf -O3 -w" } */
extern __thread int a, j;
enum b
/* { dg-do assemble { target { apxf && { ! ia32 } } } } */
/* { dg-require-effective-target tls } */
/* { dg-require-effective-target code_6_gottpoff_reloc } */
-/* { dg-options "-save-temps -mapxf -O3 -w" } */
+/* { dg-options "-save-temps -std=gnu17 -mapxf -O3 -w" } */
#include "apx-ndd-tls-1a.c"