aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-11-16 03:12:33 +0000
committerSam James <sam@gentoo.org>2024-11-16 03:29:58 +0000
commit714f7d8e3ace3f3f42ff80e25d48780310089653 (patch)
treee329bf52085910b20a8c987b686d7532bcc4e4bc
parente77fd9aa89c210db6006fcefb03d80bae0fae851 (diff)
downloadgcc-714f7d8e3ace3f3f42ff80e25d48780310089653.zip
gcc-714f7d8e3ace3f3f42ff80e25d48780310089653.tar.gz
gcc-714f7d8e3ace3f3f42ff80e25d48780310089653.tar.bz2
testsuite: graphite: adapt to -std=gnu23 default change
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.
-rw-r--r--gcc/testsuite/gcc.dg/graphite/id-15.c1
-rw-r--r--gcc/testsuite/gcc.dg/graphite/pr38413.c2
-rw-r--r--gcc/testsuite/gcc.dg/graphite/pr38510.c2
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 d1cb2a2..d0a804c 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 0ecccc7..877511c 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 8c7fcae..f05c03d 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;