diff options
author | Florian Weimer <fweimer@redhat.com> | 2023-11-13 08:54:11 +0100 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2023-11-13 08:54:11 +0100 |
commit | adb562b6703ee490aea56d2161428e3659fde592 (patch) | |
tree | 9cc4bf145e47944c54fdee7c8514186bd1804584 /gcc | |
parent | 5c432b0efab54e81e11de7f5ec26d371a55d48e7 (diff) | |
download | gcc-adb562b6703ee490aea56d2161428e3659fde592.zip gcc-adb562b6703ee490aea56d2161428e3659fde592.tar.gz gcc-adb562b6703ee490aea56d2161428e3659fde592.tar.bz2 |
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.
Diffstat (limited to 'gcc')
260 files changed, 457 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.c-torture/compile/386.c b/gcc/testsuite/gcc.c-torture/compile/386.c index 81fcea5..3d4799b 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 ada8eaf..71ae931 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 fe2923a..2d11c4b 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 daeae2c..2becfb3 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 6dc30be..63b9df8 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 7627a3d..5d6c42c 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 5744170..e8ea89c 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 30e6622..0848fac 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 808874d..aaf2148 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 6e68271..33550a7 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 a0d426c..c1702bf 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 a4dba24..de0d35a 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 e2fde2b..940dd4d 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 a7efecf..f946c55 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 ce1281b..d87e1f4 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 b200a26..239dcfc 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 b0029d2..47f3999 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 e28d13b..55c0fad 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 27e5503..0f390f3 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 47fb1f4..00c5aa8 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 654781d..f2fc86d 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 85d2a24..adbafcf 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 61a4147..d9ae7e1 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 e31fb56..a587b39 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 6a746b1..231225f 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 1d3c085..4191116 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 a4a027a..a0b8bf6 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 d796e41..adb0c02 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 bfdffbf..c1de3fa 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 cf52307..307bd5c 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 17101ae..40a5505 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 10bad00..82775d1 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 2e38dd0..40b41d7 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 d55bd01..0a36269 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 b9c3c76..ff4a404 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 62f0de0..5b56473 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 77c92f6..6323017 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 ed56667..af65395 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 172f883..a1c001cf 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 2d3d8ed..3f4e13d 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 74b02fd..533a9ca 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 aab6d68..41fad53 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 3f9aebe..a2b1713 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 c713bb6..6f83a30 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 fce95c84..6c7160e 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 d47bd7d..4c1cd46 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 55f4788..498ca43 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 e76bb45..cba02e9 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 5b0aefc..e6eea07 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 585cd32..9b9f591 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 18a9545..08a2e17 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 283ab5f..5ba2b79 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 447eb7a..87f2171 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 f206bfa..656796a6 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 384ee3e..43a5484 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 ef5a711..6fa022c 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 265193d..cbe122e 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 893f4e7..70e6093 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 7e6f56c..fc0a7ff 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 48a3b7c..75a4e10 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 e29bec4..d86b7f7 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 1fd9461..b1beb85 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 c98b862..a5eac82 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 cce20bc..5df9702 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 a468907..f39e769 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 b8c376d..e0b76b2 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 209fc76..5cb90a5 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 28be666..bf1a69e 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 716659c..01ffc45 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 ce5ba4f..b82d4e5 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 cd13b79..223116f 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 795f7c7..6085323 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 c776383..4a152c5 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 476bf70..e74817f 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 1f0904a..c8f6762 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 67c60ee..37a2e8f 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 94750cc..3257bd8 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 fa20e00..7e40528 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 3753815..3be7f9d 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 9e8604e..83423d7 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 2a213b7..b88f425 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 4105408..7738139 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 e00f124..c9aaa6d 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 5a7a376..80984eb 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 c1bb767..222b3d3 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 1624f77..f7c2bb7 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 3bee8ea..bfbe274 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 dc9678e..4015b53 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 9e2f956..a9bef17 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 d86c30e..2e7dcd2 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 cc23b19..c5fbb99 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 04c825d..c11da4e 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 ea09c87..5e8c489 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 947a816..bfb8b0a 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 a754089..8005e2b 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 39b8578..c24520f 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 a9d6e9d..d11b1f9 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 e50687a..daa47f3 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 429a320..ad2e81e 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 7246411..ef32410 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 8660f60..b11314d 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 23ad844..8f56ba0 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 a1ee486..8760caf 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 a8a23ea..01ea927 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 6008008..3f33583 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 a8efaae..a73c548 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 c33211d..2375a3b 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 2574090..173a1bc 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 78e00ff..aed0b0f 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 9bc9cb6..3038d61 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 b6bb6c2..85fdfd0 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 c469a6e..bbbf625 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 873e088..c782661 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 1a9a869..1d696b0 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 dfa93ce..0ff2e81 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 8228a3c..8e8dc6c 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 c005b13..92b3f68 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 e8b78e3..6ad215e 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 f59d6ee..d1b7f27 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 6d3736e..006087c 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 faad10e..111a1f4 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 2a2e3b6..0817c32 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 ad49f35..dfc78e5 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 465e741..6caec1b 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 1bfc93d..d95d52c 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 529a01d..b383471 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 c1e09ea..11deeb4 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 d86d135..2a11aab 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 d25b2a9..8aef068 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 12e2ccd..182ec91 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 19eeda7..bb54dbe 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 0b277b0..e8dc419 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 5c97c6d..2d98cd4 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 5233e65..04c413d 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 84dc60f..dcd49a4 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 a2fb3e8..41debd8 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 79ae4e1..1e238ba 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 087b0a6..3ea607c 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 0793228..eab60cf 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 c16ae8d..56f7b06 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 8069ea6..09c393e 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 8d3265f..be5c91a 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 5a40196..74e6775 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 7d318c8..9b8488e 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 1ed1879..9479126 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 2724098..d756679 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 d2eb637..9826b75 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 614acba..26a1aa7 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 cd42a86..8ebd64f 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 57981ef..8fd32d6 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 d2dec4b..cf3d17e 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 d99eaa63..81f7b8b 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 93114d9..0df5a17 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 d89b50d..827c0cb 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 0a10991..f9c36f5 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 8a0fe32..9e95e70 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 7add218..fc3b55f 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 48095e7..6e222b3 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 01ec724..87b59ad 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 d441dde..3000184 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 46e830a..e82282f 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 463d9fb..654d805 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 e9665cd..b657851 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 dee0e15..6f138c0 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 7fc0dda..20fea48 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 314704f..6005467 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 e34ffaf..687248d 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 875c7c3..29ac876 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 2017309..b228bea 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 657f8c6..ea9bcd8 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 baf98960..b4dd31f 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<m;i++)s+=i;return s;} diff --git a/gcc/testsuite/gcc.c-torture/compile/xb.c b/gcc/testsuite/gcc.c-torture/compile/xb.c index 09087cc..4f17f0a 100644 --- a/gcc/testsuite/gcc.c-torture/compile/xb.c +++ b/gcc/testsuite/gcc.c-torture/compile/xb.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) { unsigned x = 1; diff --git a/gcc/testsuite/gcc.c-torture/compile/xc.c b/gcc/testsuite/gcc.c-torture/compile/xc.c index aed06a0..1050d06 100644 --- a/gcc/testsuite/gcc.c-torture/compile/xc.c +++ b/gcc/testsuite/gcc.c-torture/compile/xc.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, p) int *p; { diff --git a/gcc/testsuite/gcc.c-torture/compile/xdi.c b/gcc/testsuite/gcc.c-torture/compile/xdi.c index 413dd6c..5495da3 100644 --- a/gcc/testsuite/gcc.c-torture/compile/xdi.c +++ b/gcc/testsuite/gcc.c-torture/compile/xdi.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (long long *p, int a, int b) { *(p + a + b) = 876243243874343LL; diff --git a/gcc/testsuite/gcc.c-torture/compile/xfoo.c b/gcc/testsuite/gcc.c-torture/compile/xfoo.c index da879d2..c97e95d 100644 --- a/gcc/testsuite/gcc.c-torture/compile/xfoo.c +++ b/gcc/testsuite/gcc.c-torture/compile/xfoo.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { return (a & ~0xfff) == 0; diff --git a/gcc/testsuite/gcc.c-torture/compile/xi.c b/gcc/testsuite/gcc.c-torture/compile/xi.c index 54b42c5..1a0a023 100644 --- a/gcc/testsuite/gcc.c-torture/compile/xi.c +++ b/gcc/testsuite/gcc.c-torture/compile/xi.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { int r = 0; diff --git a/gcc/testsuite/gcc.c-torture/compile/xlop.c b/gcc/testsuite/gcc.c-torture/compile/xlop.c index 6506bfd..6c50423 100644 --- a/gcc/testsuite/gcc.c-torture/compile/xlop.c +++ b/gcc/testsuite/gcc.c-torture/compile/xlop.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { int b; diff --git a/gcc/testsuite/gcc.c-torture/compile/xneg.c b/gcc/testsuite/gcc.c-torture/compile/xneg.c index ff5b850..6c629ae 100644 --- a/gcc/testsuite/gcc.c-torture/compile/xneg.c +++ b/gcc/testsuite/gcc.c-torture/compile/xneg.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) double a; { diff --git a/gcc/testsuite/gcc.c-torture/compile/xopt.c b/gcc/testsuite/gcc.c-torture/compile/xopt.c index b1a50f8..3ba3ef3 100644 --- a/gcc/testsuite/gcc.c-torture/compile/xopt.c +++ b/gcc/testsuite/gcc.c-torture/compile/xopt.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + proc1 (a) unsigned a; { diff --git a/gcc/testsuite/gcc.c-torture/compile/xor.c b/gcc/testsuite/gcc.c-torture/compile/xor.c index 435f223..a4bdbee 100644 --- a/gcc/testsuite/gcc.c-torture/compile/xor.c +++ b/gcc/testsuite/gcc.c-torture/compile/xor.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) { return ~(a ^ ~123); diff --git a/gcc/testsuite/gcc.c-torture/compile/xorn.c b/gcc/testsuite/gcc.c-torture/compile/xorn.c index d7b75f9..f50c424 100644 --- a/gcc/testsuite/gcc.c-torture/compile/xorn.c +++ b/gcc/testsuite/gcc.c-torture/compile/xorn.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + int xorn (a, b) int a, b; diff --git a/gcc/testsuite/gcc.c-torture/compile/xp.c b/gcc/testsuite/gcc.c-torture/compile/xp.c index 139335c..c9724f7 100644 --- a/gcc/testsuite/gcc.c-torture/compile/xp.c +++ b/gcc/testsuite/gcc.c-torture/compile/xp.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { return a & 255; diff --git a/gcc/testsuite/gcc.c-torture/compile/xpp.c b/gcc/testsuite/gcc.c-torture/compile/xpp.c index daf3399..f73c6ce 100644 --- a/gcc/testsuite/gcc.c-torture/compile/xpp.c +++ b/gcc/testsuite/gcc.c-torture/compile/xpp.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a) { a++; diff --git a/gcc/testsuite/gcc.c-torture/compile/xs.c b/gcc/testsuite/gcc.c-torture/compile/xs.c index 24f773e..08b4ba2 100644 --- a/gcc/testsuite/gcc.c-torture/compile/xs.c +++ b/gcc/testsuite/gcc.c-torture/compile/xs.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) { for (b = 0; b < 10; b++) diff --git a/gcc/testsuite/gcc.c-torture/compile/xsh.c b/gcc/testsuite/gcc.c-torture/compile/xsh.c index 9ba0b6c..83f30ef 100644 --- a/gcc/testsuite/gcc.c-torture/compile/xsh.c +++ b/gcc/testsuite/gcc.c-torture/compile/xsh.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) { a = b + b; diff --git a/gcc/testsuite/gcc.c-torture/compile/xzz.c b/gcc/testsuite/gcc.c-torture/compile/xzz.c index f1972b6..bb7dd27 100644 --- a/gcc/testsuite/gcc.c-torture/compile/xzz.c +++ b/gcc/testsuite/gcc.c-torture/compile/xzz.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu89" } */ + foo (a, b) { return a >> (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 d3db812..70b0c2d 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 e87d00b..d8a3ffa 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 938ce7d..3813b83 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 e3e9810..61a1e27 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 ec31ea9..f8c5599 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 154af76..dfb0bee 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 c6a5bda..9f84a15 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 f37bf68..07ae7d1 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 a057943..a4baa6a 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 1396eeb..a9ccc6d 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 f585ac6..83e53b8 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 <stdio.h> 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 068a12e..f8266f2 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 bd27ca6..bcbb5f6 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 cfad0e9..7d05a14 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 61f605d..ebad0de 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 7a2968b..81ad7b9 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 576e7a6..ba90896 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 <limits.h> f1() { diff --git a/gcc/testsuite/gcc.c-torture/execute/920731-1.c b/gcc/testsuite/gcc.c-torture/execute/920731-1.c index de0fb58..b11c4ee 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 b49ab42..7b3c8b0 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 c888034..3c37c2c 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 d041beb..d897045 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 a2784f6..1dd7d68 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 d3daf12..764290f 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 51b090b..90e11c5 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 8c6b8c7..3ad0db9 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 5ee9d27..9722fcf 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 01e14f8..077683b 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 28dccd6..6d2f9b4 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 ab7bc19..dc0de9f 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 b5d57e9..9c8d718 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 cae2c54..c21e195 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 e52c8b4..c1ac718 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 f163007..5d669ea 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 <stdio.h> 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 3731f62..9eba0a2 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 44bdf96..0cf989c 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 fef34bf..e26617c 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 6a84de0..52c2e62 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 22e5aed..d0e5bee 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 4bb7cdb..931aa36 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 d733e13..ce02e9b 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 38ad1fd..095a882 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 6b4d5ab..ab9323d 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 a8eacc2..7dbb7a0 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 c6557ef..3104dc5 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 6302614..fc52e33 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 12e04e3..d75124b 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 31f6954..e512c27 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 101a5f9..1d859a7 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 2922280..9060734 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 d9c958d..2b83d07 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 e9ce337..f022474 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 489e7eb..1a681c7 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 6fc735c..d9f9e9c 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 dcd3b65..01e5223 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 d0fac90..441b4e9 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 9dbf6ae..964052c 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 b97ae0e..db45399 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 d89a42e..e072817 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 d87b39e..e32e01b 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 4b1c312..cb82c08 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 6631bfd..2f75d72 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 e3e9c86..a324b97 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 95d23a2f..7c5da19 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 20ae898..2965750 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 ff4b00d..e452d33 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 <stdarg.h> 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 017a8cc..40b78ee 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 <limits.h> 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 3227734..89ddcc5 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 19272bf..24c2f64 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 33eb188..eca9f24 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 <limits.h> 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 3de322c..8ef6a2b 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 <limits.h> 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 bc74c2e..7595f6c 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 <limits.h> 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 b460df5..78f169c 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 8f91b04..69adf57 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 3e31fdf..89ac9a08 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 |