Message ID | 878r75460h.fsf@oldenburg.str.redhat.com |
---|---|
State | Accepted |
Headers | |
Series | C99 testsuite readiness: Compile more tests with -std=gnu89 | |
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Comments
diff --git a/gcc/testsuite/gcc.c-torture/compile/386.c b/gcc/testsuite/gcc.c-torture/compile/386.c index 81fcea5f0e6..3d4799b83b6 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 ada8eaf49c7..71ae93116a5 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 fe2923a97f0..2d11c4be5fa 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 daeae2ca562..2becfb3caf8 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 6dc30be6502..63b9df8c80d 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 7627a3ddcdd..5d6c42c0657 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 57441706125..e8ea89c00af 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 30e6622a566..0848face29b 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 808874de1a8..aaf2148cd89 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 6e68271a009..33550a7ae91 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 a0d426c2c07..c1702bf152e 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 a4dba2487e4..de0d35acfcc 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 e2fde2bda7e..940dd4da321 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 a7efecf9717..f946c557fa8 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 ce1281b6093..d87e1f41562 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 b200a264b95..239dcfc4be0 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 b0029d23ea4..47f3999e75d 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 e28d13b03ab..55c0fad5997 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 27e5503bd4d..0f390f3f6c2 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 47fb1f493f2..00c5aa891c2 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 654781d05ea..f2fc86d3a78 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 85d2a242630..adbafcfd2a3 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 61a4147afa6..d9ae7e13679 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 e31fb567c1c..a587b39e4c7 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 6a746b12639..231225fa9d4 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 1d3c085eec1..4191116642c 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 a4a027a5fce..a0b8bf62517 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 d796e41c712..adb0c021566 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 bfdffbfe2f2..c1de3fa6b8e 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 cf52307aa97..307bd5cc414 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 17101ae3050..40a5505443d 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 10bad00f445..82775d1ca40 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 2e38dd0e36e..40b41d78998 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 d55bd01b70d..0a3626980fe 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 b9c3c76de03..ff4a4045412 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 62f0de003b2..5b564735371 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 77c92f677e4..6323017b99e 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 ed56667dd75..af65395ccf1 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 172f88355d9..a1c001cf8a2 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 2d3d8edbd0b..3f4e13d139b 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 74b02fd3b34..533a9ca1a8c 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 aab6d683fbd..41fad53390d 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 3f9aebe0364..a2b1713bba4 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 c713bb61b3d..6f83a304d0f 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 fce95c842f3..6c7160e2d68 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 d47bd7d18bc..4c1cd46ccb9 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 55f4788299a..498ca43aa4e 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 e76bb45e7cd..cba02e92e85 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 5b0aefc83d4..e6eea074bf0 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 585cd32e603..9b9f591dc04 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 18a9545cc28..08a2e1769d9 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 283ab5fa64a..5ba2b794d0e 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 447eb7af297..87f21714488 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 f206bfaed0c..656796a6a7b 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 384ee3e3cf3..43a548496da 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 ef5a71188d3..6fa022c133c 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 265193d4d6f..cbe122ec649 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 893f4e764ac..70e6093cf4f 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 7e6f56c16fb..fc0a7ff6e1a 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 48a3b7c77a5..75a4e10c744 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 e29bec49d41..d86b7f748d6 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 1fd946182ba..b1beb85a71c 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 c98b8626a87..a5eac8210f4 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 cce20bc358d..5df970269fb 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 a4689079b79..f39e769e230 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 b8c376d7076..e0b76b23643 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 209fc768887..5cb90a56eb7 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 28be6661690..bf1a69e7200 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 716659c4798..01ffc451329 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 ce5ba4f16d5..b82d4e5c4c3 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 cd13b796297..223116f45d0 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 795f7c7e467..6085323e4aa 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 c776383520a..4a152c5b3d6 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 476bf700fb3..e74817f4461 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 1f0904a649d..c8f6762ea32 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 67c60ee9820..37a2e8f4b55 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 94750cc3cbc..3257bd82094 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 fa20e00ef8f..7e4052865c3 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 3753815837f..3be7f9d1b63 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 9e8604ef2b2..83423d76bc7 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 2a213b7ab79..b88f425b6a2 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 4105408a050..7738139d591 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 e00f1244fc4..c9aaa6db109 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 5a7a3763a3a..80984ebf802 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 c1bb767e576..222b3d34640 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 1624f777995..f7c2bb7633c 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 3bee8eacb80..bfbe2745f60 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 dc9678ec335..4015b5374fe 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 9e2f9562e38..a9bef17ff57 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 d86c30e40d6..2e7dcd2dd7c 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 cc23b190b1d..c5fbb99d291 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 04c825df645..c11da4e64a5 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 ea09c871c6b..5e8c489ec04 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 947a8165c29..bfb8b0a7815 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 a7540894f5e..8005e2b2adc 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 39b85784069..c24520faaed 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 a9d6e9d0c2d..d11b1f929ab 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 e50687a9fdd..daa47f32d48 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 429a320abbd..ad2e81eff61 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 72464111d4d..ef32410f626 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 8660f60c950..b11314d9f1b 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 23ad8445d32..8f56ba0483e 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 a1ee486d4c2..8760cafb5f7 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 a8a23eab90a..01ea92768c2 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 6008008e164..3f335834827 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 a8efaae21cb..a73c5487c16 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 c33211dc7fc..2375a3be8a2 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 2574090e96c..173a1bcc326 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 78e00ff2100..aed0b0f1b0d 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 9bc9cb6630c..3038d619294 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 b6bb6c21f55..85fdfd0aba6 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 c469a6e3a9b..bbbf625f2ca 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 873e08868c5..c782661cb74 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 1a9a8697417..1d696b00902 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 dfa93cebed4..0ff2e819431 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 8228a3c3a42..8e8dc6ceca3 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 c005b1327dd..92b3f68ee7f 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 e8b78e383cb..6ad215ec1f3 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 f59d6ee8f27..d1b7f27e9a4 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 6d3736e059a..006087cff63 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 faad10e48fe..111a1f42269 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 2a2e3b668b7..0817c3293fa 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 ad49f35043c..dfc78e5b7a8 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 465e741592a..6caec1b588d 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 1bfc93d2abb..d95d52c0cd2 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 529a01dac85..b38347160c2 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 c1e09eab407..11deeb4d83e 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 d86d135dc4b..2a11aab26af 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 d25b2a99aa5..8aef0682b52 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 12e2ccd24b2..182ec91364e 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 19eeda7ab44..bb54dbeca72 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 0b277b0f8dc..e8dc4190b75 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 5c97c6dae14..2d98cd497b4 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 5233e65ea90..04c413d0939 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 84dc60f7e90..dcd49a429b4 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 a2fb3e81225..41debd86213 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 79ae4e12f45..1e238ba8b08 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 087b0a66e94..3ea607c7d6b 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 0793228b491..eab60cf0f1d 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 c16ae8dbdfe..56f7b063316 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 8069ea622a3..09c393e1d17 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 8d3265f83f7..be5c91abaaf 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 5a401961355..74e67753dcb 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 7d318c863c5..9b8488e48d3 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 1ed1879c616..9479126dba8 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 2724098d031..d7566790977 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 d2eb6370df8..9826b75e9ef 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 614acba82d9..26a1aa741d8 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 cd42a86cccc..8ebd64f4b68 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 57981eff5a6..8fd32d6a4b7 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 d2dec4b2303..cf3d17efabd 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 d99eaa630bb..81f7b8bdb66 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 93114d96cd7..0df5a178df0 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 d89b50dbdff..827c0cb5bf9 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 0a10991f18a..f9c36f5c044 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 8a0fe323b03..9e95e70d784 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 7add218108e..fc3b55fd489 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 48095e7c38b..6e222b35749 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 01ec724eb2f..87b59adb5bb 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 d441dde0ca9..3000184a6a1 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 46e830a3521..e82282fa568 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 463d9fb530d..654d805d121 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 e9665cd8dd7..b657851032b 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 dee0e158728..6f138c0036e 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 7fc0dda3784..20fea48cd6a 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 314704f89d3..60054674679 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 e34ffaf30eb..687248d2d3d 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 875c7c3b50f..29ac87657b9 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 2017309646d..b228bea84ec 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 657f8c6b839..ea9bcd8edea 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 baf98960cfd..b4dd31f64af 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 09087ccf387..4f17f0ab365 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 aed06a04ecd..1050d06c6dd 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 413dd6cf84d..5495da33fe5 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 da879d2aa13..c97e95d89b9 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 54b42c5a377..1a0a0235784 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 6506bfd3415..6c504232cc0 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 ff5b8503482..6c629aeb32e 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 b1a50f86cef..3ba3ef324b5 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 435f2231e64..a4bdbeeeea3 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 d7b75f936bd..f50c424e624 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 139335c0287..c9724f76de1 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 daf3399a3f4..f73c6ce197a 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 24f773e7577..08b4ba25d5d 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 9ba0b6c9e02..83f30efced1 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 f1972b6c618..bb7dd2771ea 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 d3db812691b..70b0c2db19e 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 e87d00b0018..d8a3ffa6a2d 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 938ce7d92d6..3813b83f6dc 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 e3e98100108..61a1e27fe07 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 ec31ea94a52..f8c55991202 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 154af763a50..dfb0bee7d91 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 c6a5bda05bc..9f84a15de46 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 f37bf68bdd4..07ae7d124de 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 a057943ce78..a4baa6a1172 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 1396eeb64ab..a9ccc6d4875 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 f585ac6e0f4..83e53b8ac35 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 068a12e9249..f8266f2d32e 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 bd27ca6196e..bcbb5f60273 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 cfad0e9bbff..7d05a14c7d9 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 61f605d0ad9..ebad0ded5ba 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 7a2968b71be..81ad7b92be3 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 576e7a6e8bb..ba908969f0d 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 de0fb58fcde..b11c4eeea05 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 b49ab425b21..7b3c8b0fb43 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 c8880348c12..3c37c2c49b4 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 d041beb257a..d897045911d 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 a2784f68487..1dd7d682958 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 d3daf120f0a..764290f4291 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 51b090b4de1..90e11c5d05e 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 8c6b8c79fc5..3ad0db969a3 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 5ee9d27cc2f..9722fcf41bf 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 01e14f8cffe..077683b6bac 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 28dccd662f2..6d2f9b4aa80 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 ab7bc19cc15..dc0de9f300f 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 b5d57e9c3c8..9c8d7187839 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 cae2c544cda..c21e19503c5 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 e52c8b4d723..c1ac7187790 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 f1630076800..5d669ea6ee3 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 3731f620497..9eba0a2ddc4 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 44bdf96afb7..0cf989cd67d 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 fef34bf6b7f..e26617c0145 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 6a84de03562..52c2e62d7ae 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 22e5aed4a8b..d0e5beed010 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 4bb7cdbe076..931aa36cc77 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 d733e133d35..ce02e9b23fb 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 38ad1fdfd7b..095a882d9b9 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 6b4d5ab796a..ab9323db4a7 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 a8eacc2d222..7dbb7a09e50 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 c6557efc735..3104dc56c4c 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 6302614a8c8..fc52e333ebe 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 12e04e30954..d75124b7b47 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 31f695442f5..e512c2712b6 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 101a5f9ef26..1d859a74ab6 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 292228014e7..9060734b97f 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 d9c958ddb90..2b83d07ff1a 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 e9ce337955d..f0224748356 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 489e7ebda8d..1a681c73a10 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 6fc735c8bc1..d9f9e9c7229 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 dcd3b65ff3b..01e52235d4a 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 d0fac9077a1..441b4e99347 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 9dbf6ae185b..964052cf791 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 b97ae0e34a7..db45399a2aa 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 d89a42e49c6..e072817d12f 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 d87b39e2da3..e32e01b9561 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 4b1c31222ca..cb82c089f16 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 6631bfd96cb..2f75d72a8c5 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 e3e9c860603..a324b97c8b5 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 95d23a2f9ce..7c5da19620e 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 20ae8988ec8..29657506f49 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 ff4b00d7868..e452d3329cb 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 017a8cc3f15..40b78ee84af 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 3227734fbf8..89ddcc507e9 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 19272bf0183..24c2f64fcb4 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 33eb18826fd..eca9f24ea84 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 3de322cf146..8ef6a2b91ba 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 bc74c2e6d9b..7595f6c7b40 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 b460df5cdb1..78f169cef4c 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 8f91b040ca8..69adf576bf8 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 3e31fdf5934..89ac9a0869a 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 diff --git a/gcc/testsuite/gcc.dg/torture/pr77677-2.c b/gcc/testsuite/gcc.dg/torture/pr77677-2.c index b586d7a038e..12199a5c7fa 100644 --- a/gcc/testsuite/gcc.dg/torture/pr77677-2.c +++ b/gcc/testsuite/gcc.dg/torture/pr77677-2.c @@ -1,6 +1,6 @@ /* PR ipa/77677 */ /* { dg-do compile } */ -/* { dg-options "-w" } */ +/* { dg-options "-std=gnu89 -fpermissive -w" } */ enum machine_mode { MAX_MACHINE_MODE };