apx-ndd-tls-1[ab].c: Add -std=gnu17

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>
This commit is contained in:
H.J. Lu 2024-11-21 19:08:03 +08:00
parent 0f7def8549
commit 42a8005c63
2 changed files with 2 additions and 2 deletions

View File

@ -1,7 +1,7 @@
/* 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

View File

@ -2,7 +2,7 @@
/* { 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"