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.
---
OK for trunk?
v2 fixes the commit message and warning option name.
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..d0a804c876bf 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-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..877511c6ab2d 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-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