diff options
author | Florian Weimer <fweimer@redhat.com> | 2023-10-21 10:16:04 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2023-10-21 10:25:02 +0200 |
commit | 57cbb1d3344116020e7448305d2aa904c1a4cd85 (patch) | |
tree | eaa401cb6f4b42663f967ce0690487a6a302e1ab | |
parent | 66c26e5cfdf65ae024fcb658629dc5a9a10f3f85 (diff) | |
download | gcc-57cbb1d3344116020e7448305d2aa904c1a4cd85.zip gcc-57cbb1d3344116020e7448305d2aa904c1a4cd85.tar.gz gcc-57cbb1d3344116020e7448305d2aa904c1a4cd85.tar.bz2 |
C99 testsuite readiness: Compile more tests with -std=gnu89
gcc/testsuite/
* gcc.c-torture/compile/20000403-1.c: Compile with -std=gnu89.
* gcc.c-torture/compile/20000511-1.c: Likewise.
* gcc.c-torture/compile/20000804-1.c: Likewise.
* gcc.c-torture/compile/20020418-1.c: Likewise.
* gcc.c-torture/compile/20020927-1.c: Likewise.
* gcc.c-torture/compile/20030109-1.c: Likewise.
* gcc.c-torture/compile/20030224-1.c: Likewise.
* gcc.c-torture/compile/20030415-1.c: Likewise.
* gcc.c-torture/compile/20030612-1.c: Likewise.
* gcc.c-torture/compile/20030917-1.c: Likewise.
* gcc.c-torture/compile/20031113-1.c: Likewise.
* gcc.c-torture/compile/20031220-2.c: Likewise.
* gcc.c-torture/compile/20040309-1.c: Likewise.
* gcc.c-torture/compile/20040310-1.c: Likewise.
* gcc.c-torture/compile/20040317-3.c: Likewise.
* gcc.c-torture/compile/20040817-1.c: Likewise.
* gcc.c-torture/compile/20091215-1.c: Likewise.
* gcc.c-torture/compile/86.c: Likewise.
* gcc.c-torture/compile/900216-1.c: Likewise.
* gcc.c-torture/compile/900313-1.c: Likewise.
* gcc.c-torture/compile/900407-1.c: Likewise.
* gcc.c-torture/compile/900516-1.c: Likewise.
* gcc.c-torture/compile/920409-2.c: Likewise.
* gcc.c-torture/compile/920415-1.c: Likewise.
* gcc.c-torture/compile/920428-1.c: Likewise.
* gcc.c-torture/compile/920428-5.c: Likewise.
* gcc.c-torture/compile/920428-7.c: Likewise.
* gcc.c-torture/compile/920501-1.c: Likewise.
* gcc.c-torture/compile/920501-13.c: Likewise.
* gcc.c-torture/compile/920501-15.c: Likewise.
* gcc.c-torture/compile/920501-16.c: Likewise.
* gcc.c-torture/compile/920501-18.c: Likewise.
* gcc.c-torture/compile/920501-20.c: Likewise.
* gcc.c-torture/compile/920501-6.c: Likewise.
* gcc.c-torture/compile/920501-7.c: Likewise.
* gcc.c-torture/compile/920502-1.c: Likewise.
* gcc.c-torture/compile/920502-2.c: Likewise.
* gcc.c-torture/compile/920520-1.c: Likewise.
* gcc.c-torture/compile/920521-1.c: Likewise.
* gcc.c-torture/compile/920608-1.c: Likewise.
* gcc.c-torture/compile/920617-1.c: Likewise.
* gcc.c-torture/compile/920617-2.c: Likewise.
* gcc.c-torture/compile/920625-1.c: Likewise.
* gcc.c-torture/compile/920625-2.c: Likewise.
* gcc.c-torture/compile/920626-1.c: Likewise.
* gcc.c-torture/compile/920706-1.c: Likewise.
* gcc.c-torture/compile/920710-2.c: Likewise.
* gcc.c-torture/compile/920723-1.c: Likewise.
* gcc.c-torture/compile/920808-1.c: Likewise.
* gcc.c-torture/compile/920809-1.c: Likewise.
* gcc.c-torture/compile/920817-1.c: Likewise.
* gcc.c-torture/compile/920831-1.c: Likewise.
* gcc.c-torture/compile/920917-1.c: Likewise.
* gcc.c-torture/compile/920928-2.c: Likewise.
* gcc.c-torture/compile/920928-5.c: Likewise.
* gcc.c-torture/compile/921012-1.c: Likewise.
* gcc.c-torture/compile/921021-1.c: Likewise.
* gcc.c-torture/compile/921024-1.c: Likewise.
* gcc.c-torture/compile/921103-1.c: Likewise.
* gcc.c-torture/compile/921109-1.c: Likewise.
* gcc.c-torture/compile/921111-1.c: Likewise.
* gcc.c-torture/compile/921116-2.c: Likewise.
* gcc.c-torture/compile/921118-1.c: Likewise.
* gcc.c-torture/compile/921202-1.c: Likewise.
* gcc.c-torture/compile/921202-2.c: Likewise.
* gcc.c-torture/compile/921203-1.c: Likewise.
* gcc.c-torture/compile/921203-2.c: Likewise.
* gcc.c-torture/compile/921206-1.c: Likewise.
* gcc.c-torture/compile/930109-1.c: Likewise.
* gcc.c-torture/compile/930111-1.c: Likewise.
* gcc.c-torture/compile/930117-1.c: Likewise.
* gcc.c-torture/compile/930118-1.c: Likewise.
* gcc.c-torture/compile/930120-1.c: Likewise.
* gcc.c-torture/compile/930217-1.c: Likewise.
* gcc.c-torture/compile/930325-1.c: Likewise.
* gcc.c-torture/compile/930411-1.c: Likewise.
* gcc.c-torture/compile/930427-2.c: Likewise.
* gcc.c-torture/compile/930503-2.c: Likewise.
* gcc.c-torture/compile/930506-2.c: Likewise.
* gcc.c-torture/compile/930513-2.c: Likewise.
* gcc.c-torture/compile/930530-1.c: Likewise.
* gcc.c-torture/compile/930602-1.c: Likewise.
* gcc.c-torture/compile/930618-1.c: Likewise.
* gcc.c-torture/compile/930623-1.c: Likewise.
* gcc.c-torture/compile/931003-1.c: Likewise.
* gcc.c-torture/compile/931013-1.c: Likewise.
* gcc.c-torture/compile/931013-2.c: Likewise.
* gcc.c-torture/compile/931102-2.c: Likewise.
* gcc.c-torture/compile/931203-1.c: Likewise.
* gcc.c-torture/compile/940718-1.c: Likewise.
* gcc.c-torture/compile/941014-1.c: Likewise.
* gcc.c-torture/compile/941014-2.c: Likewise.
* gcc.c-torture/compile/941014-3.c: Likewise.
* gcc.c-torture/compile/941014-4.c: Likewise.
* gcc.c-torture/compile/941111-1.c: Likewise.
* gcc.c-torture/compile/941113-1.c: Likewise.
* gcc.c-torture/compile/950124-1.c: Likewise.
* gcc.c-torture/compile/950329-1.c: Likewise.
* gcc.c-torture/compile/950612-1.c: Likewise.
* gcc.c-torture/compile/950618-1.c: Likewise.
* gcc.c-torture/compile/950719-1.c: Likewise.
* gcc.c-torture/compile/950910-1.c: Likewise.
* gcc.c-torture/compile/950922-1.c: Likewise.
* gcc.c-torture/compile/951106-1.c: Likewise.
* gcc.c-torture/compile/951222-1.c: Likewise.
* gcc.c-torture/compile/960106-1.c: Likewise.
* gcc.c-torture/compile/960319-1.c: Likewise.
* gcc.c-torture/compile/960829-1.c: Likewise.
* gcc.c-torture/compile/970206-1.c: Likewise.
* gcc.c-torture/compile/980825-1.c: Likewise.
* gcc.c-torture/compile/990829-1.c: Likewise.
* gcc.c-torture/compile/991213-2.c: Likewise.
112 files changed, 195 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/20000403-1.c b/gcc/testsuite/gcc.c-torture/compile/20000403-1.c index cb56028..ef8f77d 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20000403-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20000403-1.c @@ -1,4 +1,5 @@ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ struct utsname { char sysname[32 ]; diff --git a/gcc/testsuite/gcc.c-torture/compile/20000511-1.c b/gcc/testsuite/gcc.c-torture/compile/20000511-1.c index 11c1315..cbabe2f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20000511-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20000511-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct { char y; char x[32]; diff --git a/gcc/testsuite/gcc.c-torture/compile/20000804-1.c b/gcc/testsuite/gcc.c-torture/compile/20000804-1.c index 95bb0fa..c6f6497 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20000804-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20000804-1.c @@ -8,6 +8,7 @@ /* { dg-xfail-if "Inconsistent constraint on asm" { bpf-*-* } { "-O0" } { "" } } */ /* { dg-xfail-if "" { h8300-*-* } } */ /* { dg-require-stack-size "99*4+16" } */ +/* { dg-additional-options "-std=gnu89" } */ /* Copyright (C) 2000, 2003 Free Software Foundation */ __complex__ long long f () diff --git a/gcc/testsuite/gcc.c-torture/compile/20020418-1.c b/gcc/testsuite/gcc.c-torture/compile/20020418-1.c index df01e68..ee70a28 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20020418-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20020418-1.c @@ -3,6 +3,7 @@ was assigned a hard register only after expand_null_return was called, thus return pseudo was clobbered twice and the hard register not at all. */ +/* { dg-additional-options "-std=gnu89" } */ void baz (void); diff --git a/gcc/testsuite/gcc.c-torture/compile/20020927-1.c b/gcc/testsuite/gcc.c-torture/compile/20020927-1.c index b93d8a1..15b0787 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20020927-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20020927-1.c @@ -1,6 +1,7 @@ /* PR optimization/7520 */ /* ICE at -O3 on x86 due to register life problems caused by the return-without-value in bar. */ +/* { dg-additional-options "-std=gnu89" } */ int foo () diff --git a/gcc/testsuite/gcc.c-torture/compile/20030109-1.c b/gcc/testsuite/gcc.c-torture/compile/20030109-1.c index 4df7d18..cee4381 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20030109-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20030109-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + void foo () { int x1, x2, x3; diff --git a/gcc/testsuite/gcc.c-torture/compile/20030224-1.c b/gcc/testsuite/gcc.c-torture/compile/20030224-1.c index 11bc3af..10c4619 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20030224-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20030224-1.c @@ -1,4 +1,6 @@ /* { dg-require-effective-target alloca } */ +/* { dg-additional-options "-std=gnu89" } */ + void zzz (char *s1, char *s2, int len, int *q) { int z = 5; diff --git a/gcc/testsuite/gcc.c-torture/compile/20030415-1.c b/gcc/testsuite/gcc.c-torture/compile/20030415-1.c index bcca4c8..733e0d7 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20030415-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20030415-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + float g(float f) { return fabs(f); diff --git a/gcc/testsuite/gcc.c-torture/compile/20030612-1.c b/gcc/testsuite/gcc.c-torture/compile/20030612-1.c index 8edbd92..1da8118 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20030612-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20030612-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + static inline void foo (long long const v0, long long const v1) { diff --git a/gcc/testsuite/gcc.c-torture/compile/20030917-1.c b/gcc/testsuite/gcc.c-torture/compile/20030917-1.c index 38b6598..fa38025 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20030917-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20030917-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct string STR; typedef struct atbl ARRAY; struct string { diff --git a/gcc/testsuite/gcc.c-torture/compile/20031113-1.c b/gcc/testsuite/gcc.c-torture/compile/20031113-1.c index 74c031c..15c2cd5 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20031113-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20031113-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + /* On Darwin, the stub for simple_cst_equal was not being emitted at all causing the as to die and not create an object file. */ diff --git a/gcc/testsuite/gcc.c-torture/compile/20031220-2.c b/gcc/testsuite/gcc.c-torture/compile/20031220-2.c index 45c8277..6f53079 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20031220-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/20031220-2.c @@ -2,6 +2,7 @@ Orgin: Matt Thomas <matt@3am-software.com> This used to cause GCC to write out an instruction for i386 when using a L64 host which gas could not handle because GCC would write a full 64bit hex string out. */ +/* { dg-additional-options "-std=gnu89" } */ float fabsf (float); diff --git a/gcc/testsuite/gcc.c-torture/compile/20040309-1.c b/gcc/testsuite/gcc.c-torture/compile/20040309-1.c index df8390f..d6ed376 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20040309-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20040309-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + static const char default_tupleseps[] = ", \t"; diff --git a/gcc/testsuite/gcc.c-torture/compile/20040310-1.c b/gcc/testsuite/gcc.c-torture/compile/20040310-1.c index f0c85f0..d7f4b10 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20040310-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20040310-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + void I_wacom () { char buffer[50], *p; diff --git a/gcc/testsuite/gcc.c-torture/compile/20040317-3.c b/gcc/testsuite/gcc.c-torture/compile/20040317-3.c index e6982c3..9757175 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20040317-3.c +++ b/gcc/testsuite/gcc.c-torture/compile/20040317-3.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + I_wacom () { char buffer[50], *p; diff --git a/gcc/testsuite/gcc.c-torture/compile/20040817-1.c b/gcc/testsuite/gcc.c-torture/compile/20040817-1.c index 158596c..c99fc33 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20040817-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20040817-1.c @@ -1,4 +1,5 @@ /* PR 17051: SRA failed to rename the VOPS properly. */ +/* { dg-additional-options "-std=gnu89" } */ struct A { diff --git a/gcc/testsuite/gcc.c-torture/compile/20091215-1.c b/gcc/testsuite/gcc.c-torture/compile/20091215-1.c index 1df5098..017bb1e 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20091215-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/20091215-1.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target untyped_assembly } */ +/* { dg-additional-options "-std=gnu89" } */ void bar (); diff --git a/gcc/testsuite/gcc.c-torture/compile/86.c b/gcc/testsuite/gcc.c-torture/compile/86.c index deea85e..6b0017d 100644 --- a/gcc/testsuite/gcc.c-torture/compile/86.c +++ b/gcc/testsuite/gcc.c-torture/compile/86.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + m32 (a) int *a; { diff --git a/gcc/testsuite/gcc.c-torture/compile/900216-1.c b/gcc/testsuite/gcc.c-torture/compile/900216-1.c index 8a4bfb7..8796599 100644 --- a/gcc/testsuite/gcc.c-torture/compile/900216-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/900216-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (p, a, b) unsigned short *p; { diff --git a/gcc/testsuite/gcc.c-torture/compile/900313-1.c b/gcc/testsuite/gcc.c-torture/compile/900313-1.c index 12252b4..82552dc 100644 --- a/gcc/testsuite/gcc.c-torture/compile/900313-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/900313-1.c @@ -1,5 +1,6 @@ /* { dg-require-effective-target alloca } */ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ main () { diff --git a/gcc/testsuite/gcc.c-torture/compile/900407-1.c b/gcc/testsuite/gcc.c-torture/compile/900407-1.c index fdf4779..07cbe07 100644 --- a/gcc/testsuite/gcc.c-torture/compile/900407-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/900407-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b, p) int *p; { diff --git a/gcc/testsuite/gcc.c-torture/compile/900516-1.c b/gcc/testsuite/gcc.c-torture/compile/900516-1.c index 69e9614..b51b870 100644 --- a/gcc/testsuite/gcc.c-torture/compile/900516-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/900516-1.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + f(c){return!(c?2.0:1.0);} diff --git a/gcc/testsuite/gcc.c-torture/compile/920409-2.c b/gcc/testsuite/gcc.c-torture/compile/920409-2.c index ef2bdb8b..b6b8686 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920409-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/920409-2.c @@ -1,2 +1,4 @@ +/* { dg-additional-options "-std=gnu89" } */ + double x(){int x1,x2;double v; if(((long)(x1-x2))<1)return -1.0;v=t(v);v=y(1,v>0.0?(int)v:((int)v-1));} diff --git a/gcc/testsuite/gcc.c-torture/compile/920415-1.c b/gcc/testsuite/gcc.c-torture/compile/920415-1.c index 96ac7fe..261020a 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920415-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920415-1.c @@ -1,5 +1,6 @@ /* { dg-require-effective-target indirect_jumps } */ /* { dg-require-effective-target label_values } */ +/* { dg-additional-options "-std=gnu89" } */ extern void abort (void); extern void exit (int); diff --git a/gcc/testsuite/gcc.c-torture/compile/920428-1.c b/gcc/testsuite/gcc.c-torture/compile/920428-1.c index fdc478a..32b17cb 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920428-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920428-1.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + x(){char*q;return(long)q>>8&0xff;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920428-5.c b/gcc/testsuite/gcc.c-torture/compile/920428-5.c index ff31379..4aa4f60 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920428-5.c +++ b/gcc/testsuite/gcc.c-torture/compile/920428-5.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct{unsigned b0:1;}*t;x(a,b)t a,b;{b->b0=a->b0;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920428-7.c b/gcc/testsuite/gcc.c-torture/compile/920428-7.c index 69b1d97..47da940 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920428-7.c +++ b/gcc/testsuite/gcc.c-torture/compile/920428-7.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + x(float*x){int a[4],i=0,j;for(j=0;j<2;j++){f(a[i++]);f(a[i++]);}} diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-1.c b/gcc/testsuite/gcc.c-torture/compile/920501-1.c index 84cc122..6215852 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920501-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920501-1.c @@ -1,3 +1,4 @@ /* { dg-require-effective-target label_values } */ +/* { dg-additional-options "-std=gnu89" } */ a(){int**b[]={&&c};c:;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-13.c b/gcc/testsuite/gcc.c-torture/compile/920501-13.c index b5a6798e..e7670e3 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920501-13.c +++ b/gcc/testsuite/gcc.c-torture/compile/920501-13.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct{int i;}t;inline y(t u){}x(){t u;y(u);} diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-15.c b/gcc/testsuite/gcc.c-torture/compile/920501-15.c index 81fd664..aaae9d3 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920501-15.c +++ b/gcc/testsuite/gcc.c-torture/compile/920501-15.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + x(a)double a;{int i;return i>a?i:i+1;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-16.c b/gcc/testsuite/gcc.c-torture/compile/920501-16.c index f82b752..732ef0f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920501-16.c +++ b/gcc/testsuite/gcc.c-torture/compile/920501-16.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + f(n){struct z{int a,b[n],c[n];};} diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-18.c b/gcc/testsuite/gcc.c-torture/compile/920501-18.c index 70f7c0a..e2110b7 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920501-18.c +++ b/gcc/testsuite/gcc.c-torture/compile/920501-18.c @@ -1,2 +1,4 @@ +/* { dg-additional-options "-std=gnu89" } */ + union u{int i;float f;}; x(p)int p;{union u x;for(x.i=0;x.i<p;x.i++)if(x.f>(float)3.0)break;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-20.c b/gcc/testsuite/gcc.c-torture/compile/920501-20.c index 170d050..dcbb039 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920501-20.c +++ b/gcc/testsuite/gcc.c-torture/compile/920501-20.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + int*f(x)int*x;{if(x[4]){int h[1];if(setjmp(h))return x;}} diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-6.c b/gcc/testsuite/gcc.c-torture/compile/920501-6.c index d0a4063..dcf00ef 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920501-6.c +++ b/gcc/testsuite/gcc.c-torture/compile/920501-6.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + x(y,z)float*y;{*y=z;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920501-7.c b/gcc/testsuite/gcc.c-torture/compile/920501-7.c index 0fac5f3..08b8535 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920501-7.c +++ b/gcc/testsuite/gcc.c-torture/compile/920501-7.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target label_values } */ /* { dg-skip-if "no support for indirect jumps" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ x(){if(&&e-&&b<0)x();b:goto*&&b;e:;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920502-1.c b/gcc/testsuite/gcc.c-torture/compile/920502-1.c index ec2405a..7156702 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920502-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920502-1.c @@ -1,3 +1,4 @@ /* { dg-require-effective-target indirect_jumps } */ +/* { dg-additional-options "-std=gnu89" } */ extern void*t[];x(i){goto*t[i];} diff --git a/gcc/testsuite/gcc.c-torture/compile/920502-2.c b/gcc/testsuite/gcc.c-torture/compile/920502-2.c index d3aa1e2..20c2f6e 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920502-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/920502-2.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + x(c){1LL<<c;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920520-1.c b/gcc/testsuite/gcc.c-torture/compile/920520-1.c index 037102e..c069dcc 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920520-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920520-1.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ /* { dg-skip-if "" { pdp11-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ f(){asm("%0"::"r"(1.5F));}g(){asm("%0"::"r"(1.5));} diff --git a/gcc/testsuite/gcc.c-torture/compile/920521-1.c b/gcc/testsuite/gcc.c-torture/compile/920521-1.c index 6c4c99d..aba078f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920521-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920521-1.c @@ -1,3 +1,4 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu89" } */ f(){asm("f":::"cc");}g(x,y){asm("g"::"%r"(x), "r"(y));} diff --git a/gcc/testsuite/gcc.c-torture/compile/920608-1.c b/gcc/testsuite/gcc.c-torture/compile/920608-1.c index cae1978..4ba8351 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920608-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920608-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (p) int *p; { diff --git a/gcc/testsuite/gcc.c-torture/compile/920617-1.c b/gcc/testsuite/gcc.c-torture/compile/920617-1.c index 2d84e8d..48e16e8 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920617-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920617-1.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + f(){double*xp,y;*xp++=sqrt(y);} diff --git a/gcc/testsuite/gcc.c-torture/compile/920617-2.c b/gcc/testsuite/gcc.c-torture/compile/920617-2.c index 3a54509..590b8f9 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920617-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/920617-2.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + f(a,b,c,d)float a[],d;int b[],c;{} diff --git a/gcc/testsuite/gcc.c-torture/compile/920625-1.c b/gcc/testsuite/gcc.c-torture/compile/920625-1.c index 759a356..20ef35e 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920625-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920625-1.c @@ -1,4 +1,5 @@ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ typedef unsigned long int unsigned_word; typedef signed long int signed_word; diff --git a/gcc/testsuite/gcc.c-torture/compile/920625-2.c b/gcc/testsuite/gcc.c-torture/compile/920625-2.c index c0cb6db..40c3d9b 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920625-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/920625-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef char * caddr_t; typedef unsigned Cursor; typedef char *String; diff --git a/gcc/testsuite/gcc.c-torture/compile/920626-1.c b/gcc/testsuite/gcc.c-torture/compile/920626-1.c index 5441986..7c2c99f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920626-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920626-1.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + f(x)unsigned x;{return x>>-5;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920706-1.c b/gcc/testsuite/gcc.c-torture/compile/920706-1.c index 13b0ff1..b5e4fa0 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920706-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920706-1.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + f(){float i[2],o[1];g(o);return*o;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920710-2.c b/gcc/testsuite/gcc.c-torture/compile/920710-2.c index dcaf1be..782bac6 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920710-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/920710-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + union u { struct {unsigned h, l;} i; diff --git a/gcc/testsuite/gcc.c-torture/compile/920723-1.c b/gcc/testsuite/gcc.c-torture/compile/920723-1.c index 2d77875..4295124 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920723-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920723-1.c @@ -1,5 +1,6 @@ /* { dg-add-options stack_size } */ /* { dg-require-stack-size "75*75*4" } */ +/* { dg-additional-options "-std=gnu89" } */ #if defined(STACK_SIZE) && STACK_SIZE < 65536 # define GITT_SIZE 75 diff --git a/gcc/testsuite/gcc.c-torture/compile/920808-1.c b/gcc/testsuite/gcc.c-torture/compile/920808-1.c index 17510a9..72b8e30 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920808-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920808-1.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + f(i){for(i=1;i<=2;({;}),i++){({;}),g();}} diff --git a/gcc/testsuite/gcc.c-torture/compile/920809-1.c b/gcc/testsuite/gcc.c-torture/compile/920809-1.c index ad35e12..fe5af52 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920809-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920809-1.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + f(x,y){memcpy (&x,&y,8192);} diff --git a/gcc/testsuite/gcc.c-torture/compile/920817-1.c b/gcc/testsuite/gcc.c-torture/compile/920817-1.c index 31a5733..be80730 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920817-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920817-1.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + int v;static inline f(){return 0;}g(){return f();}void h(){return v++;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920831-1.c b/gcc/testsuite/gcc.c-torture/compile/920831-1.c index 945c521..c990e08 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920831-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920831-1.c @@ -1,3 +1,4 @@ /* { dg-require-effective-target indirect_jumps } */ +/* { dg-additional-options "-std=gnu89" } */ f(x){goto*(void *)x;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920917-1.c b/gcc/testsuite/gcc.c-torture/compile/920917-1.c index 139f60e..28e5211 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920917-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/920917-1.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target untyped_assembly } */ +/* { dg-additional-options "-std=gnu89" } */ inline f(x){switch(x){case 6:case 4:case 3:case 1:;}return x;} g(){f(sizeof("xxxxxx"));} diff --git a/gcc/testsuite/gcc.c-torture/compile/920928-2.c b/gcc/testsuite/gcc.c-torture/compile/920928-2.c index a0964f9..ba7c868 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920928-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/920928-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct{struct{char*d;int b;}*i;}*t; double f(); g(p)t p; diff --git a/gcc/testsuite/gcc.c-torture/compile/920928-5.c b/gcc/testsuite/gcc.c-torture/compile/920928-5.c index b9f9dcb..f38c7cd 100644 --- a/gcc/testsuite/gcc.c-torture/compile/920928-5.c +++ b/gcc/testsuite/gcc.c-torture/compile/920928-5.c @@ -1,6 +1,7 @@ /* REPRODUCED:CC1:SIGNAL MACHINE:m68k OPTIONS:-fpcc-struct-return */ /* { dg-require-effective-target indirect_calls } */ +/* { dg-additional-options "-std=gnu89" } */ struct b{}; f(struct b(*f)()) diff --git a/gcc/testsuite/gcc.c-torture/compile/921012-1.c b/gcc/testsuite/gcc.c-torture/compile/921012-1.c index 7b5cb6b..4f7d797 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921012-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/921012-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f() { g(({int x;0;})); diff --git a/gcc/testsuite/gcc.c-torture/compile/921021-1.c b/gcc/testsuite/gcc.c-torture/compile/921021-1.c index 18dffeb..2cd6de5 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921021-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/921021-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + void g(); f() diff --git a/gcc/testsuite/gcc.c-torture/compile/921024-1.c b/gcc/testsuite/gcc.c-torture/compile/921024-1.c index e723246..0d5ff95 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921024-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/921024-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + long long f(s,r) { return *(long long*)(s+r); diff --git a/gcc/testsuite/gcc.c-torture/compile/921103-1.c b/gcc/testsuite/gcc.c-torture/compile/921103-1.c index 578e91a..0dbb9cc 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921103-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/921103-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + struct { unsigned int f1, f2; } s; diff --git a/gcc/testsuite/gcc.c-torture/compile/921109-1.c b/gcc/testsuite/gcc.c-torture/compile/921109-1.c index eda4345..be04e68 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921109-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/921109-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct { double x, y; } p; typedef struct { int s; float r; } t; t *e, i; diff --git a/gcc/testsuite/gcc.c-torture/compile/921111-1.c b/gcc/testsuite/gcc.c-torture/compile/921111-1.c index 11b4674..798afe6 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921111-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/921111-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + int ps; struct vp { int wa; diff --git a/gcc/testsuite/gcc.c-torture/compile/921116-2.c b/gcc/testsuite/gcc.c-torture/compile/921116-2.c index 9eac91c..49b4d4f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921116-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/921116-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct { long l[5]; } t; diff --git a/gcc/testsuite/gcc.c-torture/compile/921118-1.c b/gcc/testsuite/gcc.c-torture/compile/921118-1.c index 857c74e..d45fdf4 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921118-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/921118-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + inline f(i) { h((long long) i * 2); diff --git a/gcc/testsuite/gcc.c-torture/compile/921202-1.c b/gcc/testsuite/gcc.c-torture/compile/921202-1.c index d97ddf6..83a3ad4 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921202-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/921202-1.c @@ -1,4 +1,5 @@ /* { dg-require-stack-size "2055*3*8" } */ +/* { dg-additional-options "-std=gnu89" } */ f () { diff --git a/gcc/testsuite/gcc.c-torture/compile/921202-2.c b/gcc/testsuite/gcc.c-torture/compile/921202-2.c index 97d482b..2ad1440 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921202-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/921202-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f(x, c) { for (;;) diff --git a/gcc/testsuite/gcc.c-torture/compile/921203-1.c b/gcc/testsuite/gcc.c-torture/compile/921203-1.c index 50fe3eb..5e60541 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921203-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/921203-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + char dispstr[]; f() { diff --git a/gcc/testsuite/gcc.c-torture/compile/921203-2.c b/gcc/testsuite/gcc.c-torture/compile/921203-2.c index 929afb1..88b22c8 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921203-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/921203-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct { char x; diff --git a/gcc/testsuite/gcc.c-torture/compile/921206-1.c b/gcc/testsuite/gcc.c-torture/compile/921206-1.c index 10fa5ea..4e9c3e0 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921206-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/921206-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + double sqrt(double),fabs(double),sin(double); int sxs; int sys; diff --git a/gcc/testsuite/gcc.c-torture/compile/930109-1.c b/gcc/testsuite/gcc.c-torture/compile/930109-1.c index dbd15a1..e5ce10e 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930109-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930109-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f(x) unsigned x; { diff --git a/gcc/testsuite/gcc.c-torture/compile/930111-1.c b/gcc/testsuite/gcc.c-torture/compile/930111-1.c index 2857419..5661cdf 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930111-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930111-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + /* 2.3.3 crashes on 386 with -traditional */ f(a) char *a; diff --git a/gcc/testsuite/gcc.c-torture/compile/930117-1.c b/gcc/testsuite/gcc.c-torture/compile/930117-1.c index 06466f5..d8a023c 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930117-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930117-1.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target indirect_calls } */ +/* { dg-additional-options "-std=gnu89" } */ f(x) { diff --git a/gcc/testsuite/gcc.c-torture/compile/930118-1.c b/gcc/testsuite/gcc.c-torture/compile/930118-1.c index b29543c..e1dbc1f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930118-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930118-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f() { __label__ l; diff --git a/gcc/testsuite/gcc.c-torture/compile/930120-1.c b/gcc/testsuite/gcc.c-torture/compile/930120-1.c index a1d8df8..c4fd6a4 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930120-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930120-1.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target untyped_assembly } */ +/* { dg-additional-options "-std=gnu89" } */ union { short I[2]; long int L; diff --git a/gcc/testsuite/gcc.c-torture/compile/930217-1.c b/gcc/testsuite/gcc.c-torture/compile/930217-1.c index 0f64a04..cdad9f5 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930217-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930217-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + /* The bit-field below would have a problem if __INT_MAX__ is too small. */ #if __INT_MAX__ < 2147483647 diff --git a/gcc/testsuite/gcc.c-torture/compile/930325-1.c b/gcc/testsuite/gcc.c-torture/compile/930325-1.c index 24cea50..f493d49 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930325-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930325-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef unsigned uint; inline diff --git a/gcc/testsuite/gcc.c-torture/compile/930411-1.c b/gcc/testsuite/gcc.c-torture/compile/930411-1.c index 6dd87ee..cf1a171 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930411-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930411-1.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target untyped_assembly } */ +/* { dg-additional-options "-std=gnu89" } */ int heap; diff --git a/gcc/testsuite/gcc.c-torture/compile/930427-2.c b/gcc/testsuite/gcc.c-torture/compile/930427-2.c index 53b6337..ad084ca 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930427-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/930427-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + struct s { int f; }; diff --git a/gcc/testsuite/gcc.c-torture/compile/930503-2.c b/gcc/testsuite/gcc.c-torture/compile/930503-2.c index 1b0ea34..7eb58f8 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930503-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/930503-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f() { struct { char x; } r; diff --git a/gcc/testsuite/gcc.c-torture/compile/930506-2.c b/gcc/testsuite/gcc.c-torture/compile/930506-2.c index bc982ac..aa56fe5 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930506-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/930506-2.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target trampolines } */ +/* { dg-additional-options "-std=gnu89" } */ int f1() { diff --git a/gcc/testsuite/gcc.c-torture/compile/930513-2.c b/gcc/testsuite/gcc.c-torture/compile/930513-2.c index a7f508c..d81ae05 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930513-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/930513-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + double g (); f (x) diff --git a/gcc/testsuite/gcc.c-torture/compile/930530-1.c b/gcc/testsuite/gcc.c-torture/compile/930530-1.c index 848e040..6d07c98 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930530-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930530-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f () { struct { char a, b; } x; diff --git a/gcc/testsuite/gcc.c-torture/compile/930602-1.c b/gcc/testsuite/gcc.c-torture/compile/930602-1.c index 5a0eb21..3045e40 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930602-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930602-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct { int f[8]; } T; diff --git a/gcc/testsuite/gcc.c-torture/compile/930618-1.c b/gcc/testsuite/gcc.c-torture/compile/930618-1.c index 74c2157..fa728f2 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930618-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930618-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f (s) { int r; diff --git a/gcc/testsuite/gcc.c-torture/compile/930623-1.c b/gcc/testsuite/gcc.c-torture/compile/930623-1.c index dd45bbc..7736fa95 100644 --- a/gcc/testsuite/gcc.c-torture/compile/930623-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/930623-1.c @@ -1,5 +1,6 @@ /* { dg-require-effective-target untyped_assembly } */ /* { dg-skip-if "no __builtin_apply in eBPF" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ g (a, b) {} diff --git a/gcc/testsuite/gcc.c-torture/compile/931003-1.c b/gcc/testsuite/gcc.c-torture/compile/931003-1.c index 637b9aa..b14e920 100644 --- a/gcc/testsuite/gcc.c-torture/compile/931003-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/931003-1.c @@ -1,4 +1,5 @@ /* { dg-require-stack-size "52*8" } */ +/* { dg-additional-options "-std=gnu89" } */ f (n, a) int n; diff --git a/gcc/testsuite/gcc.c-torture/compile/931013-1.c b/gcc/testsuite/gcc.c-torture/compile/931013-1.c index c237c0b..ab6138b 100644 --- a/gcc/testsuite/gcc.c-torture/compile/931013-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/931013-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + g (); f () diff --git a/gcc/testsuite/gcc.c-torture/compile/931013-2.c b/gcc/testsuite/gcc.c-torture/compile/931013-2.c index 8fc0db4..8c78fde 100644 --- a/gcc/testsuite/gcc.c-torture/compile/931013-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/931013-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f (unsigned short Z[48]) { int j; diff --git a/gcc/testsuite/gcc.c-torture/compile/931102-2.c b/gcc/testsuite/gcc.c-torture/compile/931102-2.c index f39b271..10ba03f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/931102-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/931102-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct { int a; } VCR; diff --git a/gcc/testsuite/gcc.c-torture/compile/931203-1.c b/gcc/testsuite/gcc.c-torture/compile/931203-1.c index 3007ff5..b4fef4e 100644 --- a/gcc/testsuite/gcc.c-torture/compile/931203-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/931203-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + v (a, i) unsigned *a, i; { diff --git a/gcc/testsuite/gcc.c-torture/compile/940718-1.c b/gcc/testsuite/gcc.c-torture/compile/940718-1.c index 505280f..82953b1 100644 --- a/gcc/testsuite/gcc.c-torture/compile/940718-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/940718-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + extern double log (double) __attribute__ ((const)); f (double x) diff --git a/gcc/testsuite/gcc.c-torture/compile/941014-1.c b/gcc/testsuite/gcc.c-torture/compile/941014-1.c index d317015..760c8aa 100644 --- a/gcc/testsuite/gcc.c-torture/compile/941014-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/941014-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f (to) char *to; { diff --git a/gcc/testsuite/gcc.c-torture/compile/941014-2.c b/gcc/testsuite/gcc.c-torture/compile/941014-2.c index 01e9a67..c7ac0ac 100644 --- a/gcc/testsuite/gcc.c-torture/compile/941014-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/941014-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + void f (n, ppt, xrot) { diff --git a/gcc/testsuite/gcc.c-torture/compile/941014-3.c b/gcc/testsuite/gcc.c-torture/compile/941014-3.c index 6dcb893..db1ac6c 100644 --- a/gcc/testsuite/gcc.c-torture/compile/941014-3.c +++ b/gcc/testsuite/gcc.c-torture/compile/941014-3.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef unsigned char byte; typedef unsigned int uint; typedef unsigned long ulong; diff --git a/gcc/testsuite/gcc.c-torture/compile/941014-4.c b/gcc/testsuite/gcc.c-torture/compile/941014-4.c index 9c4cec8..f7cdcc0 100644 --- a/gcc/testsuite/gcc.c-torture/compile/941014-4.c +++ b/gcc/testsuite/gcc.c-torture/compile/941014-4.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target label_values } */ +/* { dg-additional-options "-std=gnu89" } */ f (int *re) { diff --git a/gcc/testsuite/gcc.c-torture/compile/941111-1.c b/gcc/testsuite/gcc.c-torture/compile/941111-1.c index 3f0c28b..22ed2c4 100644 --- a/gcc/testsuite/gcc.c-torture/compile/941111-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/941111-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + main () { struct S { int i; char c; } obj1, obj2; diff --git a/gcc/testsuite/gcc.c-torture/compile/941113-1.c b/gcc/testsuite/gcc.c-torture/compile/941113-1.c index 5c2e0b6..78f7c05 100644 --- a/gcc/testsuite/gcc.c-torture/compile/941113-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/941113-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef void foo (void); f (x) diff --git a/gcc/testsuite/gcc.c-torture/compile/950124-1.c b/gcc/testsuite/gcc.c-torture/compile/950124-1.c index e723954..1467e7a 100644 --- a/gcc/testsuite/gcc.c-torture/compile/950124-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/950124-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f () { if (g ()) diff --git a/gcc/testsuite/gcc.c-torture/compile/950329-1.c b/gcc/testsuite/gcc.c-torture/compile/950329-1.c index 63ec6b2..adb3ad5 100644 --- a/gcc/testsuite/gcc.c-torture/compile/950329-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/950329-1.c @@ -1,4 +1,6 @@ /* { dg-require-effective-target untyped_assembly } */ +/* { dg-additional-options "-std=gnu89" } */ + f () { int i; diff --git a/gcc/testsuite/gcc.c-torture/compile/950612-1.c b/gcc/testsuite/gcc.c-torture/compile/950612-1.c index cb3cb0a..93e5e71 100644 --- a/gcc/testsuite/gcc.c-torture/compile/950612-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/950612-1.c @@ -1,3 +1,6 @@ +/* { dg-additional-options "-std=gnu89" } */ + + typedef enum { LODI, diff --git a/gcc/testsuite/gcc.c-torture/compile/950618-1.c b/gcc/testsuite/gcc.c-torture/compile/950618-1.c index 4229da4..3b83286 100644 --- a/gcc/testsuite/gcc.c-torture/compile/950618-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/950618-1.c @@ -1,2 +1,4 @@ +/* { dg-additional-options "-std=gnu89" } */ + static __inline__ int f () { return g (); } int g () { return f (); } diff --git a/gcc/testsuite/gcc.c-torture/compile/950719-1.c b/gcc/testsuite/gcc.c-torture/compile/950719-1.c index e1ac117..ce5c7e1 100644 --- a/gcc/testsuite/gcc.c-torture/compile/950719-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/950719-1.c @@ -1,4 +1,5 @@ /* { dg-require-stack-size "4092+4" } */ +/* { dg-additional-options "-std=gnu89" } */ typedef struct { diff --git a/gcc/testsuite/gcc.c-torture/compile/950910-1.c b/gcc/testsuite/gcc.c-torture/compile/950910-1.c index 1be2aa5..75204bc 100644 --- a/gcc/testsuite/gcc.c-torture/compile/950910-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/950910-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f (char *p) { char c; diff --git a/gcc/testsuite/gcc.c-torture/compile/950922-1.c b/gcc/testsuite/gcc.c-torture/compile/950922-1.c index 73c52f7..ecd987e 100644 --- a/gcc/testsuite/gcc.c-torture/compile/950922-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/950922-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + struct sw { const void *x; int r; diff --git a/gcc/testsuite/gcc.c-torture/compile/951106-1.c b/gcc/testsuite/gcc.c-torture/compile/951106-1.c index 09cba20..ee3b261 100644 --- a/gcc/testsuite/gcc.c-torture/compile/951106-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/951106-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f (double a, double b) { g (a, 0, b); diff --git a/gcc/testsuite/gcc.c-torture/compile/951222-1.c b/gcc/testsuite/gcc.c-torture/compile/951222-1.c index f1818e3..60a2969 100644 --- a/gcc/testsuite/gcc.c-torture/compile/951222-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/951222-1.c @@ -1,4 +1,5 @@ /* { dg-require-stack-size "10000+3*8" } */ +/* { dg-additional-options "-std=gnu89" } */ extern long long foo (); diff --git a/gcc/testsuite/gcc.c-torture/compile/960106-1.c b/gcc/testsuite/gcc.c-torture/compile/960106-1.c index c8228aa..4f2f95d 100644 --- a/gcc/testsuite/gcc.c-torture/compile/960106-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/960106-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f (a) { return (a & 1) && !(a & 2 & 4); diff --git a/gcc/testsuite/gcc.c-torture/compile/960319-1.c b/gcc/testsuite/gcc.c-torture/compile/960319-1.c index f3d95ab..345f8b9 100644 --- a/gcc/testsuite/gcc.c-torture/compile/960319-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/960319-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + static void f() { diff --git a/gcc/testsuite/gcc.c-torture/compile/960829-1.c b/gcc/testsuite/gcc.c-torture/compile/960829-1.c index 8c6163d..8bd71b0 100644 --- a/gcc/testsuite/gcc.c-torture/compile/960829-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/960829-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f () { g (0, 0.0, 0.0, 0.0, 0.0); diff --git a/gcc/testsuite/gcc.c-torture/compile/970206-1.c b/gcc/testsuite/gcc.c-torture/compile/970206-1.c index 95196cd..233d330 100644 --- a/gcc/testsuite/gcc.c-torture/compile/970206-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/970206-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + struct Rect { int iA; diff --git a/gcc/testsuite/gcc.c-torture/compile/980825-1.c b/gcc/testsuite/gcc.c-torture/compile/980825-1.c index 34e35bf..4b3831c3 100644 --- a/gcc/testsuite/gcc.c-torture/compile/980825-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/980825-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef enum { FALSE, TRUE } boolean; enum _errorTypes { FATAL = 1, WARNING = 2, PERROR = 4 }; typedef struct _optionValues { diff --git a/gcc/testsuite/gcc.c-torture/compile/990829-1.c b/gcc/testsuite/gcc.c-torture/compile/990829-1.c index 2252821..97579f0 100644 --- a/gcc/testsuite/gcc.c-torture/compile/990829-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/990829-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + struct x { int a:16; diff --git a/gcc/testsuite/gcc.c-torture/compile/991213-2.c b/gcc/testsuite/gcc.c-torture/compile/991213-2.c index dfbedf7d..d528530 100644 --- a/gcc/testsuite/gcc.c-torture/compile/991213-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/991213-2.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target indirect_calls } */ +/* { dg-additional-options "-std=gnu89" } */ typedef long __kernel_time_t; typedef __kernel_time_t time_t; |