]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
arm: testsuite: fix some legacy C tests
authorRichard Earnshaw <rearnsha@arm.com>
Fri, 6 Dec 2024 17:05:27 +0000 (17:05 +0000)
committerRichard Earnshaw <rearnsha@arm.com>
Fri, 6 Dec 2024 17:12:46 +0000 (17:12 +0000)
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.

gcc/testsuite/gcc.target/arm/20031108-1.c
gcc/testsuite/gcc.target/arm/fp16-unprototyped-1.c
gcc/testsuite/gcc.target/arm/fp16-unprototyped-2.c
gcc/testsuite/gcc.target/arm/neon-thumb2-move.c
gcc/testsuite/gcc.target/arm/pr67756.c
gcc/testsuite/gcc.target/arm/pr81863.c

index 7923e1151395aec5d4c6b72b62ab5f90f4c91f57..b99db7aa1944b625efc390f88beac4b10301f248 100644 (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;
 
index 70c295648889afe91b1c4170cf9c3274dfa74f20..c76f5377ca39f004819fbf6e924e1e207b475555 100644 (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>
index 0c0f9cda6ba9d0025afed49d949c88c161edfe86..2aee1dc4a1523217a28861b7d6d6607a69e987cc 100644 (file)
@@ -1,5 +1,5 @@
 /* { dg-do compile } */
-/* { dg-options "-mfp16-format=ieee" } */
+/* { dg-options "-mfp16-format=ieee -std=c17" } */
 
 extern int f ();
 
index d8c6748d4ee911c6869083b8811e9ac713a75861..b155be08820b1ff169fe863c06a15e80323f0ab0 100644 (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" } */
 
index d2e1a8270d67976e52d705eb3f990673469c11e3..240192dd56ce9f67a9da690cd7f0a4b79c6b1a01 100644 (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 ();
index a96f3b584110cb057484809b2f177d814d07e03f..25f8966e73ca83601585fe0dbbbe7f3b0f8e2b1e 100644 (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" } } */