arm: testsuite: fix some legacy C tests

These tests all lack ISO-C style function definitions.  Some
deliberatly so.  Rather than try to adjust the code and risk changing
the nature of the test, add -std=c17 to the test options.

gcc/testsuite/ChangeLog:

	* gcc.target/arm/20031108-1.c: Add -std=c17.
	* gcc.target/arm/fp16-unprototyped-1.c: Likewise.
	* gcc.target/arm/fp16-unprototyped-2.c: Likewise.
	* gcc.target/arm/neon-thumb2-move.c: Likewise.
	* gcc.target/arm/pr67756.c: Likewise.
	* gcc.target/arm/pr81863.c: Likewise.
This commit is contained in:
Richard Earnshaw 2024-12-06 17:05:27 +00:00
parent 7883341999
commit 92c7a190d7
6 changed files with 6 additions and 6 deletions

View file

@ -1,7 +1,7 @@
/* PR optimization/10467 */
/* { dg-do compile } */
/* { dg-skip-if "" { ! { arm_thumb1_ok || arm_thumb2_ok } } } */
/* { dg-options "-O2 -mthumb" } */
/* { dg-options "-O2 -mthumb -std=c17" } */
typedef enum {Ident_1} Enumeration;

View file

@ -2,7 +2,7 @@
function in another compilation unit. */
/* { dg-do run } */
/* { dg-options "-mfp16-format=ieee" } */
/* { dg-options "-mfp16-format=ieee -std=c17" } */
/* { dg-additional-sources "fp16-unprototyped-2.c" } */
#include <stdlib.h>

View file

@ -1,5 +1,5 @@
/* { dg-do compile } */
/* { dg-options "-mfp16-format=ieee" } */
/* { dg-options "-mfp16-format=ieee -std=c17" } */
extern int f ();

View file

@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-require-effective-target arm_neon_ok } */
/* { dg-require-effective-target arm_thumb2_ok } */
/* { dg-options "-O2 -mthumb" } */
/* { dg-options "-O2 -mthumb -std=c17" } */
/* { dg-add-options arm_neon } */
/* { dg-prune-output "switch .* conflicts with" } */

View file

@ -1,6 +1,6 @@
/* { dg-do compile } */
/* { dg-require-effective-target arm_hard_vfp_ok } */
/* { dg-options "-O2 -mapcs -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16" } */
/* { dg-options "-O2 -mapcs -march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -std=c17" } */
int inode_permission (), try_break_deleg ();
int mutex_lock (), mutex_unlock ();

View file

@ -3,7 +3,7 @@
/* { dg-require-effective-target arm_arch_v7a_arm_ok } */
/* { dg-skip-if "-mslow-flash-data and -mword-relocations incompatible" { *-*-* } { "-mslow-flash-data" } } */
/* { dg-skip-if "-mpure-code and -mword-relocations incompatible" { *-*-* } { "-mpure-code" } } */
/* { dg-options "-O2 -mword-relocations" } */
/* { dg-options "-O2 -mword-relocations -std=c17" } */
/* { dg-add-options arm_arch_v7a_arm } */
/* { dg-final { scan-assembler-not "\[\\t \]+movw" } } */