r15-5327-g55e3bd376b2214 changes the default to -std=gnu23 but these
tests now trigger -Wold-style-function-definition. Follow Joseph's advice
in that commit and tweak the tests accordingly.

gcc/testsuite/ChangeLog:

        * gcc.dg/graphite/id-15.c: Pass -Wold-style-function-definition.
        * gcc.dg/graphite/pr38413.c: Ditto.
        * gcc.dg/graphite/pr38510.c: Ditto.
---
OK if testing succeeds?

 gcc/testsuite/gcc.dg/graphite/id-15.c   | 1 +
 gcc/testsuite/gcc.dg/graphite/pr38413.c | 2 +-
 gcc/testsuite/gcc.dg/graphite/pr38510.c | 2 +-
 3 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/gcc/testsuite/gcc.dg/graphite/id-15.c 
b/gcc/testsuite/gcc.dg/graphite/id-15.c
index d1cb2a2519bf..8707a379d89c 100644
--- a/gcc/testsuite/gcc.dg/graphite/id-15.c
+++ b/gcc/testsuite/gcc.dg/graphite/id-15.c
@@ -1,3 +1,4 @@
+/* { dg-additional-options "-Wno-old-style-function-definition" } */
 /* { dg-require-effective-target int32plus } */
 
 typedef long unsigned int size_t;
diff --git a/gcc/testsuite/gcc.dg/graphite/pr38413.c 
b/gcc/testsuite/gcc.dg/graphite/pr38413.c
index 0ecccc7df604..6499c9ea36b4 100644
--- a/gcc/testsuite/gcc.dg/graphite/pr38413.c
+++ b/gcc/testsuite/gcc.dg/graphite/pr38413.c
@@ -1,4 +1,4 @@
-/* { dg-options "-O2 -fgraphite-identity" } */
+/* { dg-options "-O2 -fgraphite-identity -Wno-old-style-function-definition" } 
*/
 
 static int qsz;
 
diff --git a/gcc/testsuite/gcc.dg/graphite/pr38510.c 
b/gcc/testsuite/gcc.dg/graphite/pr38510.c
index 8c7fcae39a98..f05c03df0f72 100644
--- a/gcc/testsuite/gcc.dg/graphite/pr38510.c
+++ b/gcc/testsuite/gcc.dg/graphite/pr38510.c
@@ -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;
 
-- 
2.47.0

Reply via email to