From: Florian Weimer Date: Mon, 13 Nov 2023 07:54:11 +0000 (+0100) Subject: C99 testsuite readiness: Compile more tests with -std=gnu89 X-Git-Tag: basepoints/gcc-15~4758 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=adb562b6703ee490aea56d2161428e3659fde592;p=thirdparty%2Fgcc.git C99 testsuite readiness: Compile more tests with -std=gnu89 gcc/testsuite/ * gcc.c-torture/compile/386.c: Compile with -std=gnu89. * gcc.c-torture/compile/BUG1.c: Likewise. * gcc.c-torture/compile/BUG11.c: Likewise. * gcc.c-torture/compile/BUG16.c: Likewise. * gcc.c-torture/compile/BUG2.c: Likewise. * gcc.c-torture/compile/BUG24.c: Likewise. * gcc.c-torture/compile/BUG25.c: Likewise. * gcc.c-torture/compile/BUG3.c: Likewise. * gcc.c-torture/compile/DFcmp.c: Likewise. * gcc.c-torture/compile/HIcmp.c: Likewise. * gcc.c-torture/compile/HIset.c: Likewise. * gcc.c-torture/compile/QIcmp.c: Likewise. * gcc.c-torture/compile/QIset.c: Likewise. * gcc.c-torture/compile/SFset.c: Likewise. * gcc.c-torture/compile/SIcmp.c: Likewise. * gcc.c-torture/compile/SIset.c: Likewise. * gcc.c-torture/compile/UHIcmp.c: Likewise. * gcc.c-torture/compile/UQIcmp.c: Likewise. * gcc.c-torture/compile/USIcmp.c: Likewise. * gcc.c-torture/compile/a.c: Likewise. * gcc.c-torture/compile/a1.c: Likewise. * gcc.c-torture/compile/a3.c: Likewise. * gcc.c-torture/compile/aa.c: Likewise. * gcc.c-torture/compile/aaa.c: Likewise. * gcc.c-torture/compile/abs.c: Likewise. * gcc.c-torture/compile/ac.c: Likewise. * gcc.c-torture/compile/acc.c: Likewise. * gcc.c-torture/compile/add.c: Likewise. * gcc.c-torture/compile/add386.c: Likewise. * gcc.c-torture/compile/addcc.c: Likewise. * gcc.c-torture/compile/andm.c: Likewise. * gcc.c-torture/compile/andmem.c: Likewise. * gcc.c-torture/compile/andn.c: Likewise. * gcc.c-torture/compile/andok.c: Likewise. * gcc.c-torture/compile/andsi.c: Likewise. * gcc.c-torture/compile/andsparc.c: Likewise. * gcc.c-torture/compile/aos.c: Likewise. * gcc.c-torture/compile/arr.c: Likewise. * gcc.c-torture/compile/as.c: Likewise. * gcc.c-torture/compile/ase.c: Likewise. * gcc.c-torture/compile/band.c: Likewise. * gcc.c-torture/compile/bb0.c: Likewise. * gcc.c-torture/compile/bb1.c: Likewise. * gcc.c-torture/compile/bc.c: Likewise. * gcc.c-torture/compile/bcopy.c: Likewise. * gcc.c-torture/compile/bfx.c: Likewise. * gcc.c-torture/compile/bge.c: Likewise. * gcc.c-torture/compile/bit.c: Likewise. * gcc.c-torture/compile/bitf.c: Likewise. * gcc.c-torture/compile/bitw.c: Likewise. * gcc.c-torture/compile/blk.c: Likewise. * gcc.c-torture/compile/bt386.c: Likewise. * gcc.c-torture/compile/bug.c: Likewise. * gcc.c-torture/compile/buns.c: Likewise. * gcc.c-torture/compile/c.c: Likewise. * gcc.c-torture/compile/c2.c: Likewise. * gcc.c-torture/compile/call.c: Likewise. * gcc.c-torture/compile/callind.c: Likewise. * gcc.c-torture/compile/calls-void.c: Likewise. * gcc.c-torture/compile/calls.c: Likewise. * gcc.c-torture/compile/cc.c: Likewise. * gcc.c-torture/compile/cmb.c: Likewise. * gcc.c-torture/compile/cmpsi386.c: Likewise. * gcc.c-torture/compile/cmul.c: Likewise. * gcc.c-torture/compile/comb.c: Likewise. * gcc.c-torture/compile/consec.c: Likewise. * gcc.c-torture/compile/const.c: Likewise. * gcc.c-torture/compile/conv_tst.c: Likewise. * gcc.c-torture/compile/cvt.c: Likewise. * gcc.c-torture/compile/dbl_parm.c: Likewise. * gcc.c-torture/compile/dblbug.c: Likewise. * gcc.c-torture/compile/dead.c: Likewise. * gcc.c-torture/compile/delay.c: Likewise. * gcc.c-torture/compile/di.c: Likewise. * gcc.c-torture/compile/div.c: Likewise. * gcc.c-torture/compile/dm.c: Likewise. * gcc.c-torture/compile/dshift.c: Likewise. * gcc.c-torture/compile/e.c: Likewise. * gcc.c-torture/compile/ex.c: Likewise. * gcc.c-torture/compile/ext.c: Likewise. * gcc.c-torture/compile/flo.c: Likewise. * gcc.c-torture/compile/forgetcc.c: Likewise. * gcc.c-torture/compile/g.c: Likewise. * gcc.c-torture/compile/gen_tst.c: Likewise. * gcc.c-torture/compile/gronk.c: Likewise. * gcc.c-torture/compile/hi.c: Likewise. * gcc.c-torture/compile/i.c: Likewise. * gcc.c-torture/compile/icmp.c: Likewise. * gcc.c-torture/compile/ifreg.c: Likewise. * gcc.c-torture/compile/jumptab.c: Likewise. * gcc.c-torture/compile/l.c: Likewise. * gcc.c-torture/compile/layout.c: Likewise. * gcc.c-torture/compile/lll.c: Likewise. * gcc.c-torture/compile/load8.c: Likewise. * gcc.c-torture/compile/loadhicc.c: Likewise. * gcc.c-torture/compile/log2.c: Likewise. * gcc.c-torture/compile/logic.c: Likewise. * gcc.c-torture/compile/loop-1.c: Likewise. * gcc.c-torture/compile/loop386.c: Likewise. * gcc.c-torture/compile/lop.c: Likewise. * gcc.c-torture/compile/m1.c: Likewise. * gcc.c-torture/compile/m5.c: Likewise. * gcc.c-torture/compile/m68.c: Likewise. * gcc.c-torture/compile/mbyte.c: Likewise. * gcc.c-torture/compile/mcmp.c: Likewise. * gcc.c-torture/compile/mm.c: Likewise. * gcc.c-torture/compile/mod.c: Likewise. * gcc.c-torture/compile/modcc.c: Likewise. * gcc.c-torture/compile/move.c: Likewise. * gcc.c-torture/compile/move_qhi.c: Likewise. * gcc.c-torture/compile/mregtst.c: Likewise. * gcc.c-torture/compile/mu.c: Likewise. * gcc.c-torture/compile/mword.c: Likewise. * gcc.c-torture/compile/n.c: Likewise. * gcc.c-torture/compile/n1.c: Likewise. * gcc.c-torture/compile/nand.c: Likewise. * gcc.c-torture/compile/neg.c: Likewise. * gcc.c-torture/compile/o.c: Likewise. * gcc.c-torture/compile/omit.c: Likewise. * gcc.c-torture/compile/opout.c: Likewise. * gcc.c-torture/compile/opt.c: Likewise. * gcc.c-torture/compile/or.c: Likewise. * gcc.c-torture/compile/or386.c: Likewise. * gcc.c-torture/compile/p.c: Likewise. * gcc.c-torture/compile/parms.c: Likewise. * gcc.c-torture/compile/pass.c: Likewise. * gcc.c-torture/compile/pp.c: Likewise. * gcc.c-torture/compile/pret-arg.c: Likewise. * gcc.c-torture/compile/pyr.c: Likewise. * gcc.c-torture/compile/pyr2.c: Likewise. * gcc.c-torture/compile/r.c: Likewise. * gcc.c-torture/compile/r1.c: Likewise. * gcc.c-torture/compile/rmsc.c: Likewise. * gcc.c-torture/compile/round.c: Likewise. * gcc.c-torture/compile/sc.c: Likewise. * gcc.c-torture/compile/scal.c: Likewise. * gcc.c-torture/compile/scc.c: Likewise. * gcc.c-torture/compile/scond.c: Likewise. * gcc.c-torture/compile/seq.c: Likewise. * gcc.c-torture/compile/set386.c: Likewise. * gcc.c-torture/compile/set88.c: Likewise. * gcc.c-torture/compile/sh.c: Likewise. * gcc.c-torture/compile/shand.c: Likewise. * gcc.c-torture/compile/shft.c: Likewise. * gcc.c-torture/compile/shift.c: Likewise. * gcc.c-torture/compile/signext.c: Likewise. * gcc.c-torture/compile/signext2.c: Likewise. * gcc.c-torture/compile/simple.c: Likewise. * gcc.c-torture/compile/sparcbug.c: Likewise. * gcc.c-torture/compile/stor.c: Likewise. * gcc.c-torture/compile/str.c: Likewise. * gcc.c-torture/compile/structret.c: Likewise. * gcc.c-torture/compile/sub32.c: Likewise. * gcc.c-torture/compile/subcc.c: Likewise. * gcc.c-torture/compile/subcse.c: Likewise. * gcc.c-torture/compile/sym.c: Likewise. * gcc.c-torture/compile/symconst.c: Likewise. * gcc.c-torture/compile/t.c: Likewise. * gcc.c-torture/compile/test-flow.c: Likewise. * gcc.c-torture/compile/test-loop.c: Likewise. * gcc.c-torture/compile/test.c: Likewise. * gcc.c-torture/compile/tmp.c: Likewise. * gcc.c-torture/compile/trivial.c: Likewise. * gcc.c-torture/compile/trunc.c: Likewise. * gcc.c-torture/compile/u.c: Likewise. * gcc.c-torture/compile/uns.c: Likewise. * gcc.c-torture/compile/uns_tst.c: Likewise. * gcc.c-torture/compile/uuarg.c: Likewise. * gcc.c-torture/compile/volatile-1.c: Likewise. * gcc.c-torture/compile/ww.c: Likewise. * gcc.c-torture/compile/x.c: Likewise. * gcc.c-torture/compile/xb.c: Likewise. * gcc.c-torture/compile/xc.c: Likewise. * gcc.c-torture/compile/xdi.c: Likewise. * gcc.c-torture/compile/xfoo.c: Likewise. * gcc.c-torture/compile/xi.c: Likewise. * gcc.c-torture/compile/xlop.c: Likewise. * gcc.c-torture/compile/xneg.c: Likewise. * gcc.c-torture/compile/xopt.c: Likewise. * gcc.c-torture/compile/xor.c: Likewise. * gcc.c-torture/compile/xorn.c: Likewise. * gcc.c-torture/compile/xp.c: Likewise. * gcc.c-torture/compile/xpp.c: Likewise. * gcc.c-torture/compile/xs.c: Likewise. * gcc.c-torture/compile/xsh.c: Likewise. * gcc.c-torture/compile/xzz.c: Likewise. * gcc.c-torture/compile/zero-strct-1.c: Likewise. * gcc.c-torture/execute/20000717-3.c: Likewise. * gcc.c-torture/execute/920409-1.c: Likewise. * gcc.c-torture/execute/920411-1.c: Likewise. * gcc.c-torture/execute/920415-1.c: Likewise. * gcc.c-torture/execute/920428-1.c: Likewise. * gcc.c-torture/execute/920428-2.c: Likewise. * gcc.c-torture/execute/920429-1.c: Likewise. * gcc.c-torture/execute/920501-1.c: Likewise. * gcc.c-torture/execute/920501-7.c: Likewise. * gcc.c-torture/execute/920501-9.c: Likewise. * gcc.c-torture/execute/920520-1.c: Likewise. * gcc.c-torture/execute/920603-1.c: Likewise. * gcc.c-torture/execute/920721-2.c: Likewise. * gcc.c-torture/execute/920721-3.c: Likewise. * gcc.c-torture/execute/920728-1.c: Likewise. * gcc.c-torture/execute/920730-1.c: Likewise. * gcc.c-torture/execute/920731-1.c: Likewise. * gcc.c-torture/execute/920812-1.c: Likewise. * gcc.c-torture/execute/920909-1.c: Likewise. * gcc.c-torture/execute/921013-1.c: Likewise. * gcc.c-torture/execute/921017-1.c: Likewise. * gcc.c-torture/execute/921123-1.c: Likewise. * gcc.c-torture/execute/921124-1.c: Likewise. * gcc.c-torture/execute/921202-1.c: Likewise. * gcc.c-torture/execute/921207-1.c: Likewise. * gcc.c-torture/execute/921208-2.c: Likewise. * gcc.c-torture/execute/921215-1.c: Likewise. * gcc.c-torture/execute/921218-1.c: Likewise. * gcc.c-torture/execute/921218-2.c: Likewise. * gcc.c-torture/execute/930106-1.c: Likewise. * gcc.c-torture/execute/930429-2.c: Likewise. * gcc.c-torture/execute/930513-1.c: Likewise. * gcc.c-torture/execute/930513-2.c: Likewise. * gcc.c-torture/execute/930518-1.c: Likewise. * gcc.c-torture/execute/930527-1.c: Likewise. * gcc.c-torture/execute/930603-1.c: Likewise. * gcc.c-torture/execute/930603-3.c: Likewise. * gcc.c-torture/execute/930621-1.c: Likewise. * gcc.c-torture/execute/930622-1.c: Likewise. * gcc.c-torture/execute/930630-1.c: Likewise. * gcc.c-torture/execute/930713-1.c: Likewise. * gcc.c-torture/execute/930718-1.c: Likewise. * gcc.c-torture/execute/930719-1.c: Likewise. * gcc.c-torture/execute/930916-1.c: Likewise. * gcc.c-torture/execute/930921-1.c: Likewise. * gcc.c-torture/execute/930929-1.c: Likewise. * gcc.c-torture/execute/930930-1.c: Likewise. * gcc.c-torture/execute/931009-1.c: Likewise. * gcc.c-torture/execute/931012-1.c: Likewise. * gcc.c-torture/execute/931031-1.c: Likewise. * gcc.c-torture/execute/931102-1.c: Likewise. * gcc.c-torture/execute/931102-2.c: Likewise. * gcc.c-torture/execute/931228-1.c: Likewise. * gcc.c-torture/execute/940115-1.c: Likewise. * gcc.c-torture/execute/940122-1.c: Likewise. * gcc.c-torture/execute/941202-1.c: Likewise. * gcc.c-torture/execute/950605-1.c: Likewise. * gcc.c-torture/execute/960830-1.c: Likewise. * gcc.c-torture/execute/961112-1.c: Likewise. * gcc.c-torture/execute/990106-1.c: Likewise. * gcc.c-torture/execute/cmpdi-1.c: Likewise. * gcc.c-torture/execute/comp-goto-2.c: Likewise. * gcc.c-torture/execute/dbra-1.c: Likewise. * gcc.c-torture/execute/inst-check.c: Likewise. * gcc.c-torture/execute/int-compare.c: Likewise. * gcc.c-torture/execute/loop-2.c: Likewise. * gcc.c-torture/execute/loop-2d.c: Likewise. * gcc.c-torture/execute/loop-3.c: Likewise. * gcc.c-torture/execute/loop-3b.c: Likewise. * gcc.c-torture/execute/loop-3c.c: Likewise. * gcc.c-torture/execute/mod-1.c: Likewise. * gcc.c-torture/execute/strct-pack-3.c: Likewise. * gcc.c-torture/execute/tstdi-1.c: Likewise. --- diff --git a/gcc/testsuite/gcc.c-torture/compile/386.c b/gcc/testsuite/gcc.c-torture/compile/386.c index 81fcea5f0e65..3d4799b83b66 100644 --- a/gcc/testsuite/gcc.c-torture/compile/386.c +++ b/gcc/testsuite/gcc.c-torture/compile/386.c @@ -1,4 +1,6 @@ /* { dg-require-effective-target untyped_assembly } */ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, p) int *p; { diff --git a/gcc/testsuite/gcc.c-torture/compile/BUG1.c b/gcc/testsuite/gcc.c-torture/compile/BUG1.c index ada8eaf49c71..71ae93116a5e 100644 --- a/gcc/testsuite/gcc.c-torture/compile/BUG1.c +++ b/gcc/testsuite/gcc.c-torture/compile/BUG1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + struct _XtTextSource { /* ... */ void (* SetSelection)(); diff --git a/gcc/testsuite/gcc.c-torture/compile/BUG11.c b/gcc/testsuite/gcc.c-torture/compile/BUG11.c index fe2923a97f0c..2d11c4be5fa8 100644 --- a/gcc/testsuite/gcc.c-torture/compile/BUG11.c +++ b/gcc/testsuite/gcc.c-torture/compile/BUG11.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + #define DD 2410065408 unsigned diff --git a/gcc/testsuite/gcc.c-torture/compile/BUG16.c b/gcc/testsuite/gcc.c-torture/compile/BUG16.c index daeae2ca562a..2becfb3caf82 100644 --- a/gcc/testsuite/gcc.c-torture/compile/BUG16.c +++ b/gcc/testsuite/gcc.c-torture/compile/BUG16.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + setgetlen (a) int *a; { diff --git a/gcc/testsuite/gcc.c-torture/compile/BUG2.c b/gcc/testsuite/gcc.c-torture/compile/BUG2.c index 6dc30be65023..63b9df8c80d3 100644 --- a/gcc/testsuite/gcc.c-torture/compile/BUG2.c +++ b/gcc/testsuite/gcc.c-torture/compile/BUG2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + BUG2 (p) int *p; { int a = 0; diff --git a/gcc/testsuite/gcc.c-torture/compile/BUG24.c b/gcc/testsuite/gcc.c-torture/compile/BUG24.c index 7627a3ddcdd7..5d6c42c0657b 100644 --- a/gcc/testsuite/gcc.c-torture/compile/BUG24.c +++ b/gcc/testsuite/gcc.c-torture/compile/BUG24.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + struct ack { char a, b, c; }; diff --git a/gcc/testsuite/gcc.c-torture/compile/BUG25.c b/gcc/testsuite/gcc.c-torture/compile/BUG25.c index 574417061255..e8ea89c00afa 100644 --- a/gcc/testsuite/gcc.c-torture/compile/BUG25.c +++ b/gcc/testsuite/gcc.c-torture/compile/BUG25.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu89" } */ foo (a) { diff --git a/gcc/testsuite/gcc.c-torture/compile/BUG3.c b/gcc/testsuite/gcc.c-torture/compile/BUG3.c index 30e6622a5667..0848face29b2 100644 --- a/gcc/testsuite/gcc.c-torture/compile/BUG3.c +++ b/gcc/testsuite/gcc.c-torture/compile/BUG3.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + BUG2 (p) char *p; { int a = 0; diff --git a/gcc/testsuite/gcc.c-torture/compile/DFcmp.c b/gcc/testsuite/gcc.c-torture/compile/DFcmp.c index 808874de1a88..aaf2148cd891 100644 --- a/gcc/testsuite/gcc.c-torture/compile/DFcmp.c +++ b/gcc/testsuite/gcc.c-torture/compile/DFcmp.c @@ -1,5 +1,6 @@ /* { dg-require-effective-target int32plus } */ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ #define type double diff --git a/gcc/testsuite/gcc.c-torture/compile/HIcmp.c b/gcc/testsuite/gcc.c-torture/compile/HIcmp.c index 6e68271a0094..33550a7ae918 100644 --- a/gcc/testsuite/gcc.c-torture/compile/HIcmp.c +++ b/gcc/testsuite/gcc.c-torture/compile/HIcmp.c @@ -1,4 +1,5 @@ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ #define type short diff --git a/gcc/testsuite/gcc.c-torture/compile/HIset.c b/gcc/testsuite/gcc.c-torture/compile/HIset.c index a0d426c2c077..c1702bf152eb 100644 --- a/gcc/testsuite/gcc.c-torture/compile/HIset.c +++ b/gcc/testsuite/gcc.c-torture/compile/HIset.c @@ -1,4 +1,5 @@ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ #define E0 ((type *)10000000) #define reg0 r0 diff --git a/gcc/testsuite/gcc.c-torture/compile/QIcmp.c b/gcc/testsuite/gcc.c-torture/compile/QIcmp.c index a4dba2487e42..de0d35acfcc3 100644 --- a/gcc/testsuite/gcc.c-torture/compile/QIcmp.c +++ b/gcc/testsuite/gcc.c-torture/compile/QIcmp.c @@ -1,4 +1,5 @@ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ #define type signed char diff --git a/gcc/testsuite/gcc.c-torture/compile/QIset.c b/gcc/testsuite/gcc.c-torture/compile/QIset.c index e2fde2bda7e1..940dd4da3215 100644 --- a/gcc/testsuite/gcc.c-torture/compile/QIset.c +++ b/gcc/testsuite/gcc.c-torture/compile/QIset.c @@ -1,4 +1,5 @@ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ #define E0 ((type *)10000000) #define reg0 r0 diff --git a/gcc/testsuite/gcc.c-torture/compile/SFset.c b/gcc/testsuite/gcc.c-torture/compile/SFset.c index a7efecf97178..f946c557fa8f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/SFset.c +++ b/gcc/testsuite/gcc.c-torture/compile/SFset.c @@ -1,5 +1,6 @@ /* { dg-require-effective-target int32plus } */ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ #define E0 ((type *)10000000) #define reg0 r0 diff --git a/gcc/testsuite/gcc.c-torture/compile/SIcmp.c b/gcc/testsuite/gcc.c-torture/compile/SIcmp.c index ce1281b60938..d87e1f415629 100644 --- a/gcc/testsuite/gcc.c-torture/compile/SIcmp.c +++ b/gcc/testsuite/gcc.c-torture/compile/SIcmp.c @@ -1,4 +1,5 @@ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ #define type int diff --git a/gcc/testsuite/gcc.c-torture/compile/SIset.c b/gcc/testsuite/gcc.c-torture/compile/SIset.c index b200a264b954..239dcfc4be08 100644 --- a/gcc/testsuite/gcc.c-torture/compile/SIset.c +++ b/gcc/testsuite/gcc.c-torture/compile/SIset.c @@ -1,4 +1,5 @@ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ #define E0 ((type *)10000000) #define reg0 r0 diff --git a/gcc/testsuite/gcc.c-torture/compile/UHIcmp.c b/gcc/testsuite/gcc.c-torture/compile/UHIcmp.c index b0029d23ea4f..47f3999e75d5 100644 --- a/gcc/testsuite/gcc.c-torture/compile/UHIcmp.c +++ b/gcc/testsuite/gcc.c-torture/compile/UHIcmp.c @@ -1,4 +1,5 @@ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ #define type unsigned short diff --git a/gcc/testsuite/gcc.c-torture/compile/UQIcmp.c b/gcc/testsuite/gcc.c-torture/compile/UQIcmp.c index e28d13b03abc..55c0fad59975 100644 --- a/gcc/testsuite/gcc.c-torture/compile/UQIcmp.c +++ b/gcc/testsuite/gcc.c-torture/compile/UQIcmp.c @@ -1,4 +1,5 @@ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ #define type unsigned char diff --git a/gcc/testsuite/gcc.c-torture/compile/USIcmp.c b/gcc/testsuite/gcc.c-torture/compile/USIcmp.c index 27e5503bd4d4..0f390f3f6c2a 100644 --- a/gcc/testsuite/gcc.c-torture/compile/USIcmp.c +++ b/gcc/testsuite/gcc.c-torture/compile/USIcmp.c @@ -1,4 +1,5 @@ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ #define type unsigned int diff --git a/gcc/testsuite/gcc.c-torture/compile/a.c b/gcc/testsuite/gcc.c-torture/compile/a.c index 47fb1f493f22..00c5aa891c2e 100644 --- a/gcc/testsuite/gcc.c-torture/compile/a.c +++ b/gcc/testsuite/gcc.c-torture/compile/a.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { return a & 65535; diff --git a/gcc/testsuite/gcc.c-torture/compile/a1.c b/gcc/testsuite/gcc.c-torture/compile/a1.c index 654781d05eae..f2fc86d3a784 100644 --- a/gcc/testsuite/gcc.c-torture/compile/a1.c +++ b/gcc/testsuite/gcc.c-torture/compile/a1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + int foo (a, p) int *p; diff --git a/gcc/testsuite/gcc.c-torture/compile/a3.c b/gcc/testsuite/gcc.c-torture/compile/a3.c index 85d2a242630f..adbafcfd2a38 100644 --- a/gcc/testsuite/gcc.c-torture/compile/a3.c +++ b/gcc/testsuite/gcc.c-torture/compile/a3.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { int i; diff --git a/gcc/testsuite/gcc.c-torture/compile/aa.c b/gcc/testsuite/gcc.c-torture/compile/aa.c index 61a4147afa67..d9ae7e13679a 100644 --- a/gcc/testsuite/gcc.c-torture/compile/aa.c +++ b/gcc/testsuite/gcc.c-torture/compile/aa.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + #define w 20 #define c 1 diff --git a/gcc/testsuite/gcc.c-torture/compile/aaa.c b/gcc/testsuite/gcc.c-torture/compile/aaa.c index e31fb567c1c5..a587b39e4c7a 100644 --- a/gcc/testsuite/gcc.c-torture/compile/aaa.c +++ b/gcc/testsuite/gcc.c-torture/compile/aaa.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) { int t; diff --git a/gcc/testsuite/gcc.c-torture/compile/abs.c b/gcc/testsuite/gcc.c-torture/compile/abs.c index 6a746b126393..231225fa9d41 100644 --- a/gcc/testsuite/gcc.c-torture/compile/abs.c +++ b/gcc/testsuite/gcc.c-torture/compile/abs.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { return __builtin_abs (a); diff --git a/gcc/testsuite/gcc.c-torture/compile/ac.c b/gcc/testsuite/gcc.c-torture/compile/ac.c index 1d3c085eec1c..4191116642c3 100644 --- a/gcc/testsuite/gcc.c-torture/compile/ac.c +++ b/gcc/testsuite/gcc.c-torture/compile/ac.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + barfoo (a) { return (a << 16) & ~0xffff; diff --git a/gcc/testsuite/gcc.c-torture/compile/acc.c b/gcc/testsuite/gcc.c-torture/compile/acc.c index a4a027a5fce3..a0b8bf625176 100644 --- a/gcc/testsuite/gcc.c-torture/compile/acc.c +++ b/gcc/testsuite/gcc.c-torture/compile/acc.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { int b = a + 1; diff --git a/gcc/testsuite/gcc.c-torture/compile/add.c b/gcc/testsuite/gcc.c-torture/compile/add.c index d796e41c7121..adb0c021566f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/add.c +++ b/gcc/testsuite/gcc.c-torture/compile/add.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/add386.c b/gcc/testsuite/gcc.c-torture/compile/add386.c index bfdffbfe2f21..c1de3fa6b8e2 100644 --- a/gcc/testsuite/gcc.c-torture/compile/add386.c +++ b/gcc/testsuite/gcc.c-torture/compile/add386.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + main (a) { return a + 128; diff --git a/gcc/testsuite/gcc.c-torture/compile/addcc.c b/gcc/testsuite/gcc.c-torture/compile/addcc.c index cf52307aa979..307bd5cc4148 100644 --- a/gcc/testsuite/gcc.c-torture/compile/addcc.c +++ b/gcc/testsuite/gcc.c-torture/compile/addcc.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (p, a, b) int *p; int a; diff --git a/gcc/testsuite/gcc.c-torture/compile/andm.c b/gcc/testsuite/gcc.c-torture/compile/andm.c index 17101ae30508..40a5505443dd 100644 --- a/gcc/testsuite/gcc.c-torture/compile/andm.c +++ b/gcc/testsuite/gcc.c-torture/compile/andm.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (p) int *p; { diff --git a/gcc/testsuite/gcc.c-torture/compile/andmem.c b/gcc/testsuite/gcc.c-torture/compile/andmem.c index 10bad00f4450..82775d1ca409 100644 --- a/gcc/testsuite/gcc.c-torture/compile/andmem.c +++ b/gcc/testsuite/gcc.c-torture/compile/andmem.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + void p1 (p) int *p; { *p &= ~0xff; } diff --git a/gcc/testsuite/gcc.c-torture/compile/andn.c b/gcc/testsuite/gcc.c-torture/compile/andn.c index 2e38dd0e36e0..40b41d78998d 100644 --- a/gcc/testsuite/gcc.c-torture/compile/andn.c +++ b/gcc/testsuite/gcc.c-torture/compile/andn.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { int b = 0x1fff; diff --git a/gcc/testsuite/gcc.c-torture/compile/andok.c b/gcc/testsuite/gcc.c-torture/compile/andok.c index d55bd01b70db..0a3626980fe8 100644 --- a/gcc/testsuite/gcc.c-torture/compile/andok.c +++ b/gcc/testsuite/gcc.c-torture/compile/andok.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/andsi.c b/gcc/testsuite/gcc.c-torture/compile/andsi.c index b9c3c76de03e..ff4a4045412d 100644 --- a/gcc/testsuite/gcc.c-torture/compile/andsi.c +++ b/gcc/testsuite/gcc.c-torture/compile/andsi.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo () { return (int)&foo; diff --git a/gcc/testsuite/gcc.c-torture/compile/andsparc.c b/gcc/testsuite/gcc.c-torture/compile/andsparc.c index 62f0de003b23..5b5647353711 100644 --- a/gcc/testsuite/gcc.c-torture/compile/andsparc.c +++ b/gcc/testsuite/gcc.c-torture/compile/andsparc.c @@ -1,3 +1,4 @@ +int foo (int *p) { int a, b; diff --git a/gcc/testsuite/gcc.c-torture/compile/aos.c b/gcc/testsuite/gcc.c-torture/compile/aos.c index 77c92f677e40..6323017b99e8 100644 --- a/gcc/testsuite/gcc.c-torture/compile/aos.c +++ b/gcc/testsuite/gcc.c-torture/compile/aos.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (p) int *p; { diff --git a/gcc/testsuite/gcc.c-torture/compile/arr.c b/gcc/testsuite/gcc.c-torture/compile/arr.c index ed56667dd75a..af65395ccf1d 100644 --- a/gcc/testsuite/gcc.c-torture/compile/arr.c +++ b/gcc/testsuite/gcc.c-torture/compile/arr.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b, c) { bar (a, b); diff --git a/gcc/testsuite/gcc.c-torture/compile/as.c b/gcc/testsuite/gcc.c-torture/compile/as.c index 172f88355d94..a1c001cf8a25 100644 --- a/gcc/testsuite/gcc.c-torture/compile/as.c +++ b/gcc/testsuite/gcc.c-torture/compile/as.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu89" } */ #define S 31 #define A 17 diff --git a/gcc/testsuite/gcc.c-torture/compile/ase.c b/gcc/testsuite/gcc.c-torture/compile/ase.c index 2d3d8edbd0bc..3f4e13d139b1 100644 --- a/gcc/testsuite/gcc.c-torture/compile/ase.c +++ b/gcc/testsuite/gcc.c-torture/compile/ase.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + ase (p) short *p; { diff --git a/gcc/testsuite/gcc.c-torture/compile/band.c b/gcc/testsuite/gcc.c-torture/compile/band.c index 74b02fd3b345..533a9ca1a8ca 100644 --- a/gcc/testsuite/gcc.c-torture/compile/band.c +++ b/gcc/testsuite/gcc.c-torture/compile/band.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { return (a & (1 << 31)) != 0; diff --git a/gcc/testsuite/gcc.c-torture/compile/bb0.c b/gcc/testsuite/gcc.c-torture/compile/bb0.c index aab6d683fbd0..41fad53390db 100644 --- a/gcc/testsuite/gcc.c-torture/compile/bb0.c +++ b/gcc/testsuite/gcc.c-torture/compile/bb0.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { return (a & 0xfff000) != 0; diff --git a/gcc/testsuite/gcc.c-torture/compile/bb1.c b/gcc/testsuite/gcc.c-torture/compile/bb1.c index 3f9aebe03646..a2b1713bba4e 100644 --- a/gcc/testsuite/gcc.c-torture/compile/bb1.c +++ b/gcc/testsuite/gcc.c-torture/compile/bb1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { int b = 32; diff --git a/gcc/testsuite/gcc.c-torture/compile/bc.c b/gcc/testsuite/gcc.c-torture/compile/bc.c index c713bb61b3dc..6f83a304d0fb 100644 --- a/gcc/testsuite/gcc.c-torture/compile/bc.c +++ b/gcc/testsuite/gcc.c-torture/compile/bc.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) { return a % (1 << b); diff --git a/gcc/testsuite/gcc.c-torture/compile/bcopy.c b/gcc/testsuite/gcc.c-torture/compile/bcopy.c index fce95c842f3f..6c7160e2d68f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/bcopy.c +++ b/gcc/testsuite/gcc.c-torture/compile/bcopy.c @@ -1,5 +1,6 @@ /* { dg-add-options stack_size } */ /* { dg-require-stack-size "[dg-effective-target-value stack_size]*2" } */ +/* { dg-additional-options "-std=gnu89" } */ void bcopy1 (s, d, c) diff --git a/gcc/testsuite/gcc.c-torture/compile/bfx.c b/gcc/testsuite/gcc.c-torture/compile/bfx.c index d47bd7d18bc9..4c1cd46ccb95 100644 --- a/gcc/testsuite/gcc.c-torture/compile/bfx.c +++ b/gcc/testsuite/gcc.c-torture/compile/bfx.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (x, c) { return x << -c; diff --git a/gcc/testsuite/gcc.c-torture/compile/bge.c b/gcc/testsuite/gcc.c-torture/compile/bge.c index 55f4788299a7..498ca43aa4ec 100644 --- a/gcc/testsuite/gcc.c-torture/compile/bge.c +++ b/gcc/testsuite/gcc.c-torture/compile/bge.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) double a; { diff --git a/gcc/testsuite/gcc.c-torture/compile/bit.c b/gcc/testsuite/gcc.c-torture/compile/bit.c index e76bb45e7cdf..cba02e92e85b 100644 --- a/gcc/testsuite/gcc.c-torture/compile/bit.c +++ b/gcc/testsuite/gcc.c-torture/compile/bit.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + bar (a) { return (a == 0); diff --git a/gcc/testsuite/gcc.c-torture/compile/bitf.c b/gcc/testsuite/gcc.c-torture/compile/bitf.c index 5b0aefc83d48..e6eea074bf0d 100644 --- a/gcc/testsuite/gcc.c-torture/compile/bitf.c +++ b/gcc/testsuite/gcc.c-torture/compile/bitf.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + #define int unsigned struct foo diff --git a/gcc/testsuite/gcc.c-torture/compile/bitw.c b/gcc/testsuite/gcc.c-torture/compile/bitw.c index 585cd32e6036..9b9f591dc044 100644 --- a/gcc/testsuite/gcc.c-torture/compile/bitw.c +++ b/gcc/testsuite/gcc.c-torture/compile/bitw.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) unsigned a; { diff --git a/gcc/testsuite/gcc.c-torture/compile/blk.c b/gcc/testsuite/gcc.c-torture/compile/blk.c index 18a9545cc289..08a2e1769d9d 100644 --- a/gcc/testsuite/gcc.c-torture/compile/blk.c +++ b/gcc/testsuite/gcc.c-torture/compile/blk.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + struct { double a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t; diff --git a/gcc/testsuite/gcc.c-torture/compile/bt386.c b/gcc/testsuite/gcc.c-torture/compile/bt386.c index 283ab5fa64ae..5ba2b794d0e0 100644 --- a/gcc/testsuite/gcc.c-torture/compile/bt386.c +++ b/gcc/testsuite/gcc.c-torture/compile/bt386.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) { return (a & (1 << b)) != 0; diff --git a/gcc/testsuite/gcc.c-torture/compile/bug.c b/gcc/testsuite/gcc.c-torture/compile/bug.c index 447eb7af297b..87f217144886 100644 --- a/gcc/testsuite/gcc.c-torture/compile/bug.c +++ b/gcc/testsuite/gcc.c-torture/compile/bug.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) { return a - 65536; diff --git a/gcc/testsuite/gcc.c-torture/compile/buns.c b/gcc/testsuite/gcc.c-torture/compile/buns.c index f206bfaed0c4..656796a6a7b1 100644 --- a/gcc/testsuite/gcc.c-torture/compile/buns.c +++ b/gcc/testsuite/gcc.c-torture/compile/buns.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { int bar = 0; diff --git a/gcc/testsuite/gcc.c-torture/compile/c.c b/gcc/testsuite/gcc.c-torture/compile/c.c index 384ee3e3cf34..43a548496da4 100644 --- a/gcc/testsuite/gcc.c-torture/compile/c.c +++ b/gcc/testsuite/gcc.c-torture/compile/c.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) long long a, b; { diff --git a/gcc/testsuite/gcc.c-torture/compile/c2.c b/gcc/testsuite/gcc.c-torture/compile/c2.c index ef5a71188d32..6fa022c133cc 100644 --- a/gcc/testsuite/gcc.c-torture/compile/c2.c +++ b/gcc/testsuite/gcc.c-torture/compile/c2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { bar (a); diff --git a/gcc/testsuite/gcc.c-torture/compile/call.c b/gcc/testsuite/gcc.c-torture/compile/call.c index 265193d4d6fb..cbe122ec6490 100644 --- a/gcc/testsuite/gcc.c-torture/compile/call.c +++ b/gcc/testsuite/gcc.c-torture/compile/call.c @@ -1,4 +1,5 @@ /* { dg-skip-if "requires untyped assembly" { ! untyped_assembly } { "-O0" } { "" } } */ +/* { dg-additional-options "-std=gnu89" } */ int foo () {} diff --git a/gcc/testsuite/gcc.c-torture/compile/callind.c b/gcc/testsuite/gcc.c-torture/compile/callind.c index 893f4e764acb..70e6093cf4f4 100644 --- a/gcc/testsuite/gcc.c-torture/compile/callind.c +++ b/gcc/testsuite/gcc.c-torture/compile/callind.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target indirect_calls } */ +/* { dg-additional-options "-std=gnu89" } */ bar (foo, a) int (**foo) (); diff --git a/gcc/testsuite/gcc.c-torture/compile/calls-void.c b/gcc/testsuite/gcc.c-torture/compile/calls-void.c index 7e6f56c16fb9..fc0a7ff6e1a0 100644 --- a/gcc/testsuite/gcc.c-torture/compile/calls-void.c +++ b/gcc/testsuite/gcc.c-torture/compile/calls-void.c @@ -1,6 +1,7 @@ /* { dg-require-effective-target ptr32plus } */ /* { dg-require-effective-target untyped_assembly } */ /* { dg-require-effective-target indirect_calls } */ +/* { dg-additional-options "-std=gnu89" } */ typedef void (*T)(void); f1 () diff --git a/gcc/testsuite/gcc.c-torture/compile/calls.c b/gcc/testsuite/gcc.c-torture/compile/calls.c index 48a3b7c77a53..75a4e10c744c 100644 --- a/gcc/testsuite/gcc.c-torture/compile/calls.c +++ b/gcc/testsuite/gcc.c-torture/compile/calls.c @@ -1,6 +1,7 @@ /* { dg-require-effective-target ptr32plus } */ /* { dg-require-effective-target untyped_assembly } */ /* { dg-require-effective-target indirect_calls } */ +/* { dg-additional-options "-std=gnu89" } */ typedef void *(*T)(void); f1 () diff --git a/gcc/testsuite/gcc.c-torture/compile/cc.c b/gcc/testsuite/gcc.c-torture/compile/cc.c index e29bec49d413..d86b7f748d66 100644 --- a/gcc/testsuite/gcc.c-torture/compile/cc.c +++ b/gcc/testsuite/gcc.c-torture/compile/cc.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + cc8 (a, b) { if (a < 0) diff --git a/gcc/testsuite/gcc.c-torture/compile/cmb.c b/gcc/testsuite/gcc.c-torture/compile/cmb.c index 1fd946182ba9..b1beb85a71c0 100644 --- a/gcc/testsuite/gcc.c-torture/compile/cmb.c +++ b/gcc/testsuite/gcc.c-torture/compile/cmb.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (p1, p2) short p1, *p2; { diff --git a/gcc/testsuite/gcc.c-torture/compile/cmpsi386.c b/gcc/testsuite/gcc.c-torture/compile/cmpsi386.c index c98b8626a872..a5eac8210f4d 100644 --- a/gcc/testsuite/gcc.c-torture/compile/cmpsi386.c +++ b/gcc/testsuite/gcc.c-torture/compile/cmpsi386.c @@ -1,4 +1,6 @@ /* { dg-require-effective-target untyped_assembly } */ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, p) register int a; int *p; diff --git a/gcc/testsuite/gcc.c-torture/compile/cmul.c b/gcc/testsuite/gcc.c-torture/compile/cmul.c index cce20bc358d6..5df970269fb7 100644 --- a/gcc/testsuite/gcc.c-torture/compile/cmul.c +++ b/gcc/testsuite/gcc.c-torture/compile/cmul.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { return a * 84; diff --git a/gcc/testsuite/gcc.c-torture/compile/comb.c b/gcc/testsuite/gcc.c-torture/compile/comb.c index a4689079b793..f39e769e2303 100644 --- a/gcc/testsuite/gcc.c-torture/compile/comb.c +++ b/gcc/testsuite/gcc.c-torture/compile/comb.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) { int c = a & b; diff --git a/gcc/testsuite/gcc.c-torture/compile/consec.c b/gcc/testsuite/gcc.c-torture/compile/consec.c index b8c376d70769..e0b76b23643a 100644 --- a/gcc/testsuite/gcc.c-torture/compile/consec.c +++ b/gcc/testsuite/gcc.c-torture/compile/consec.c @@ -1,5 +1,6 @@ /* { dg-require-effective-target untyped_assembly } */ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ int glob; diff --git a/gcc/testsuite/gcc.c-torture/compile/const.c b/gcc/testsuite/gcc.c-torture/compile/const.c index 209fc768887b..5cb90a56eb7f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/const.c +++ b/gcc/testsuite/gcc.c-torture/compile/const.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + main (a) { return a + (~0 - 240); diff --git a/gcc/testsuite/gcc.c-torture/compile/conv_tst.c b/gcc/testsuite/gcc.c-torture/compile/conv_tst.c index 28be66616908..bf1a69e72003 100644 --- a/gcc/testsuite/gcc.c-torture/compile/conv_tst.c +++ b/gcc/testsuite/gcc.c-torture/compile/conv_tst.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target untyped_assembly } */ +/* { dg-additional-options "-std=gnu89" } */ #define ID_1 2400000000.0 #define ID_2 1.7 diff --git a/gcc/testsuite/gcc.c-torture/compile/cvt.c b/gcc/testsuite/gcc.c-torture/compile/cvt.c index 716659c4798c..01ffc4513290 100644 --- a/gcc/testsuite/gcc.c-torture/compile/cvt.c +++ b/gcc/testsuite/gcc.c-torture/compile/cvt.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (p) unsigned char *p; { diff --git a/gcc/testsuite/gcc.c-torture/compile/dbl_parm.c b/gcc/testsuite/gcc.c-torture/compile/dbl_parm.c index ce5ba4f16d5f..b82d4e5c4c37 100644 --- a/gcc/testsuite/gcc.c-torture/compile/dbl_parm.c +++ b/gcc/testsuite/gcc.c-torture/compile/dbl_parm.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b, c) double a; int b; diff --git a/gcc/testsuite/gcc.c-torture/compile/dblbug.c b/gcc/testsuite/gcc.c-torture/compile/dblbug.c index cd13b796297a..223116f45d0c 100644 --- a/gcc/testsuite/gcc.c-torture/compile/dblbug.c +++ b/gcc/testsuite/gcc.c-torture/compile/dblbug.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + union real_extract { double d; diff --git a/gcc/testsuite/gcc.c-torture/compile/dead.c b/gcc/testsuite/gcc.c-torture/compile/dead.c index 795f7c7e467b..6085323e4aad 100644 --- a/gcc/testsuite/gcc.c-torture/compile/dead.c +++ b/gcc/testsuite/gcc.c-torture/compile/dead.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { ++a; diff --git a/gcc/testsuite/gcc.c-torture/compile/delay.c b/gcc/testsuite/gcc.c-torture/compile/delay.c index c776383520a3..4a152c5b3d62 100644 --- a/gcc/testsuite/gcc.c-torture/compile/delay.c +++ b/gcc/testsuite/gcc.c-torture/compile/delay.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) { if (a == 1) diff --git a/gcc/testsuite/gcc.c-torture/compile/di.c b/gcc/testsuite/gcc.c-torture/compile/di.c index 476bf700fb31..e74817f4461e 100644 --- a/gcc/testsuite/gcc.c-torture/compile/di.c +++ b/gcc/testsuite/gcc.c-torture/compile/di.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + long long foo (a, b) long long a, b; diff --git a/gcc/testsuite/gcc.c-torture/compile/div.c b/gcc/testsuite/gcc.c-torture/compile/div.c index 1f0904a649d3..c8f6762ea32e 100644 --- a/gcc/testsuite/gcc.c-torture/compile/div.c +++ b/gcc/testsuite/gcc.c-torture/compile/div.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) { return a / b; diff --git a/gcc/testsuite/gcc.c-torture/compile/dm.c b/gcc/testsuite/gcc.c-torture/compile/dm.c index 67c60ee98203..37a2e8f4b55f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/dm.c +++ b/gcc/testsuite/gcc.c-torture/compile/dm.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + struct dm { unsigned q; diff --git a/gcc/testsuite/gcc.c-torture/compile/dshift.c b/gcc/testsuite/gcc.c-torture/compile/dshift.c index 94750cc3cbcc..3257bd82094d 100644 --- a/gcc/testsuite/gcc.c-torture/compile/dshift.c +++ b/gcc/testsuite/gcc.c-torture/compile/dshift.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (b, c) unsigned b, c; { diff --git a/gcc/testsuite/gcc.c-torture/compile/e.c b/gcc/testsuite/gcc.c-torture/compile/e.c index fa20e00ef8f0..7e4052865c36 100644 --- a/gcc/testsuite/gcc.c-torture/compile/e.c +++ b/gcc/testsuite/gcc.c-torture/compile/e.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (short a, int *p, short *s) { int i; diff --git a/gcc/testsuite/gcc.c-torture/compile/ex.c b/gcc/testsuite/gcc.c-torture/compile/ex.c index 3753815837fc..3be7f9d1b632 100644 --- a/gcc/testsuite/gcc.c-torture/compile/ex.c +++ b/gcc/testsuite/gcc.c-torture/compile/ex.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target untyped_assembly } */ +/* { dg-additional-options "-std=gnu89" } */ foo (a, b) { diff --git a/gcc/testsuite/gcc.c-torture/compile/ext.c b/gcc/testsuite/gcc.c-torture/compile/ext.c index 9e8604ef2b2e..83423d76bc79 100644 --- a/gcc/testsuite/gcc.c-torture/compile/ext.c +++ b/gcc/testsuite/gcc.c-torture/compile/ext.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/flo.c b/gcc/testsuite/gcc.c-torture/compile/flo.c index 2a213b7ab793..b88f425b6a29 100644 --- a/gcc/testsuite/gcc.c-torture/compile/flo.c +++ b/gcc/testsuite/gcc.c-torture/compile/flo.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) double a; { diff --git a/gcc/testsuite/gcc.c-torture/compile/forgetcc.c b/gcc/testsuite/gcc.c-torture/compile/forgetcc.c index 4105408a0507..7738139d591c 100644 --- a/gcc/testsuite/gcc.c-torture/compile/forgetcc.c +++ b/gcc/testsuite/gcc.c-torture/compile/forgetcc.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (hp, p, a) short *hp; int *p; diff --git a/gcc/testsuite/gcc.c-torture/compile/g.c b/gcc/testsuite/gcc.c-torture/compile/g.c index e00f1244fc40..c9aaa6db1093 100644 --- a/gcc/testsuite/gcc.c-torture/compile/g.c +++ b/gcc/testsuite/gcc.c-torture/compile/g.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) long long a, b; diff --git a/gcc/testsuite/gcc.c-torture/compile/gen_tst.c b/gcc/testsuite/gcc.c-torture/compile/gen_tst.c index 5a7a3763a3ae..80984ebf8024 100644 --- a/gcc/testsuite/gcc.c-torture/compile/gen_tst.c +++ b/gcc/testsuite/gcc.c-torture/compile/gen_tst.c @@ -1,5 +1,6 @@ /* Compiler Test Generator Program. Copyright (C) 1989 FSF. */ +/* { dg-additional-options "-std=gnu89" } */ #define E0 ((type *)10000000) diff --git a/gcc/testsuite/gcc.c-torture/compile/gronk.c b/gcc/testsuite/gcc.c-torture/compile/gronk.c index c1bb767e5769..222b3d346405 100644 --- a/gcc/testsuite/gcc.c-torture/compile/gronk.c +++ b/gcc/testsuite/gcc.c-torture/compile/gronk.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + test_opt (a, b) unsigned a, b; { diff --git a/gcc/testsuite/gcc.c-torture/compile/hi.c b/gcc/testsuite/gcc.c-torture/compile/hi.c index 1624f7779956..f7c2bb7633c9 100644 --- a/gcc/testsuite/gcc.c-torture/compile/hi.c +++ b/gcc/testsuite/gcc.c-torture/compile/hi.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) short a, b; { diff --git a/gcc/testsuite/gcc.c-torture/compile/i.c b/gcc/testsuite/gcc.c-torture/compile/i.c index 3bee8eacb807..bfbe2745f602 100644 --- a/gcc/testsuite/gcc.c-torture/compile/i.c +++ b/gcc/testsuite/gcc.c-torture/compile/i.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + ase (p) short *p; { diff --git a/gcc/testsuite/gcc.c-torture/compile/icmp.c b/gcc/testsuite/gcc.c-torture/compile/icmp.c index dc9678ec3356..4015b5374fe5 100644 --- a/gcc/testsuite/gcc.c-torture/compile/icmp.c +++ b/gcc/testsuite/gcc.c-torture/compile/icmp.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) { b++; diff --git a/gcc/testsuite/gcc.c-torture/compile/ifreg.c b/gcc/testsuite/gcc.c-torture/compile/ifreg.c index 9e2f9562e385..a9bef17ff57f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/ifreg.c +++ b/gcc/testsuite/gcc.c-torture/compile/ifreg.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + union foo { float f; diff --git a/gcc/testsuite/gcc.c-torture/compile/jumptab.c b/gcc/testsuite/gcc.c-torture/compile/jumptab.c index d86c30e40d6a..2e7dcd2dd7c8 100644 --- a/gcc/testsuite/gcc.c-torture/compile/jumptab.c +++ b/gcc/testsuite/gcc.c-torture/compile/jumptab.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + jumptab (a) { int b; diff --git a/gcc/testsuite/gcc.c-torture/compile/l.c b/gcc/testsuite/gcc.c-torture/compile/l.c index cc23b190b1db..c5fbb99d291e 100644 --- a/gcc/testsuite/gcc.c-torture/compile/l.c +++ b/gcc/testsuite/gcc.c-torture/compile/l.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + main (a) { return - 256 + a; diff --git a/gcc/testsuite/gcc.c-torture/compile/layout.c b/gcc/testsuite/gcc.c-torture/compile/layout.c index 04c825df6451..c11da4e64a53 100644 --- a/gcc/testsuite/gcc.c-torture/compile/layout.c +++ b/gcc/testsuite/gcc.c-torture/compile/layout.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + struct foo { char a; diff --git a/gcc/testsuite/gcc.c-torture/compile/lll.c b/gcc/testsuite/gcc.c-torture/compile/lll.c index ea09c871c6b2..5e8c489ec049 100644 --- a/gcc/testsuite/gcc.c-torture/compile/lll.c +++ b/gcc/testsuite/gcc.c-torture/compile/lll.c @@ -1,4 +1,5 @@ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ byte_match_count2 (buf, n, xm, m1, m2, m3, m4) unsigned *buf; diff --git a/gcc/testsuite/gcc.c-torture/compile/load8.c b/gcc/testsuite/gcc.c-torture/compile/load8.c index 947a8165c29c..bfb8b0a78159 100644 --- a/gcc/testsuite/gcc.c-torture/compile/load8.c +++ b/gcc/testsuite/gcc.c-torture/compile/load8.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo () { return *(short *) 126; diff --git a/gcc/testsuite/gcc.c-torture/compile/loadhicc.c b/gcc/testsuite/gcc.c-torture/compile/loadhicc.c index a7540894f5e6..8005e2b2adcf 100644 --- a/gcc/testsuite/gcc.c-torture/compile/loadhicc.c +++ b/gcc/testsuite/gcc.c-torture/compile/loadhicc.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef int xtype; foo (p, pc) diff --git a/gcc/testsuite/gcc.c-torture/compile/log2.c b/gcc/testsuite/gcc.c-torture/compile/log2.c index 39b857840699..c24520faaedb 100644 --- a/gcc/testsuite/gcc.c-torture/compile/log2.c +++ b/gcc/testsuite/gcc.c-torture/compile/log2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + log2 (a, b) { int c; diff --git a/gcc/testsuite/gcc.c-torture/compile/logic.c b/gcc/testsuite/gcc.c-torture/compile/logic.c index a9d6e9d0c2d4..d11b1f929ab6 100644 --- a/gcc/testsuite/gcc.c-torture/compile/logic.c +++ b/gcc/testsuite/gcc.c-torture/compile/logic.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + logic (a, b) int *a, b; { diff --git a/gcc/testsuite/gcc.c-torture/compile/loop-1.c b/gcc/testsuite/gcc.c-torture/compile/loop-1.c index e50687a9fdd5..daa47f32d48a 100644 --- a/gcc/testsuite/gcc.c-torture/compile/loop-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/loop-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { while ((a -= 1) != -1) diff --git a/gcc/testsuite/gcc.c-torture/compile/loop386.c b/gcc/testsuite/gcc.c-torture/compile/loop386.c index 429a320abbda..ad2e81eff61d 100644 --- a/gcc/testsuite/gcc.c-torture/compile/loop386.c +++ b/gcc/testsuite/gcc.c-torture/compile/loop386.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { do diff --git a/gcc/testsuite/gcc.c-torture/compile/lop.c b/gcc/testsuite/gcc.c-torture/compile/lop.c index 72464111d4df..ef32410f626b 100644 --- a/gcc/testsuite/gcc.c-torture/compile/lop.c +++ b/gcc/testsuite/gcc.c-torture/compile/lop.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + lop (a) { do diff --git a/gcc/testsuite/gcc.c-torture/compile/m1.c b/gcc/testsuite/gcc.c-torture/compile/m1.c index 8660f60c950d..b11314d9f1b4 100644 --- a/gcc/testsuite/gcc.c-torture/compile/m1.c +++ b/gcc/testsuite/gcc.c-torture/compile/m1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (p) int *p; { diff --git a/gcc/testsuite/gcc.c-torture/compile/m5.c b/gcc/testsuite/gcc.c-torture/compile/m5.c index 23ad8445d321..8f56ba0483ec 100644 --- a/gcc/testsuite/gcc.c-torture/compile/m5.c +++ b/gcc/testsuite/gcc.c-torture/compile/m5.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { return a * 5 + 12; diff --git a/gcc/testsuite/gcc.c-torture/compile/m68.c b/gcc/testsuite/gcc.c-torture/compile/m68.c index a1ee486d4c2f..8760cafb5f73 100644 --- a/gcc/testsuite/gcc.c-torture/compile/m68.c +++ b/gcc/testsuite/gcc.c-torture/compile/m68.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { return a | 12345; diff --git a/gcc/testsuite/gcc.c-torture/compile/mbyte.c b/gcc/testsuite/gcc.c-torture/compile/mbyte.c index a8a23eab90ae..01ea92768c24 100644 --- a/gcc/testsuite/gcc.c-torture/compile/mbyte.c +++ b/gcc/testsuite/gcc.c-torture/compile/mbyte.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo1 (p) char *p; { diff --git a/gcc/testsuite/gcc.c-torture/compile/mcmp.c b/gcc/testsuite/gcc.c-torture/compile/mcmp.c index 6008008e1649..3f3358348273 100644 --- a/gcc/testsuite/gcc.c-torture/compile/mcmp.c +++ b/gcc/testsuite/gcc.c-torture/compile/mcmp.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (ip, a, x) int a; int *ip; diff --git a/gcc/testsuite/gcc.c-torture/compile/mm.c b/gcc/testsuite/gcc.c-torture/compile/mm.c index a8efaae21cb3..a73c5487c169 100644 --- a/gcc/testsuite/gcc.c-torture/compile/mm.c +++ b/gcc/testsuite/gcc.c-torture/compile/mm.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) { return a * 2; diff --git a/gcc/testsuite/gcc.c-torture/compile/mod.c b/gcc/testsuite/gcc.c-torture/compile/mod.c index c33211dc7fc6..2375a3be8a26 100644 --- a/gcc/testsuite/gcc.c-torture/compile/mod.c +++ b/gcc/testsuite/gcc.c-torture/compile/mod.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) { return a % b; diff --git a/gcc/testsuite/gcc.c-torture/compile/modcc.c b/gcc/testsuite/gcc.c-torture/compile/modcc.c index 2574090e96c0..173a1bcc3269 100644 --- a/gcc/testsuite/gcc.c-torture/compile/modcc.c +++ b/gcc/testsuite/gcc.c-torture/compile/modcc.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) { return (a % b) == 0; diff --git a/gcc/testsuite/gcc.c-torture/compile/move.c b/gcc/testsuite/gcc.c-torture/compile/move.c index 78e00ff2100e..aed0b0f1b0d7 100644 --- a/gcc/testsuite/gcc.c-torture/compile/move.c +++ b/gcc/testsuite/gcc.c-torture/compile/move.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef char type; type diff --git a/gcc/testsuite/gcc.c-torture/compile/move_qhi.c b/gcc/testsuite/gcc.c-torture/compile/move_qhi.c index 9bc9cb6630cf..3038d619294c 100644 --- a/gcc/testsuite/gcc.c-torture/compile/move_qhi.c +++ b/gcc/testsuite/gcc.c-torture/compile/move_qhi.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + move (a, b) char a, b; { diff --git a/gcc/testsuite/gcc.c-torture/compile/mregtst.c b/gcc/testsuite/gcc.c-torture/compile/mregtst.c index b6bb6c21f55e..85fdfd0aba63 100644 --- a/gcc/testsuite/gcc.c-torture/compile/mregtst.c +++ b/gcc/testsuite/gcc.c-torture/compile/mregtst.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, p) int *p; { diff --git a/gcc/testsuite/gcc.c-torture/compile/mu.c b/gcc/testsuite/gcc.c-torture/compile/mu.c index c469a6e3a9b3..bbbf625f2caa 100644 --- a/gcc/testsuite/gcc.c-torture/compile/mu.c +++ b/gcc/testsuite/gcc.c-torture/compile/mu.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) { return a * b; diff --git a/gcc/testsuite/gcc.c-torture/compile/mword.c b/gcc/testsuite/gcc.c-torture/compile/mword.c index 873e08868c53..c782661cb743 100644 --- a/gcc/testsuite/gcc.c-torture/compile/mword.c +++ b/gcc/testsuite/gcc.c-torture/compile/mword.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + int foo (a, b) int *a, *b; diff --git a/gcc/testsuite/gcc.c-torture/compile/n.c b/gcc/testsuite/gcc.c-torture/compile/n.c index 1a9a86974176..1d696b009025 100644 --- a/gcc/testsuite/gcc.c-torture/compile/n.c +++ b/gcc/testsuite/gcc.c-torture/compile/n.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + char_autoincr (b1, c) short *b1; short c; diff --git a/gcc/testsuite/gcc.c-torture/compile/n1.c b/gcc/testsuite/gcc.c-torture/compile/n1.c index dfa93cebed4a..0ff2e8194312 100644 --- a/gcc/testsuite/gcc.c-torture/compile/n1.c +++ b/gcc/testsuite/gcc.c-torture/compile/n1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, p) long long a; int *p; diff --git a/gcc/testsuite/gcc.c-torture/compile/nand.c b/gcc/testsuite/gcc.c-torture/compile/nand.c index 8228a3c3a42f..8e8dc6ceca3d 100644 --- a/gcc/testsuite/gcc.c-torture/compile/nand.c +++ b/gcc/testsuite/gcc.c-torture/compile/nand.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + nadn (a, b) { return (~a) | (~b); diff --git a/gcc/testsuite/gcc.c-torture/compile/neg.c b/gcc/testsuite/gcc.c-torture/compile/neg.c index c005b1327dda..92b3f68ee7fa 100644 --- a/gcc/testsuite/gcc.c-torture/compile/neg.c +++ b/gcc/testsuite/gcc.c-torture/compile/neg.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) {return -a;} diff --git a/gcc/testsuite/gcc.c-torture/compile/o.c b/gcc/testsuite/gcc.c-torture/compile/o.c index e8b78e383cbe..6ad215ec1f37 100644 --- a/gcc/testsuite/gcc.c-torture/compile/o.c +++ b/gcc/testsuite/gcc.c-torture/compile/o.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, p) char a; int *p; diff --git a/gcc/testsuite/gcc.c-torture/compile/omit.c b/gcc/testsuite/gcc.c-torture/compile/omit.c index f59d6ee8f278..d1b7f27e9a4f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/omit.c +++ b/gcc/testsuite/gcc.c-torture/compile/omit.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + omit (a, b) char a; char *b; diff --git a/gcc/testsuite/gcc.c-torture/compile/opout.c b/gcc/testsuite/gcc.c-torture/compile/opout.c index 6d3736e059a9..006087cff63a 100644 --- a/gcc/testsuite/gcc.c-torture/compile/opout.c +++ b/gcc/testsuite/gcc.c-torture/compile/opout.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + x () {} diff --git a/gcc/testsuite/gcc.c-torture/compile/opt.c b/gcc/testsuite/gcc.c-torture/compile/opt.c index faad10e48fe0..111a1f422698 100644 --- a/gcc/testsuite/gcc.c-torture/compile/opt.c +++ b/gcc/testsuite/gcc.c-torture/compile/opt.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + int foo (a) { diff --git a/gcc/testsuite/gcc.c-torture/compile/or.c b/gcc/testsuite/gcc.c-torture/compile/or.c index 2a2e3b668b75..0817c3293fa4 100644 --- a/gcc/testsuite/gcc.c-torture/compile/or.c +++ b/gcc/testsuite/gcc.c-torture/compile/or.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { return a | 0xffff0101; diff --git a/gcc/testsuite/gcc.c-torture/compile/or386.c b/gcc/testsuite/gcc.c-torture/compile/or386.c index ad49f35043ca..dfc78e5b7a83 100644 --- a/gcc/testsuite/gcc.c-torture/compile/or386.c +++ b/gcc/testsuite/gcc.c-torture/compile/or386.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef int xtype; xtype diff --git a/gcc/testsuite/gcc.c-torture/compile/p.c b/gcc/testsuite/gcc.c-torture/compile/p.c index 465e741592a2..6caec1b588df 100644 --- a/gcc/testsuite/gcc.c-torture/compile/p.c +++ b/gcc/testsuite/gcc.c-torture/compile/p.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b, p) short *p; { diff --git a/gcc/testsuite/gcc.c-torture/compile/parms.c b/gcc/testsuite/gcc.c-torture/compile/parms.c index 1bfc93d2abb9..d95d52c0cd2f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/parms.c +++ b/gcc/testsuite/gcc.c-torture/compile/parms.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" } */ #define alloca __builtin_alloca x (a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, x, y) diff --git a/gcc/testsuite/gcc.c-torture/compile/pass.c b/gcc/testsuite/gcc.c-torture/compile/pass.c index 529a01dac85c..b38347160c26 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pass.c +++ b/gcc/testsuite/gcc.c-torture/compile/pass.c @@ -1,5 +1,6 @@ /* { dg-require-effective-target untyped_assembly } */ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ int foo (a, b, c) diff --git a/gcc/testsuite/gcc.c-torture/compile/pp.c b/gcc/testsuite/gcc.c-torture/compile/pp.c index c1e09eab4077..11deeb4d83ec 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pp.c +++ b/gcc/testsuite/gcc.c-torture/compile/pp.c @@ -1,4 +1,5 @@ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ foo (a, b, c, d, e, i0, f, i1) double a, b, c, d, e, f; diff --git a/gcc/testsuite/gcc.c-torture/compile/pret-arg.c b/gcc/testsuite/gcc.c-torture/compile/pret-arg.c index d86d135dc4b3..2a11aab26af1 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pret-arg.c +++ b/gcc/testsuite/gcc.c-torture/compile/pret-arg.c @@ -1,4 +1,5 @@ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ foo (a, b, c, d, e, f, g, h, i, j, xx) double xx; diff --git a/gcc/testsuite/gcc.c-torture/compile/pyr.c b/gcc/testsuite/gcc.c-torture/compile/pyr.c index d25b2a99aa5d..8aef0682b52e 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pyr.c +++ b/gcc/testsuite/gcc.c-torture/compile/pyr.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (char *a) { char b; diff --git a/gcc/testsuite/gcc.c-torture/compile/pyr2.c b/gcc/testsuite/gcc.c-torture/compile/pyr2.c index 12e2ccd24b2a..182ec91364ed 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pyr2.c +++ b/gcc/testsuite/gcc.c-torture/compile/pyr2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { return ((int *)0)[a]; diff --git a/gcc/testsuite/gcc.c-torture/compile/r.c b/gcc/testsuite/gcc.c-torture/compile/r.c index 19eeda7ab44f..bb54dbeca72d 100644 --- a/gcc/testsuite/gcc.c-torture/compile/r.c +++ b/gcc/testsuite/gcc.c-torture/compile/r.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + r (a, b) { if (a < b) diff --git a/gcc/testsuite/gcc.c-torture/compile/r1.c b/gcc/testsuite/gcc.c-torture/compile/r1.c index 0b277b0f8dca..e8dc4190b759 100644 --- a/gcc/testsuite/gcc.c-torture/compile/r1.c +++ b/gcc/testsuite/gcc.c-torture/compile/r1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + void assert (a) {if (a != 1) abort ();} int h1 (int *p) {return *p & 255;} diff --git a/gcc/testsuite/gcc.c-torture/compile/rmsc.c b/gcc/testsuite/gcc.c-torture/compile/rmsc.c index 5c97c6dae140..2d98cd497b48 100644 --- a/gcc/testsuite/gcc.c-torture/compile/rmsc.c +++ b/gcc/testsuite/gcc.c-torture/compile/rmsc.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu89" } */ cc1 (x, y) int x, y; diff --git a/gcc/testsuite/gcc.c-torture/compile/round.c b/gcc/testsuite/gcc.c-torture/compile/round.c index 5233e65ea90e..04c413d0939f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/round.c +++ b/gcc/testsuite/gcc.c-torture/compile/round.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) double a; { diff --git a/gcc/testsuite/gcc.c-torture/compile/sc.c b/gcc/testsuite/gcc.c-torture/compile/sc.c index 84dc60f7e90f..dcd49a429b4a 100644 --- a/gcc/testsuite/gcc.c-torture/compile/sc.c +++ b/gcc/testsuite/gcc.c-torture/compile/sc.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) int a, b; { diff --git a/gcc/testsuite/gcc.c-torture/compile/scal.c b/gcc/testsuite/gcc.c-torture/compile/scal.c index a2fb3e812257..41debd862136 100644 --- a/gcc/testsuite/gcc.c-torture/compile/scal.c +++ b/gcc/testsuite/gcc.c-torture/compile/scal.c @@ -1,4 +1,6 @@ /* { dg-require-effective-target untyped_assembly } */ +/* { dg-additional-options "-std=gnu89" } */ + int g1, g2; void diff --git a/gcc/testsuite/gcc.c-torture/compile/scc.c b/gcc/testsuite/gcc.c-torture/compile/scc.c index 79ae4e12f45d..1e238ba8b08f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/scc.c +++ b/gcc/testsuite/gcc.c-torture/compile/scc.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) { if (a < 0) diff --git a/gcc/testsuite/gcc.c-torture/compile/scond.c b/gcc/testsuite/gcc.c-torture/compile/scond.c index 087b0a66e945..3ea607c7d6bf 100644 --- a/gcc/testsuite/gcc.c-torture/compile/scond.c +++ b/gcc/testsuite/gcc.c-torture/compile/scond.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + scond (a, b, c, d) { return (a > b) & (c < d); diff --git a/gcc/testsuite/gcc.c-torture/compile/seq.c b/gcc/testsuite/gcc.c-torture/compile/seq.c index 0793228b491d..eab60cf0f1d0 100644 --- a/gcc/testsuite/gcc.c-torture/compile/seq.c +++ b/gcc/testsuite/gcc.c-torture/compile/seq.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { return a < 0; diff --git a/gcc/testsuite/gcc.c-torture/compile/set386.c b/gcc/testsuite/gcc.c-torture/compile/set386.c index c16ae8dbdfe6..56f7b063316b 100644 --- a/gcc/testsuite/gcc.c-torture/compile/set386.c +++ b/gcc/testsuite/gcc.c-torture/compile/set386.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, p) int *p; { diff --git a/gcc/testsuite/gcc.c-torture/compile/set88.c b/gcc/testsuite/gcc.c-torture/compile/set88.c index 8069ea622a3d..09c393e1d179 100644 --- a/gcc/testsuite/gcc.c-torture/compile/set88.c +++ b/gcc/testsuite/gcc.c-torture/compile/set88.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { return -1 << a; diff --git a/gcc/testsuite/gcc.c-torture/compile/sh.c b/gcc/testsuite/gcc.c-torture/compile/sh.c index 8d3265f83f75..be5c91abaafa 100644 --- a/gcc/testsuite/gcc.c-torture/compile/sh.c +++ b/gcc/testsuite/gcc.c-torture/compile/sh.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) { return a << b; diff --git a/gcc/testsuite/gcc.c-torture/compile/shand.c b/gcc/testsuite/gcc.c-torture/compile/shand.c index 5a401961355e..74e67753dcb8 100644 --- a/gcc/testsuite/gcc.c-torture/compile/shand.c +++ b/gcc/testsuite/gcc.c-torture/compile/shand.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + int foo (x, c) int x; diff --git a/gcc/testsuite/gcc.c-torture/compile/shft.c b/gcc/testsuite/gcc.c-torture/compile/shft.c index 7d318c863c54..9b8488e48d36 100644 --- a/gcc/testsuite/gcc.c-torture/compile/shft.c +++ b/gcc/testsuite/gcc.c-torture/compile/shft.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) int a; { diff --git a/gcc/testsuite/gcc.c-torture/compile/shift.c b/gcc/testsuite/gcc.c-torture/compile/shift.c index 1ed1879c616f..9479126dba8b 100644 --- a/gcc/testsuite/gcc.c-torture/compile/shift.c +++ b/gcc/testsuite/gcc.c-torture/compile/shift.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { if (a >= 0) diff --git a/gcc/testsuite/gcc.c-torture/compile/signext.c b/gcc/testsuite/gcc.c-torture/compile/signext.c index 2724098d0318..d75667909775 100644 --- a/gcc/testsuite/gcc.c-torture/compile/signext.c +++ b/gcc/testsuite/gcc.c-torture/compile/signext.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + void longprint (x) long long x; { diff --git a/gcc/testsuite/gcc.c-torture/compile/signext2.c b/gcc/testsuite/gcc.c-torture/compile/signext2.c index d2eb6370df81..9826b75e9eff 100644 --- a/gcc/testsuite/gcc.c-torture/compile/signext2.c +++ b/gcc/testsuite/gcc.c-torture/compile/signext2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + long long foo (a) int a; diff --git a/gcc/testsuite/gcc.c-torture/compile/simple.c b/gcc/testsuite/gcc.c-torture/compile/simple.c index 614acba82d90..26a1aa741d87 100644 --- a/gcc/testsuite/gcc.c-torture/compile/simple.c +++ b/gcc/testsuite/gcc.c-torture/compile/simple.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { return a; diff --git a/gcc/testsuite/gcc.c-torture/compile/sparcbug.c b/gcc/testsuite/gcc.c-torture/compile/sparcbug.c index cd42a86ccccc..8ebd64f4b687 100644 --- a/gcc/testsuite/gcc.c-torture/compile/sparcbug.c +++ b/gcc/testsuite/gcc.c-torture/compile/sparcbug.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { int b = a; diff --git a/gcc/testsuite/gcc.c-torture/compile/stor.c b/gcc/testsuite/gcc.c-torture/compile/stor.c index 57981eff5a63..8fd32d6a4b7c 100644 --- a/gcc/testsuite/gcc.c-torture/compile/stor.c +++ b/gcc/testsuite/gcc.c-torture/compile/stor.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + #define C 1 foo (p) diff --git a/gcc/testsuite/gcc.c-torture/compile/str.c b/gcc/testsuite/gcc.c-torture/compile/str.c index d2dec4b2303e..cf3d17efabd9 100644 --- a/gcc/testsuite/gcc.c-torture/compile/str.c +++ b/gcc/testsuite/gcc.c-torture/compile/str.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct { char a; diff --git a/gcc/testsuite/gcc.c-torture/compile/structret.c b/gcc/testsuite/gcc.c-torture/compile/structret.c index d99eaa630bbc..81f7b8bdb663 100644 --- a/gcc/testsuite/gcc.c-torture/compile/structret.c +++ b/gcc/testsuite/gcc.c-torture/compile/structret.c @@ -1,4 +1,5 @@ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ struct foo { diff --git a/gcc/testsuite/gcc.c-torture/compile/sub32.c b/gcc/testsuite/gcc.c-torture/compile/sub32.c index 93114d96cd70..0df5a178df03 100644 --- a/gcc/testsuite/gcc.c-torture/compile/sub32.c +++ b/gcc/testsuite/gcc.c-torture/compile/sub32.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { return a + 32; diff --git a/gcc/testsuite/gcc.c-torture/compile/subcc.c b/gcc/testsuite/gcc.c-torture/compile/subcc.c index d89b50dbdffc..827c0cb5bf96 100644 --- a/gcc/testsuite/gcc.c-torture/compile/subcc.c +++ b/gcc/testsuite/gcc.c-torture/compile/subcc.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + int foo (a, c) { int b; diff --git a/gcc/testsuite/gcc.c-torture/compile/subcse.c b/gcc/testsuite/gcc.c-torture/compile/subcse.c index 0a10991f18aa..f9c36f5c044f 100644 --- a/gcc/testsuite/gcc.c-torture/compile/subcse.c +++ b/gcc/testsuite/gcc.c-torture/compile/subcse.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/sym.c b/gcc/testsuite/gcc.c-torture/compile/sym.c index 8a0fe323b03e..9e95e70d7846 100644 --- a/gcc/testsuite/gcc.c-torture/compile/sym.c +++ b/gcc/testsuite/gcc.c-torture/compile/sym.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo () { return (int) &foo; diff --git a/gcc/testsuite/gcc.c-torture/compile/symconst.c b/gcc/testsuite/gcc.c-torture/compile/symconst.c index 7add218108e4..fc3b55fd4895 100644 --- a/gcc/testsuite/gcc.c-torture/compile/symconst.c +++ b/gcc/testsuite/gcc.c-torture/compile/symconst.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo () { return (int)foo; diff --git a/gcc/testsuite/gcc.c-torture/compile/t.c b/gcc/testsuite/gcc.c-torture/compile/t.c index 48095e7c38bc..6e222b357497 100644 --- a/gcc/testsuite/gcc.c-torture/compile/t.c +++ b/gcc/testsuite/gcc.c-torture/compile/t.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + #define B 95 foo (a, b, p) diff --git a/gcc/testsuite/gcc.c-torture/compile/test-flow.c b/gcc/testsuite/gcc.c-torture/compile/test-flow.c index 01ec724eb2fe..87b59adb5bba 100644 --- a/gcc/testsuite/gcc.c-torture/compile/test-flow.c +++ b/gcc/testsuite/gcc.c-torture/compile/test-flow.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b, c, d) { if (a < 0) diff --git a/gcc/testsuite/gcc.c-torture/compile/test-loop.c b/gcc/testsuite/gcc.c-torture/compile/test-loop.c index d441dde0ca9a..3000184a6a10 100644 --- a/gcc/testsuite/gcc.c-torture/compile/test-loop.c +++ b/gcc/testsuite/gcc.c-torture/compile/test-loop.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + main () { int i; diff --git a/gcc/testsuite/gcc.c-torture/compile/test.c b/gcc/testsuite/gcc.c-torture/compile/test.c index 46e830a3521b..e82282fa5689 100644 --- a/gcc/testsuite/gcc.c-torture/compile/test.c +++ b/gcc/testsuite/gcc.c-torture/compile/test.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { if (a & 38) diff --git a/gcc/testsuite/gcc.c-torture/compile/tmp.c b/gcc/testsuite/gcc.c-torture/compile/tmp.c index 463d9fb530d0..654d805d121b 100644 --- a/gcc/testsuite/gcc.c-torture/compile/tmp.c +++ b/gcc/testsuite/gcc.c-torture/compile/tmp.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) { return (a - b) == 0; diff --git a/gcc/testsuite/gcc.c-torture/compile/trivial.c b/gcc/testsuite/gcc.c-torture/compile/trivial.c index e9665cd8dd74..b657851032ba 100644 --- a/gcc/testsuite/gcc.c-torture/compile/trivial.c +++ b/gcc/testsuite/gcc.c-torture/compile/trivial.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo () {} diff --git a/gcc/testsuite/gcc.c-torture/compile/trunc.c b/gcc/testsuite/gcc.c-torture/compile/trunc.c index dee0e158728c..6f138c0036e2 100644 --- a/gcc/testsuite/gcc.c-torture/compile/trunc.c +++ b/gcc/testsuite/gcc.c-torture/compile/trunc.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + main () { printf ("%x, %x\n", (unsigned char) main, main); diff --git a/gcc/testsuite/gcc.c-torture/compile/u.c b/gcc/testsuite/gcc.c-torture/compile/u.c index 7fc0dda3784e..20fea48cd6ae 100644 --- a/gcc/testsuite/gcc.c-torture/compile/u.c +++ b/gcc/testsuite/gcc.c-torture/compile/u.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) { return a % b; } diff --git a/gcc/testsuite/gcc.c-torture/compile/uns.c b/gcc/testsuite/gcc.c-torture/compile/uns.c index 314704f89d38..600546746794 100644 --- a/gcc/testsuite/gcc.c-torture/compile/uns.c +++ b/gcc/testsuite/gcc.c-torture/compile/uns.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { if ((unsigned) a < 234) diff --git a/gcc/testsuite/gcc.c-torture/compile/uns_tst.c b/gcc/testsuite/gcc.c-torture/compile/uns_tst.c index e34ffaf30eb6..687248d2d3da 100644 --- a/gcc/testsuite/gcc.c-torture/compile/uns_tst.c +++ b/gcc/testsuite/gcc.c-torture/compile/uns_tst.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + a (c) unsigned char c; { diff --git a/gcc/testsuite/gcc.c-torture/compile/uuarg.c b/gcc/testsuite/gcc.c-torture/compile/uuarg.c index 875c7c3b50f2..29ac87657b9d 100644 --- a/gcc/testsuite/gcc.c-torture/compile/uuarg.c +++ b/gcc/testsuite/gcc.c-torture/compile/uuarg.c @@ -1,5 +1,6 @@ /* { dg-require-effective-target untyped_assembly } */ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ +/* { dg-additional-options "-std=gnu89" } */ foo (a, b, c, d, e, f, g, h, i) { diff --git a/gcc/testsuite/gcc.c-torture/compile/volatile-1.c b/gcc/testsuite/gcc.c-torture/compile/volatile-1.c index 2017309646d1..b228bea84ece 100644 --- a/gcc/testsuite/gcc.c-torture/compile/volatile-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/volatile-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + /* The problem here was that the statements that loaded from exception.reason where not being marked as having volatile behavior which diff --git a/gcc/testsuite/gcc.c-torture/compile/ww.c b/gcc/testsuite/gcc.c-torture/compile/ww.c index 657f8c6b8396..ea9bcd8edea0 100644 --- a/gcc/testsuite/gcc.c-torture/compile/ww.c +++ b/gcc/testsuite/gcc.c-torture/compile/ww.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (p) short *p; { diff --git a/gcc/testsuite/gcc.c-torture/compile/x.c b/gcc/testsuite/gcc.c-torture/compile/x.c index baf98960cfd7..b4dd31f64afa 100644 --- a/gcc/testsuite/gcc.c-torture/compile/x.c +++ b/gcc/testsuite/gcc.c-torture/compile/x.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + f(m){int i,s=0;for(i=0;i> (char) b; diff --git a/gcc/testsuite/gcc.c-torture/compile/zero-strct-1.c b/gcc/testsuite/gcc.c-torture/compile/zero-strct-1.c index d3db812691b7..70b0c2db19ee 100644 --- a/gcc/testsuite/gcc.c-torture/compile/zero-strct-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/zero-strct-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct { } empty_t; f () diff --git a/gcc/testsuite/gcc.c-torture/execute/20000717-3.c b/gcc/testsuite/gcc.c-torture/execute/20000717-3.c index e87d00b00185..d8a3ffa6a2d2 100644 --- a/gcc/testsuite/gcc.c-torture/execute/20000717-3.c +++ b/gcc/testsuite/gcc.c-torture/execute/20000717-3.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + int c = -1; foo (p) diff --git a/gcc/testsuite/gcc.c-torture/execute/920409-1.c b/gcc/testsuite/gcc.c-torture/execute/920409-1.c index 938ce7d92d61..3813b83f6dce 100644 --- a/gcc/testsuite/gcc.c-torture/execute/920409-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/920409-1.c @@ -1 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ + x(){signed char c=-1;return c<0;}main(){if(x()!=1)abort();exit(0);} diff --git a/gcc/testsuite/gcc.c-torture/execute/920411-1.c b/gcc/testsuite/gcc.c-torture/execute/920411-1.c index e3e981001088..61a1e27fe07e 100644 --- a/gcc/testsuite/gcc.c-torture/execute/920411-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/920411-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + long f (w) char *w; { diff --git a/gcc/testsuite/gcc.c-torture/execute/920415-1.c b/gcc/testsuite/gcc.c-torture/execute/920415-1.c index ec31ea94a525..f8c559912022 100644 --- a/gcc/testsuite/gcc.c-torture/execute/920415-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/920415-1.c @@ -1,2 +1,3 @@ /* { dg-require-effective-target label_values } */ +/* { dg-additional-options "-std=gnu89" } */ main(){__label__ l;void*x(){return&&l;}goto*x();abort();return;l:exit(0);} diff --git a/gcc/testsuite/gcc.c-torture/execute/920428-1.c b/gcc/testsuite/gcc.c-torture/execute/920428-1.c index 154af763a509..dfb0bee7d91a 100644 --- a/gcc/testsuite/gcc.c-torture/execute/920428-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/920428-1.c @@ -1,2 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ x(const char*s){char a[1];const char*ss=s;a[*s++]|=1;return(int)ss+1==(int)s;} main(){if(x("")!=1)abort();exit(0);} diff --git a/gcc/testsuite/gcc.c-torture/execute/920428-2.c b/gcc/testsuite/gcc.c-torture/execute/920428-2.c index c6a5bda05bcb..9f84a15de465 100644 --- a/gcc/testsuite/gcc.c-torture/execute/920428-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/920428-2.c @@ -1,5 +1,6 @@ /* { dg-require-effective-target label_values } */ /* { dg-require-effective-target trampolines } */ +/* { dg-additional-options "-std=gnu89" } */ s(i){if(i>0){__label__ l1;int f(int i){if(i==2)goto l1;return 0;}return f(i);l1:;}return 1;} x(){return s(0)==1&&s(1)==0&&s(2)==1;} diff --git a/gcc/testsuite/gcc.c-torture/execute/920429-1.c b/gcc/testsuite/gcc.c-torture/execute/920429-1.c index f37bf68bdd40..07ae7d124de0 100644 --- a/gcc/testsuite/gcc.c-torture/execute/920429-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/920429-1.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu89" } */ typedef unsigned char t;int i,j; t*f(t*p){t c;c=*p++;i=((c&2)?1:0);j=(c&7)+1;return p;} main(){t*p0="ab",*p1;p1=f(p0);if(p0+1!=p1)abort();exit(0);} diff --git a/gcc/testsuite/gcc.c-torture/execute/920501-1.c b/gcc/testsuite/gcc.c-torture/execute/920501-1.c index a057943ce78d..a4baa6a11727 100644 --- a/gcc/testsuite/gcc.c-torture/execute/920501-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/920501-1.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target untyped_assembly } */ +/* { dg-additional-options "-std=gnu89" } */ int s[2]; x(){if(!s[0]){s[1+s[1]]=s[1];return 1;}} main(){s[0]=s[1]=0;if(x(0)!=1)abort();exit(0);} diff --git a/gcc/testsuite/gcc.c-torture/execute/920501-7.c b/gcc/testsuite/gcc.c-torture/execute/920501-7.c index 1396eeb64ab2..a9ccc6d4875b 100644 --- a/gcc/testsuite/gcc.c-torture/execute/920501-7.c +++ b/gcc/testsuite/gcc.c-torture/execute/920501-7.c @@ -1,6 +1,7 @@ /* { dg-require-effective-target label_values } */ /* { dg-require-effective-target trampolines } */ /* { dg-add-options stack_size } */ +/* { dg-additional-options "-std=gnu89" } */ #ifdef STACK_SIZE #define DEPTH ((STACK_SIZE) / 512 + 1) diff --git a/gcc/testsuite/gcc.c-torture/execute/920501-9.c b/gcc/testsuite/gcc.c-torture/execute/920501-9.c index f585ac6e0f42..83e53b8ac357 100644 --- a/gcc/testsuite/gcc.c-torture/execute/920501-9.c +++ b/gcc/testsuite/gcc.c-torture/execute/920501-9.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + #include long long proc1(){return 1LL;} diff --git a/gcc/testsuite/gcc.c-torture/execute/920520-1.c b/gcc/testsuite/gcc.c-torture/execute/920520-1.c index 068a12e92491..f8266f2d32e1 100644 --- a/gcc/testsuite/gcc.c-torture/execute/920520-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/920520-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo(int *bar) { *bar = 8; diff --git a/gcc/testsuite/gcc.c-torture/execute/920603-1.c b/gcc/testsuite/gcc.c-torture/execute/920603-1.c index bd27ca6196e9..bcbb5f602732 100644 --- a/gcc/testsuite/gcc.c-torture/execute/920603-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/920603-1.c @@ -1,2 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ f(got){if(got!=0xffff)abort();} main(){signed char c=-1;unsigned u=(unsigned short)c;f(u);exit(0);} diff --git a/gcc/testsuite/gcc.c-torture/execute/920721-2.c b/gcc/testsuite/gcc.c-torture/execute/920721-2.c index cfad0e9bbff7..7d05a14c7d96 100644 --- a/gcc/testsuite/gcc.c-torture/execute/920721-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/920721-2.c @@ -1,3 +1,4 @@ /* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */ +/* { dg-additional-options "-std=gnu89" } */ f(){} main(){int n=2;double x[n];f();exit(0);} diff --git a/gcc/testsuite/gcc.c-torture/execute/920721-3.c b/gcc/testsuite/gcc.c-torture/execute/920721-3.c index 61f605d0ad91..ebad0ded5baf 100644 --- a/gcc/testsuite/gcc.c-torture/execute/920721-3.c +++ b/gcc/testsuite/gcc.c-torture/execute/920721-3.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu89" } */ static inline fu (unsigned short data) { return data; diff --git a/gcc/testsuite/gcc.c-torture/execute/920728-1.c b/gcc/testsuite/gcc.c-torture/execute/920728-1.c index 7a2968b71be1..81ad7b92be3b 100644 --- a/gcc/testsuite/gcc.c-torture/execute/920728-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/920728-1.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu89" } */ typedef struct {int dims[0]; } *A; f(unsigned long obj) diff --git a/gcc/testsuite/gcc.c-torture/execute/920730-1.c b/gcc/testsuite/gcc.c-torture/execute/920730-1.c index 576e7a6e8bbe..ba908969f0d6 100644 --- a/gcc/testsuite/gcc.c-torture/execute/920730-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/920730-1.c @@ -1,4 +1,5 @@ /* 920730-1.c */ +/* { dg-additional-options "-std=gnu89" } */ #include f1() { diff --git a/gcc/testsuite/gcc.c-torture/execute/920731-1.c b/gcc/testsuite/gcc.c-torture/execute/920731-1.c index de0fb58fcde2..b11c4eeea059 100644 --- a/gcc/testsuite/gcc.c-torture/execute/920731-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/920731-1.c @@ -1,2 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ f(x){int i;for(i=0;i<8&&(x&1)==0;x>>=1,i++);return i;} main(){if(f(4)!=2)abort();exit(0);} diff --git a/gcc/testsuite/gcc.c-torture/execute/920812-1.c b/gcc/testsuite/gcc.c-torture/execute/920812-1.c index b49ab425b216..7b3c8b0fb43a 100644 --- a/gcc/testsuite/gcc.c-torture/execute/920812-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/920812-1.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu89" } */ typedef int t; f(t y){switch(y){case 1:return 1;}return 0;} main(){if(f((t)1)!=1)abort();exit(0);} diff --git a/gcc/testsuite/gcc.c-torture/execute/920909-1.c b/gcc/testsuite/gcc.c-torture/execute/920909-1.c index c8880348c122..3c37c2c49b49 100644 --- a/gcc/testsuite/gcc.c-torture/execute/920909-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/920909-1.c @@ -1,2 +1,3 @@ +/* { dg-additional-options "-std=gnu89" } */ f(a){switch(a){case 0x402:return a+1;case 0x403:return a+2;case 0x404:return a+3;case 0x405:return a+4;case 0x406:return 1;case 0x407:return 4;}return 0;} main(){if(f(1))abort();exit(0);} diff --git a/gcc/testsuite/gcc.c-torture/execute/921013-1.c b/gcc/testsuite/gcc.c-torture/execute/921013-1.c index d041beb257ac..d897045911da 100644 --- a/gcc/testsuite/gcc.c-torture/execute/921013-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/921013-1.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu89" } */ f(d,x,y,n) int*d; float*x,*y; diff --git a/gcc/testsuite/gcc.c-torture/execute/921017-1.c b/gcc/testsuite/gcc.c-torture/execute/921017-1.c index a2784f68487c..1dd7d682958f 100644 --- a/gcc/testsuite/gcc.c-torture/execute/921017-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/921017-1.c @@ -1,5 +1,6 @@ /* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */ /* { dg-require-effective-target trampolines } */ +/* { dg-additional-options "-std=gnu89" } */ f(n) { diff --git a/gcc/testsuite/gcc.c-torture/execute/921123-1.c b/gcc/testsuite/gcc.c-torture/execute/921123-1.c index d3daf120f0a4..764290f4291d 100644 --- a/gcc/testsuite/gcc.c-torture/execute/921123-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/921123-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f(short *p) { short x = *p; diff --git a/gcc/testsuite/gcc.c-torture/execute/921124-1.c b/gcc/testsuite/gcc.c-torture/execute/921124-1.c index 51b090b4de10..90e11c5d05e9 100644 --- a/gcc/testsuite/gcc.c-torture/execute/921124-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/921124-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f(x, d1, d2, d3) double d1, d2, d3; { diff --git a/gcc/testsuite/gcc.c-torture/execute/921202-1.c b/gcc/testsuite/gcc.c-torture/execute/921202-1.c index 8c6b8c79fc54..3ad0db969a39 100644 --- a/gcc/testsuite/gcc.c-torture/execute/921202-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/921202-1.c @@ -1,5 +1,6 @@ /* { dg-require-effective-target untyped_assembly } */ /* { dg-add-options stack_size } */ +/* { dg-additional-options "-std=gnu89" } */ #ifndef STACK_SIZE #define VLEN 2055 diff --git a/gcc/testsuite/gcc.c-torture/execute/921207-1.c b/gcc/testsuite/gcc.c-torture/execute/921207-1.c index 5ee9d27cc2f5..9722fcf41bf0 100644 --- a/gcc/testsuite/gcc.c-torture/execute/921207-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/921207-1.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu89" } */ f() { unsigned b = 0; diff --git a/gcc/testsuite/gcc.c-torture/execute/921208-2.c b/gcc/testsuite/gcc.c-torture/execute/921208-2.c index 01e14f8cffea..077683b6bacf 100644 --- a/gcc/testsuite/gcc.c-torture/execute/921208-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/921208-2.c @@ -1,5 +1,6 @@ /* { dg-require-effective-target untyped_assembly } */ /* { dg-require-stack-size "100000 * 4 + 1024" } */ +/* { dg-additional-options "-std=gnu89" } */ g(){} diff --git a/gcc/testsuite/gcc.c-torture/execute/921215-1.c b/gcc/testsuite/gcc.c-torture/execute/921215-1.c index 28dccd662f25..6d2f9b4aa804 100644 --- a/gcc/testsuite/gcc.c-torture/execute/921215-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/921215-1.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target trampolines } */ +/* { dg-additional-options "-std=gnu89" } */ main() { diff --git a/gcc/testsuite/gcc.c-torture/execute/921218-1.c b/gcc/testsuite/gcc.c-torture/execute/921218-1.c index ab7bc19cc154..dc0de9f300ff 100644 --- a/gcc/testsuite/gcc.c-torture/execute/921218-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/921218-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f() { return (unsigned char)("\377"[0]); diff --git a/gcc/testsuite/gcc.c-torture/execute/921218-2.c b/gcc/testsuite/gcc.c-torture/execute/921218-2.c index b5d57e9c3c8d..9c8d7187839d 100644 --- a/gcc/testsuite/gcc.c-torture/execute/921218-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/921218-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f() { long l2; diff --git a/gcc/testsuite/gcc.c-torture/execute/930106-1.c b/gcc/testsuite/gcc.c-torture/execute/930106-1.c index cae2c544cda5..c21e19503c50 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930106-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/930106-1.c @@ -1,4 +1,5 @@ /* { dg-add-options stack_size } */ +/* { dg-additional-options "-std=gnu89" } */ #if defined (STACK_SIZE) #define DUMMY_SIZE 9 diff --git a/gcc/testsuite/gcc.c-torture/execute/930429-2.c b/gcc/testsuite/gcc.c-torture/execute/930429-2.c index e52c8b4d723d..c1ac7187790c 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930429-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/930429-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + int f (b) { diff --git a/gcc/testsuite/gcc.c-torture/execute/930513-1.c b/gcc/testsuite/gcc.c-torture/execute/930513-1.c index f1630076800b..5d669ea6ee3b 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930513-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/930513-1.c @@ -1,4 +1,5 @@ /* { dg-additional-options "-Wl,-u,_printf_float" { target newlib_nano_io } } */ +/* { dg-additional-options "-std=gnu89" } */ #include char buf[2]; diff --git a/gcc/testsuite/gcc.c-torture/execute/930513-2.c b/gcc/testsuite/gcc.c-torture/execute/930513-2.c index 3731f6204975..9eba0a2ddc45 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930513-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/930513-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + sub3 (i) const int *i; { diff --git a/gcc/testsuite/gcc.c-torture/execute/930518-1.c b/gcc/testsuite/gcc.c-torture/execute/930518-1.c index 44bdf96afb73..0cf989cd67da 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930518-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/930518-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + int bar = 0; f (p) diff --git a/gcc/testsuite/gcc.c-torture/execute/930527-1.c b/gcc/testsuite/gcc.c-torture/execute/930527-1.c index fef34bf6b7f7..e26617c0145b 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930527-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/930527-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f (unsigned char x) { return (0x50 | (x >> 4)) ^ 0xff; diff --git a/gcc/testsuite/gcc.c-torture/execute/930603-1.c b/gcc/testsuite/gcc.c-torture/execute/930603-1.c index 6a84de035629..52c2e62d7ae3 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930603-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/930603-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + float fx (x) float x; { diff --git a/gcc/testsuite/gcc.c-torture/execute/930603-3.c b/gcc/testsuite/gcc.c-torture/execute/930603-3.c index 22e5aed4a8b9..d0e5beed010c 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930603-3.c +++ b/gcc/testsuite/gcc.c-torture/execute/930603-3.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f (b, c) unsigned char *b; int c; diff --git a/gcc/testsuite/gcc.c-torture/execute/930621-1.c b/gcc/testsuite/gcc.c-torture/execute/930621-1.c index 4bb7cdbe0760..931aa36cc770 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930621-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/930621-1.c @@ -1,3 +1,4 @@ +/* { 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/execute/930622-1.c b/gcc/testsuite/gcc.c-torture/execute/930622-1.c index d733e133d35a..ce02e9b23fbf 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930622-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/930622-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + int a = 1, b; g () { return 0; } diff --git a/gcc/testsuite/gcc.c-torture/execute/930630-1.c b/gcc/testsuite/gcc.c-torture/execute/930630-1.c index 38ad1fdfd7ba..095a882d9b96 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930630-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/930630-1.c @@ -1,3 +1,4 @@ +/* { 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/execute/930713-1.c b/gcc/testsuite/gcc.c-torture/execute/930713-1.c index 6b4d5ab796af..ab9323db4a7d 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930713-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/930713-1.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu89" } */ typedef struct { char x; diff --git a/gcc/testsuite/gcc.c-torture/execute/930718-1.c b/gcc/testsuite/gcc.c-torture/execute/930718-1.c index a8eacc2d222e..7dbb7a09e50f 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930718-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/930718-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct rtx_def { int f1 :1; diff --git a/gcc/testsuite/gcc.c-torture/execute/930719-1.c b/gcc/testsuite/gcc.c-torture/execute/930719-1.c index c6557efc7353..3104dc56c4c6 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930719-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/930719-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + int f (foo, bar, com) { diff --git a/gcc/testsuite/gcc.c-torture/execute/930916-1.c b/gcc/testsuite/gcc.c-torture/execute/930916-1.c index 6302614a8c8f..fc52e333ebe5 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930916-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/930916-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f (n) unsigned n; { diff --git a/gcc/testsuite/gcc.c-torture/execute/930921-1.c b/gcc/testsuite/gcc.c-torture/execute/930921-1.c index 12e04e309546..d75124b7b472 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930921-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/930921-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f (x) unsigned x; { diff --git a/gcc/testsuite/gcc.c-torture/execute/930929-1.c b/gcc/testsuite/gcc.c-torture/execute/930929-1.c index 31f695442f57..e512c2712b6c 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930929-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/930929-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + sub1 (i) int i; { diff --git a/gcc/testsuite/gcc.c-torture/execute/930930-1.c b/gcc/testsuite/gcc.c-torture/execute/930930-1.c index 101a5f9ef268..1d859a74ab67 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930930-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/930930-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + __extension__ typedef __PTRDIFF_TYPE__ ptr_t; ptr_t *wm_TR; ptr_t *wm_HB; diff --git a/gcc/testsuite/gcc.c-torture/execute/931009-1.c b/gcc/testsuite/gcc.c-torture/execute/931009-1.c index 292228014e72..9060734b97fd 100644 --- a/gcc/testsuite/gcc.c-torture/execute/931009-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/931009-1.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu89" } */ main () { f (); diff --git a/gcc/testsuite/gcc.c-torture/execute/931012-1.c b/gcc/testsuite/gcc.c-torture/execute/931012-1.c index d9c958ddb90e..2b83d07ff1a4 100644 --- a/gcc/testsuite/gcc.c-torture/execute/931012-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/931012-1.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu89" } */ f (int b, int c) { if (b != 0 && b != 1 && c != 0) diff --git a/gcc/testsuite/gcc.c-torture/execute/931031-1.c b/gcc/testsuite/gcc.c-torture/execute/931031-1.c index e9ce337955d6..f02247483560 100644 --- a/gcc/testsuite/gcc.c-torture/execute/931031-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/931031-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/execute/931102-1.c b/gcc/testsuite/gcc.c-torture/execute/931102-1.c index 489e7ebda8d0..1a681c73a108 100644 --- a/gcc/testsuite/gcc.c-torture/execute/931102-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/931102-1.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu89" } */ typedef union { struct diff --git a/gcc/testsuite/gcc.c-torture/execute/931102-2.c b/gcc/testsuite/gcc.c-torture/execute/931102-2.c index 6fc735c8bc14..d9f9e9c7229f 100644 --- a/gcc/testsuite/gcc.c-torture/execute/931102-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/931102-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef union { long align; diff --git a/gcc/testsuite/gcc.c-torture/execute/931228-1.c b/gcc/testsuite/gcc.c-torture/execute/931228-1.c index dcd3b65ff3ba..01e52235d4a5 100644 --- a/gcc/testsuite/gcc.c-torture/execute/931228-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/931228-1.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu89" } */ f (x) { x &= 010000; diff --git a/gcc/testsuite/gcc.c-torture/execute/940115-1.c b/gcc/testsuite/gcc.c-torture/execute/940115-1.c index d0fac9077a1d..441b4e993479 100644 --- a/gcc/testsuite/gcc.c-torture/execute/940115-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/940115-1.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu89" } */ f (cp, end) char *cp; char *end; diff --git a/gcc/testsuite/gcc.c-torture/execute/940122-1.c b/gcc/testsuite/gcc.c-torture/execute/940122-1.c index 9dbf6ae185b4..964052cf791b 100644 --- a/gcc/testsuite/gcc.c-torture/execute/940122-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/940122-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + char *a = 0; char *b = 0; diff --git a/gcc/testsuite/gcc.c-torture/execute/941202-1.c b/gcc/testsuite/gcc.c-torture/execute/941202-1.c index b97ae0e34a73..db45399a2aa8 100644 --- a/gcc/testsuite/gcc.c-torture/execute/941202-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/941202-1.c @@ -1,4 +1,5 @@ /* { dg-skip-if "requires alloca" { ! alloca } { "-O0" } { "" } } */ +/* { dg-additional-options "-std=gnu89" } */ g (x, y) { if (x != 3) diff --git a/gcc/testsuite/gcc.c-torture/execute/950605-1.c b/gcc/testsuite/gcc.c-torture/execute/950605-1.c index d89a42e49c64..e072817d12fc 100644 --- a/gcc/testsuite/gcc.c-torture/execute/950605-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/950605-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f (c) unsigned char c; { diff --git a/gcc/testsuite/gcc.c-torture/execute/960830-1.c b/gcc/testsuite/gcc.c-torture/execute/960830-1.c index d87b39e2da36..e32e01b95619 100644 --- a/gcc/testsuite/gcc.c-torture/execute/960830-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/960830-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + #ifdef __i386__ f (rp) unsigned int *rp; diff --git a/gcc/testsuite/gcc.c-torture/execute/961112-1.c b/gcc/testsuite/gcc.c-torture/execute/961112-1.c index 4b1c31222caf..cb82c089f166 100644 --- a/gcc/testsuite/gcc.c-torture/execute/961112-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/961112-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f (x) { if (x != 0 || x == 0) diff --git a/gcc/testsuite/gcc.c-torture/execute/990106-1.c b/gcc/testsuite/gcc.c-torture/execute/990106-1.c index 6631bfd96cb5..2f75d72a8c52 100644 --- a/gcc/testsuite/gcc.c-torture/execute/990106-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/990106-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo(bufp) char *bufp; { diff --git a/gcc/testsuite/gcc.c-torture/execute/cmpdi-1.c b/gcc/testsuite/gcc.c-torture/execute/cmpdi-1.c index e3e9c8606036..a324b97c8b56 100644 --- a/gcc/testsuite/gcc.c-torture/execute/cmpdi-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/cmpdi-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + #define F 140 #define T 13 diff --git a/gcc/testsuite/gcc.c-torture/execute/comp-goto-2.c b/gcc/testsuite/gcc.c-torture/execute/comp-goto-2.c index 95d23a2f9ce2..7c5da19620e4 100644 --- a/gcc/testsuite/gcc.c-torture/execute/comp-goto-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/comp-goto-2.c @@ -1,6 +1,7 @@ /* { dg-require-effective-target label_values } */ /* { dg-require-effective-target trampolines } */ /* { dg-add-options stack_size } */ +/* { dg-additional-options "-std=gnu89" } */ /* A slight variation of 920501-7.c. */ diff --git a/gcc/testsuite/gcc.c-torture/execute/dbra-1.c b/gcc/testsuite/gcc.c-torture/execute/dbra-1.c index 20ae8988ec89..29657506f495 100644 --- a/gcc/testsuite/gcc.c-torture/execute/dbra-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/dbra-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f1 (a) long a; { diff --git a/gcc/testsuite/gcc.c-torture/execute/inst-check.c b/gcc/testsuite/gcc.c-torture/execute/inst-check.c index ff4b00d78680..e452d3329cb9 100644 --- a/gcc/testsuite/gcc.c-torture/execute/inst-check.c +++ b/gcc/testsuite/gcc.c-torture/execute/inst-check.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + #include f(m) diff --git a/gcc/testsuite/gcc.c-torture/execute/int-compare.c b/gcc/testsuite/gcc.c-torture/execute/int-compare.c index 017a8cc3f15b..40b78ee84afc 100644 --- a/gcc/testsuite/gcc.c-torture/execute/int-compare.c +++ b/gcc/testsuite/gcc.c-torture/execute/int-compare.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + #include gt (a, b) diff --git a/gcc/testsuite/gcc.c-torture/execute/loop-2.c b/gcc/testsuite/gcc.c-torture/execute/loop-2.c index 3227734fbf8b..89ddcc507e90 100644 --- a/gcc/testsuite/gcc.c-torture/execute/loop-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/loop-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + int a[2]; f (b) diff --git a/gcc/testsuite/gcc.c-torture/execute/loop-2d.c b/gcc/testsuite/gcc.c-torture/execute/loop-2d.c index 19272bf01837..24c2f64fcb4e 100644 --- a/gcc/testsuite/gcc.c-torture/execute/loop-2d.c +++ b/gcc/testsuite/gcc.c-torture/execute/loop-2d.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + int a[2]; f (b) diff --git a/gcc/testsuite/gcc.c-torture/execute/loop-3.c b/gcc/testsuite/gcc.c-torture/execute/loop-3.c index 33eb18826fd2..eca9f24ea84e 100644 --- a/gcc/testsuite/gcc.c-torture/execute/loop-3.c +++ b/gcc/testsuite/gcc.c-torture/execute/loop-3.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + #include int n = 0; diff --git a/gcc/testsuite/gcc.c-torture/execute/loop-3b.c b/gcc/testsuite/gcc.c-torture/execute/loop-3b.c index 3de322cf1467..8ef6a2b91ba6 100644 --- a/gcc/testsuite/gcc.c-torture/execute/loop-3b.c +++ b/gcc/testsuite/gcc.c-torture/execute/loop-3b.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + #include int n = 0; diff --git a/gcc/testsuite/gcc.c-torture/execute/loop-3c.c b/gcc/testsuite/gcc.c-torture/execute/loop-3c.c index bc74c2e6d9b2..7595f6c7b40c 100644 --- a/gcc/testsuite/gcc.c-torture/execute/loop-3c.c +++ b/gcc/testsuite/gcc.c-torture/execute/loop-3c.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + #include void * a[255]; diff --git a/gcc/testsuite/gcc.c-torture/execute/mod-1.c b/gcc/testsuite/gcc.c-torture/execute/mod-1.c index b460df5cdb12..78f169cef4cd 100644 --- a/gcc/testsuite/gcc.c-torture/execute/mod-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/mod-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + f (x, y) { if (x % y != 0) diff --git a/gcc/testsuite/gcc.c-torture/execute/strct-pack-3.c b/gcc/testsuite/gcc.c-torture/execute/strct-pack-3.c index 8f91b040ca8c..69adf576bf8b 100644 --- a/gcc/testsuite/gcc.c-torture/execute/strct-pack-3.c +++ b/gcc/testsuite/gcc.c-torture/execute/strct-pack-3.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + typedef struct { short i __attribute__ ((aligned (2),packed)); diff --git a/gcc/testsuite/gcc.c-torture/execute/tstdi-1.c b/gcc/testsuite/gcc.c-torture/execute/tstdi-1.c index 3e31fdf59343..89ac9a0869a1 100644 --- a/gcc/testsuite/gcc.c-torture/execute/tstdi-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/tstdi-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + #define FALSE 140 #define TRUE 13