public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
From: Florian Weimer <fw@gcc.gnu.org>
To: gcc-cvs@gcc.gnu.org
Subject: [gcc r14-4619] C99 test suite readiness: Mark some C89 tests
Date: Fri, 13 Oct 2023 07:37:46 +0000 (GMT)	[thread overview]
Message-ID: <20231013073746.D73873858005@sourceware.org> (raw)

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
 {

                 reply	other threads:[~2023-10-13  7:37 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20231013073746.D73873858005@sourceware.org \
    --to=fw@gcc.gnu.org \
    --cc=gcc-cvs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).