From: Florian Weimer Date: Sat, 21 Oct 2023 08:16:04 +0000 (+0200) Subject: C99 testsuite readiness: Compile more tests with -std=gnu89 X-Git-Tag: basepoints/gcc-15~5326 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57cbb1d3344116020e7448305d2aa904c1a4cd85;p=thirdparty%2Fgcc.git 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. --- diff --git a/gcc/testsuite/gcc.c-torture/compile/20000403-1.c b/gcc/testsuite/gcc.c-torture/compile/20000403-1.c index cb56028fb8b7..ef8f77d3d9b5 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 11c131522e6e..cbabe2fde1cd 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 95bb0fafd704..c6f6497b7a72 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 df01e6847e3d..ee70a2845807 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 b93d8a18d5e3..15b078728fa2 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 4df7d18721a2..cee438181cb2 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 11bc3af9fc6d..10c461998db5 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 bcca4c85dc6c..733e0d7fe8f0 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 8edbd92bd476..1da81183d6cc 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 38b6598af146..fa38025a7400 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 74c031c3d867..15c2cd54eb0c 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 45c82779400d..6f53079332c3 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 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 df8390f207b6..d6ed37698c67 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 f0c85f0ada5e..d7f4b10e1d45 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 e6982c3e3b3f..975717588ad7 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 158596c8f2da..c99fc3372a74 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 1df5098fdb65..017bb1e438a6 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 deea85ee2f45..6b0017d0ee93 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 8a4bfb74e783..8796599af54c 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 12252b4b2290..82552dc9e6dc 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 fdf47791cd74..07cbe0774b5b 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 69e961447452..b51b870208e1 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 ef2bdb8b7e7a..b6b86869943f 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 96ac7fe9be47..261020a0ea71 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 fdc478a382c8..32b17cbc5385 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 ff3137992809..4aa4f60086eb 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 69b1d979aa90..47da940247c2 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 84cc122070b6..6215852810e4 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 b5a6798ecc21..e7670e33ddbc 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 81fd66401d5d..aaae9d34716e 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 f82b7524b249..732ef0f6e28d 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 70f7c0af505b..e2110b7bade1 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(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 170d05017611..dcbb039cc88b 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 d0a406381ffa..dcf00efef9bf 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 0fac5f3495f5..08b85359a096 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 ec2405a7b639..7156702a172b 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 d3aa1e26d816..20c2f6ee5ff3 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<>-5;} diff --git a/gcc/testsuite/gcc.c-torture/compile/920706-1.c b/gcc/testsuite/gcc.c-torture/compile/920706-1.c index 13b0ff1e0ba9..b5e4fa02189d 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 dcaf1bea3cf1..782bac654cf3 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 2d778759e13c..4295124231ae 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 17510a968213..72b8e307183c 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 ad35e1210032..fe5af522b893 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 31a57339ea92..be8073096257 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 945c521292ff..c990e087bb31 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 139f60e6f5eb..28e521199661 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 a0964f90f446..ba7c868f0722 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 b9f9dcbaeb06..f38c7cdafe0d 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 7b5cb6b9f179..4f7d797343df 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 18dffeb9dd34..2cd6de53d1cb 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 e723246d6b2e..0d5ff9561225 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 578e91aaf831..0dbb9cc53081 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 eda43451f257..be04e6894dad 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 11b467460b34..798afe6fc47c 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 9eac91cb5c2e..49b4d4fd6c96 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 857c74e74f1c..d45fdf4118cb 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 d97ddf6144e5..83a3ad4f81c9 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 97d482b633c8..2ad14402b333 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 50fe3eb0b6f0..5e60541f3371 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 929afb1bdde8..88b22c884e9e 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 10fa5ea6479f..4e9c3e0bab2d 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 dbd15a1bd0a1..e5ce10ee5713 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 28574191d139..5661cdf32196 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 06466f5e5871..d8a023c58497 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 b29543c529ed..e1dbc1fbb5b2 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 a1d8df87c4b7..c4fd6a482414 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 0f64a0407128..cdad9f51e476 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 24cea5027ab5..f493d49d9fe4 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 6dd87eefc7ca..cf1a17136e7d 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 53b633785aec..ad084ca7669d 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 1b0ea34f0385..7eb58f8a3b82 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 bc982acffba9..aa56fe5f4638 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 a7f508c82662..d81ae0586991 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 848e0400ece2..6d07c98ad598 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 5a0eb2189bab..3045e4072cd7 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 74c215725504..fa728f257e8a 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 dd45bbccc38d..7736fa95e5b5 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 637b9aa6d262..b14e92027dd4 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 c237c0b73415..ab6138b22d07 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 8fc0db492aba..8c78fdef7e30 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 f39b271645d8..10ba03f98901 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 3007ff582e0d..b4fef4e8da77 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 505280fa91ef..82953b1a4e6d 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 d31701572fc7..760c8aadd5ce 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 01e9a672e880..c7ac0ac8ba86 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 6dcb89395e3a..db1ac6c3a0fb 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 9c4cec8b7a05..f7cdcc002ee6 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 3f0c28bef12f..22ed2c4d091a 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 5c2e0b68c569..78f7c05ce12e 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 e723954a0c17..1467e7a5a950 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 63ec6b281209..adb3ad57fc16 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 cb3cb0a59d69..93e5e712b5dc 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 4229da4e9bfb..3b832865e0db 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 e1ac117daeb6..ce5c7e157faa 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 1be2aa55e681..75204bca651b 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 73c52f7740a1..ecd987e89528 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 09cba20c1d0d..ee3b261dd4b6 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 f1818e322cf1..60a2969e120f 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 c8228aab5879..4f2f95de1017 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 f3d95ab6e8e1..345f8b92a314 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 8c6163dfaf09..8bd71b077720 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 95196cd6a54e..233d3305595d 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 34e35bf83c4c..4b3831c3a819 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 2252821938eb..97579f073f14 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 dfbedf7d6741..d52853055189 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;