public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-4619] C99 test suite readiness: Mark some C89 tests
@ 2023-10-13  7:37 Florian Weimer
  0 siblings, 0 replies; only message in thread
From: Florian Weimer @ 2023-10-13  7:37 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:1c23bfdfa936854c2d9dffba3e28703381776011

commit r14-4619-g1c23bfdfa936854c2d9dffba3e28703381776011
Author: Florian Weimer <fweimer@redhat.com>
Date:   Fri Oct 13 09:34:37 2023 +0200

    C99 test suite readiness: Mark some C89 tests
    
    Add -std=gnu89 to some tests which evidently target C89-only language
    features.
    
    gcc/testsuite/
    
            * gcc.c-torture/compile/920501-11.c: Compile with -std=gnu89.
            * gcc.c-torture/compile/920501-23.c: Likewise.
            * gcc.c-torture/compile/920501-8.c: Likewise.
            * gcc.c-torture/compile/920701-1.c: Likewise.
            * gcc.c-torture/compile/930529-1.c: Likewise.

Diff:
---
 gcc/testsuite/gcc.c-torture/compile/920501-11.c | 1 +
 gcc/testsuite/gcc.c-torture/compile/920501-23.c | 1 +
 gcc/testsuite/gcc.c-torture/compile/920501-8.c  | 1 +
 gcc/testsuite/gcc.c-torture/compile/920701-1.c  | 1 +
 gcc/testsuite/gcc.c-torture/compile/930529-1.c  | 1 +
 5 files changed, 5 insertions(+)

diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-11.c b/gcc/testsuite/gcc.c-torture/compile/920501-11.c
index d636357e867..fccd0c4e1aa 100644
--- a/gcc/testsuite/gcc.c-torture/compile/920501-11.c
+++ b/gcc/testsuite/gcc.c-torture/compile/920501-11.c
@@ -1 +1,2 @@
+/* { dg-additional-options "-std=gnu89" } */
 typedef struct{int s;}S;foo(){int i=(int)&(S){(void*)((int)&(S){1})};}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-23.c b/gcc/testsuite/gcc.c-torture/compile/920501-23.c
index 291d93e6c5d..2bc8b32e1a0 100644
--- a/gcc/testsuite/gcc.c-torture/compile/920501-23.c
+++ b/gcc/testsuite/gcc.c-torture/compile/920501-23.c
@@ -1,3 +1,4 @@
+/* { dg-additional-options "-std=gnu89" } */
 typedef unsigned char qi;
 typedef unsigned short hi;
 typedef unsigned long si;
diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-8.c b/gcc/testsuite/gcc.c-torture/compile/920501-8.c
index 68e33934d21..bba64d44e91 100644
--- a/gcc/testsuite/gcc.c-torture/compile/920501-8.c
+++ b/gcc/testsuite/gcc.c-torture/compile/920501-8.c
@@ -1 +1,2 @@
+/* { dg-additional-options "-std=gnu89" } */
 x(int*p){int x=p;}
diff --git a/gcc/testsuite/gcc.c-torture/compile/920701-1.c b/gcc/testsuite/gcc.c-torture/compile/920701-1.c
index 4302f9ea331..2a9c8314052 100644
--- a/gcc/testsuite/gcc.c-torture/compile/920701-1.c
+++ b/gcc/testsuite/gcc.c-torture/compile/920701-1.c
@@ -1 +1,2 @@
+/* { dg-additional-options "-std=gnu89" } */
 f(char*c){extern char a[],b[];return a+(b-c);}
diff --git a/gcc/testsuite/gcc.c-torture/compile/930529-1.c b/gcc/testsuite/gcc.c-torture/compile/930529-1.c
index 8ad358dff5a..4e0bcd8cc04 100644
--- a/gcc/testsuite/gcc.c-torture/compile/930529-1.c
+++ b/gcc/testsuite/gcc.c-torture/compile/930529-1.c
@@ -1,4 +1,5 @@
 /* { dg-require-effective-target untyped_assembly } */
+/* { dg-additional-options "-std=gnu89" } */
 
 struct r
 {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-10-13  7:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-13  7:37 [gcc r14-4619] C99 test suite readiness: Mark some C89 tests Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).