https://gcc.gnu.org/g:714f7d8e3ace3f3f42ff80e25d48780310089653

commit r15-5332-g714f7d8e3ace3f3f42ff80e25d48780310089653
Author: Sam James <s...@gentoo.org>
Date:   Sat Nov 16 03:12:33 2024 +0000

    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.

Diff:
---
 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;

Reply via email to