]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: graphite: adapt to -std=gnu23 default change
authorSam James <sam@gentoo.org>
Sat, 16 Nov 2024 03:12:33 +0000 (03:12 +0000)
committerSam James <sam@gentoo.org>
Sat, 16 Nov 2024 03:29:58 +0000 (03:29 +0000)
r15-5327-g55e3bd376b2214 changes the default to -std=gnu23 but these
tests now trigger -Wold-style-definition. Follow Joseph's advice
in that commit and tweak the tests accordingly.

gcc/testsuite/ChangeLog:

* gcc.dg/graphite/id-15.c: Pass -Wno-old-style-definition.
* gcc.dg/graphite/pr38413.c: Ditto.
* gcc.dg/graphite/pr38510.c: Ditto.

gcc/testsuite/gcc.dg/graphite/id-15.c
gcc/testsuite/gcc.dg/graphite/pr38413.c
gcc/testsuite/gcc.dg/graphite/pr38510.c

index d1cb2a2519bfc0d9264936106fcf428f0e8345ca..d0a804c876bfedc719bc124a0d24583367c0d5ac 100644 (file)
@@ -1,3 +1,4 @@
+/* { dg-additional-options "-Wno-old-style-definition" } */
 /* { dg-require-effective-target int32plus } */
 
 typedef long unsigned int size_t;
index 0ecccc7df6042cd9fb2819b99a1b9222cefc61da..877511c6ab2d00366a689c9bfa70e46d954b247f 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-options "-O2 -fgraphite-identity" } */
+/* { dg-options "-O2 -fgraphite-identity -Wno-old-style-definition" } */
 
 static int qsz;
 
index 8c7fcae39a982e5096286922a28920c782e8312c..f05c03df0f7295bb54690bf6b7cfaf74ab65108d 100644 (file)
@@ -1,4 +1,4 @@
-/* { dg-options "-O2 -fgraphite-identity" } */
+/* { dg-options "-O2 -fgraphite-identity -Wno-old-style-definition" } */
 typedef long int integer;
 typedef double doublereal;