diff options
Diffstat (limited to 'gcc')
322 files changed, 343 insertions, 240 deletions
diff --git a/gcc/testsuite/c-c++-common/Wcast-function-type.c b/gcc/testsuite/c-c++-common/Wcast-function-type.c index b49da48..8f2997d 100644 --- a/gcc/testsuite/c-c++-common/Wcast-function-type.c +++ b/gcc/testsuite/c-c++-common/Wcast-function-type.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-Wcast-function-type" } */ +/* { dg-additional-options "-std=gnu17" { target c } } */ int f(long); diff --git a/gcc/testsuite/c-c++-common/Wformat-pr84258.c b/gcc/testsuite/c-c++-common/Wformat-pr84258.c index d2870a8..10fa9ba 100644 --- a/gcc/testsuite/c-c++-common/Wformat-pr84258.c +++ b/gcc/testsuite/c-c++-common/Wformat-pr84258.c @@ -1,4 +1,5 @@ /* { dg-options "-Wformat" } */ +/* { dg-additional-options "-std=gnu17" { target c } } */ int main (int argc, char **argv) { diff --git a/gcc/testsuite/c-c++-common/Wvarargs.c b/gcc/testsuite/c-c++-common/Wvarargs.c index bfd8276..ea86ba3 100644 --- a/gcc/testsuite/c-c++-common/Wvarargs.c +++ b/gcc/testsuite/c-c++-common/Wvarargs.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" { target c } } */ #include <stdarg.h> diff --git a/gcc/testsuite/c-c++-common/analyzer/data-model-12.c b/gcc/testsuite/c-c++-common/analyzer/data-model-12.c index 653b7ad..e4a7fbd 100644 --- a/gcc/testsuite/c-c++-common/analyzer/data-model-12.c +++ b/gcc/testsuite/c-c++-common/analyzer/data-model-12.c @@ -1,4 +1,5 @@ /* Mismatching decl of foo. */ +/* { dg-additional-options "-std=gnu17" { target c } } */ int foo (); diff --git a/gcc/testsuite/c-c++-common/builtins.c b/gcc/testsuite/c-c++-common/builtins.c index 527c77e..f44d0d3 100644 --- a/gcc/testsuite/c-c++-common/builtins.c +++ b/gcc/testsuite/c-c++-common/builtins.c @@ -2,7 +2,7 @@ with no prototype do not cause an ICE. { dg-do compile } { dg-options "-O2 -Wall -Wextra" } - { dg-additional-options "-fpermissive" { target c } } + { dg-additional-options "-std=gnu17 -fpermissive" { target c } } { dg-prune-output "warning" } { dg-require-effective-target alloca } */ diff --git a/gcc/testsuite/c-c++-common/pointer-to-fn1.c b/gcc/testsuite/c-c++-common/pointer-to-fn1.c index 70a5831..862ca7a 100644 --- a/gcc/testsuite/c-c++-common/pointer-to-fn1.c +++ b/gcc/testsuite/c-c++-common/pointer-to-fn1.c @@ -1,6 +1,7 @@ /* PR c++/106937 */ /* { dg-do compile { target i?86-*-* x86_64-*-* } } */ /* { dg-options "-fpermissive -fcf-protection" } */ +/* { dg-additional-options "-std=gnu17" { target c } } */ /* { dg-additional-options "-std=c++11" { target c++ } } */ /* Test printing a pointer to function with attribute. */ diff --git a/gcc/testsuite/c-c++-common/pragma-diag-17.c b/gcc/testsuite/c-c++-common/pragma-diag-17.c index a44ce90..93206f0 100644 --- a/gcc/testsuite/c-c++-common/pragma-diag-17.c +++ b/gcc/testsuite/c-c++-common/pragma-diag-17.c @@ -1,5 +1,6 @@ /* Test silencing the numeric constant extension pedwarns. */ /* { dg-options "-pedantic-errors" } */ +/* { dg-additional-options "-std=gnu17" { target c } } */ /* { dg-additional-options -fext-numeric-literals { target c++14 } } */ #pragma GCC diagnostic push diff --git a/gcc/testsuite/c-c++-common/sizeof-array-argument.c b/gcc/testsuite/c-c++-common/sizeof-array-argument.c index eedfcee..f2b2d33 100644 --- a/gcc/testsuite/c-c++-common/sizeof-array-argument.c +++ b/gcc/testsuite/c-c++-common/sizeof-array-argument.c @@ -1,5 +1,6 @@ /* PR c/6940 */ /* { dg-do compile } */ +/* { dg-additional-options "-Wno-old-style-definition" { target c } } */ /* Test -Wsizeof-array-argument warning. */ diff --git a/gcc/testsuite/g++.dg/lto/pr54625-1_0.c b/gcc/testsuite/g++.dg/lto/pr54625-1_0.c index b1455e8..59df1aa 100644 --- a/gcc/testsuite/g++.dg/lto/pr54625-1_0.c +++ b/gcc/testsuite/g++.dg/lto/pr54625-1_0.c @@ -1,5 +1,5 @@ /* { dg-lto-do link } */ -/* { dg-lto-options { { -O0 -flto -w } { -O2 -flto -w } } } */ +/* { dg-lto-options { { -O0 -flto -w -std=gnu17 } { -O2 -flto -w -std=gnu17 } } } */ /* { dg-extra-ld-options { -r -nostdlib -flinker-output=nolto-rel } } */ float a; diff --git a/gcc/testsuite/g++.dg/lto/pr54625-2_0.c b/gcc/testsuite/g++.dg/lto/pr54625-2_0.c index 1ba463d..b7a53c6 100644 --- a/gcc/testsuite/g++.dg/lto/pr54625-2_0.c +++ b/gcc/testsuite/g++.dg/lto/pr54625-2_0.c @@ -1,5 +1,5 @@ /* { dg-lto-do link } */ -/* { dg-lto-options { { -O0 -flto -w } { -O2 -flto -w } } } */ +/* { dg-lto-options { { -O0 -flto -w -std=gnu17 } { -O2 -flto -w -std=gnu17 } } } */ /* { dg-extra-ld-options { -r -nostdlib -flinker-output=nolto-rel } } */ float a; diff --git a/gcc/testsuite/gcc.c-torture/compile/20040214-2.c b/gcc/testsuite/gcc.c-torture/compile/20040214-2.c index 352d5a5..a4fe1d2 100644 --- a/gcc/testsuite/gcc.c-torture/compile/20040214-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/20040214-2.c @@ -1,4 +1,5 @@ /* http://gcc.gnu.org/ml/gcc-patches/2004-02/msg01307.html */ +/* { dg-additional-options "-std=gnu17" } */ typedef struct xdef xdef; struct xdef diff --git a/gcc/testsuite/gcc.c-torture/compile/921011-2.c b/gcc/testsuite/gcc.c-torture/compile/921011-2.c index bf11dad..dbee954 100644 --- a/gcc/testsuite/gcc.c-torture/compile/921011-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/921011-2.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu17" } */ + extern int foobar1 (); typedef struct diff --git a/gcc/testsuite/gcc.c-torture/compile/931102-1.c b/gcc/testsuite/gcc.c-torture/compile/931102-1.c index f60b279..83568c1 100644 --- a/gcc/testsuite/gcc.c-torture/compile/931102-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/931102-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu17" } */ + char *e (); #define SET \ diff --git a/gcc/testsuite/gcc.c-torture/compile/990801-1.c b/gcc/testsuite/gcc.c-torture/compile/990801-1.c index d35ec87..6459a11 100644 --- a/gcc/testsuite/gcc.c-torture/compile/990801-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/990801-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu17" } */ + extern int getch(); extern int class(); diff --git a/gcc/testsuite/gcc.c-torture/compile/nested-1.c b/gcc/testsuite/gcc.c-torture/compile/nested-1.c index 135538a..7baade7 100644 --- a/gcc/testsuite/gcc.c-torture/compile/nested-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/nested-1.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu17" } */ /* { dg-require-effective-target trampolines } */ typedef __SIZE_TYPE__ size_t; diff --git a/gcc/testsuite/gcc.c-torture/compile/pr100241-1.c b/gcc/testsuite/gcc.c-torture/compile/pr100241-1.c index 593ef96..1104580 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr100241-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr100241-1.c @@ -1,5 +1,6 @@ /* { dg-require-visibility "" } */ /* { dg-options "-fvisibility=internal -fPIC" { target fpic } } */ +/* { dg-additional-options "-std=gnu17" } */ extern char num_4x4_blocks_high_lookup, num_4x4_blocks_wide_lookup, vp9_foreach_transformed_block_in_plane_xd_0_0_0; diff --git a/gcc/testsuite/gcc.c-torture/compile/pr106101.c b/gcc/testsuite/gcc.c-torture/compile/pr106101.c index e307afc..664ecec 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr106101.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr106101.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ extern char *globerr; char **ftpglob(); diff --git a/gcc/testsuite/gcc.c-torture/compile/pr113616.c b/gcc/testsuite/gcc.c-torture/compile/pr113616.c index 04c38ea..a862e8b 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr113616.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr113616.c @@ -1,5 +1,5 @@ // { dg-do compile } -// { dg-options "-g" } +// { dg-options "-std=gnu17 -g" } struct A { struct A *a; } foo (); struct B { long b; }; struct C { struct B c; struct A d; } *e; diff --git a/gcc/testsuite/gcc.c-torture/compile/pr47967.c b/gcc/testsuite/gcc.c-torture/compile/pr47967.c index fe1f9c2..39d73c6 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr47967.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr47967.c @@ -1,4 +1,5 @@ /* PR tree-optimization/47967 */ +/* { dg-additional-options "-std=gnu17" } */ /* { dg-require-effective-target untyped_assembly } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.c-torture/compile/pr51694.c b/gcc/testsuite/gcc.c-torture/compile/pr51694.c index 9eddc0b..00e6ea3 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr51694.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr51694.c @@ -1,6 +1,6 @@ /* { dg-require-effective-target untyped_assembly } */ /* { dg-require-effective-target indirect_calls } */ -/* { dg-additional-options "-fpermissive" } */ +/* { dg-additional-options "-std=gnu17 -fpermissive" } */ void foo (x, fn) diff --git a/gcc/testsuite/gcc.c-torture/compile/pr71109.c b/gcc/testsuite/gcc.c-torture/compile/pr71109.c index b44ba07..fae98fb 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr71109.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr71109.c @@ -1,4 +1,5 @@ /* PR tree-optimization/71109 */ +/* { dg-additional-options "-std=gnu17" } */ /* { dg-require-effective-target non_strict_prototype } */ struct S { int g, h; signed char i; int j; signed char k; int l[4]; } a, c; diff --git a/gcc/testsuite/gcc.c-torture/compile/pr83051-2.c b/gcc/testsuite/gcc.c-torture/compile/pr83051-2.c index 4718a27..3d49ed8 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr83051-2.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr83051-2.c @@ -1,4 +1,4 @@ -/* { dg-options "-fno-early-inlining" } */ +/* { dg-options "-std=gnu17 -fno-early-inlining" } */ /* { dg-require-effective-target non_strict_prototype } */ void diff --git a/gcc/testsuite/gcc.c-torture/compile/pr89663-1.c b/gcc/testsuite/gcc.c-torture/compile/pr89663-1.c index 659925d..13ffa90 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr89663-1.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr89663-1.c @@ -1,4 +1,5 @@ /* PR middle-end/89663 */ +/* { dg-additional-options "-std=gnu17" } */ /* { dg-require-effective-target non_strict_prototype } */ int irint (); diff --git a/gcc/testsuite/gcc.c-torture/compile/pr94238.c b/gcc/testsuite/gcc.c-torture/compile/pr94238.c index 5a96a64..0d32ceb 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr94238.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr94238.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu17" } */ + enum { false, true } a; int b, c, d, e, f; int fn3(); diff --git a/gcc/testsuite/gcc.c-torture/compile/pr96796.c b/gcc/testsuite/gcc.c-torture/compile/pr96796.c index debbe62..8deee01 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr96796.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr96796.c @@ -1,4 +1,4 @@ -/* { dg-additional-options "-fpermissive -fcommon" } */ +/* { dg-additional-options "-std=gnu17 -fpermissive -fcommon" } */ /* { dg-require-effective-target non_strict_prototype } */ struct S0 { diff --git a/gcc/testsuite/gcc.c-torture/compile/pr97576.c b/gcc/testsuite/gcc.c-torture/compile/pr97576.c index d281613..4bcadab 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr97576.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr97576.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu17" } */ /* { dg-require-effective-target non_strict_prototype } */ void diff --git a/gcc/testsuite/gcc.c-torture/compile/udivmod4.c b/gcc/testsuite/gcc.c-torture/compile/udivmod4.c index 9d98a3d..5297dc9 100644 --- a/gcc/testsuite/gcc.c-torture/compile/udivmod4.c +++ b/gcc/testsuite/gcc.c-torture/compile/udivmod4.c @@ -1,4 +1,4 @@ -/* { dg-additional-options "-fpermissive" } */ +/* { dg-additional-options "-std=gnu17 -fpermissive" } */ long long xlrandom () diff --git a/gcc/testsuite/gcc.c-torture/execute/20010605-2.c b/gcc/testsuite/gcc.c-torture/execute/20010605-2.c index 837e0a9..ef435bc 100644 --- a/gcc/testsuite/gcc.c-torture/execute/20010605-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/20010605-2.c @@ -1,4 +1,4 @@ -/* { dg-additional-options "-fpermissive" } */ +/* { dg-additional-options "-std=gnu17 -fpermissive" } */ void foo (), bar (), baz (); int main () diff --git a/gcc/testsuite/gcc.c-torture/execute/20020404-1.c b/gcc/testsuite/gcc.c-torture/execute/20020404-1.c index 53b3408..95b0adc 100644 --- a/gcc/testsuite/gcc.c-torture/execute/20020404-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/20020404-1.c @@ -1,4 +1,5 @@ /* { dg-require-effective-target int32plus } */ +/* { dg-additional-options "-std=gnu17" } */ /* { dg-skip-if "pointers can be truncated" { m32c-*-* } } */ /* Extracted from GDB sources. */ diff --git a/gcc/testsuite/gcc.c-torture/execute/20030714-1.c b/gcc/testsuite/gcc.c-torture/execute/20030714-1.c index 719baed..443fea8 100644 --- a/gcc/testsuite/gcc.c-torture/execute/20030714-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/20030714-1.c @@ -1,4 +1,5 @@ /* derived from PR optimization/11440 */ +/* { dg-additional-options "-std=gnu17" } */ extern void abort (void); extern void exit (int); diff --git a/gcc/testsuite/gcc.c-torture/execute/20051012-1.c b/gcc/testsuite/gcc.c-torture/execute/20051012-1.c index d43aeda..e9240da 100644 --- a/gcc/testsuite/gcc.c-torture/execute/20051012-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/20051012-1.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu17" } */ /* { dg-require-effective-target untyped_assembly } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.c-torture/execute/20190820-1.c b/gcc/testsuite/gcc.c-torture/execute/20190820-1.c index 10e48d3..c122ff3 100644 --- a/gcc/testsuite/gcc.c-torture/execute/20190820-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/20190820-1.c @@ -1,5 +1,6 @@ /* PR rtl-optimization/91347 */
/* Reported by John David Anglin <danglin@gcc.gnu.org> */
+/* { dg-additional-options "-std=gnu17" } */
/* { dg-require-effective-target int32plus } */
typedef unsigned short __u16;
diff --git a/gcc/testsuite/gcc.c-torture/execute/920612-1.c b/gcc/testsuite/gcc.c-torture/execute/920612-1.c index 8553de2..2f369b5 100644 --- a/gcc/testsuite/gcc.c-torture/execute/920612-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/920612-1.c @@ -1,4 +1,4 @@ -/* { dg-options "-fwrapv" } */ +/* { dg-options "-Wno-old-style-definition -fwrapv" } */ extern void abort (void); extern void exit (int); diff --git a/gcc/testsuite/gcc.c-torture/execute/930608-1.c b/gcc/testsuite/gcc.c-torture/execute/930608-1.c index 1f29aa5..fd26759 100644 --- a/gcc/testsuite/gcc.c-torture/execute/930608-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/930608-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu17" } */ + void abort (void); void exit (int); diff --git a/gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c b/gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c index 6be63c0..7bfc9d4 100644 --- a/gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c +++ b/gcc/testsuite/gcc.c-torture/execute/comp-goto-1.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu17" } */ /* { dg-require-effective-target label_values } */ /* { dg-require-stack-size "4000" } */ diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-1.x b/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-1.x index 84c193f..ec107bc 100644 --- a/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-1.x +++ b/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-1.x @@ -13,4 +13,6 @@ if [istarget "arm*-*-vxworks*"] { } } +lappend additional_flags "-std=gnu17" + return 0 diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-2.x b/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-2.x index 84c193f..ec107bc 100644 --- a/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-2.x +++ b/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-2.x @@ -13,4 +13,6 @@ if [istarget "arm*-*-vxworks*"] { } } +lappend additional_flags "-std=gnu17" + return 0 diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-3.x b/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-3.x index 84c193f..ec107bc 100644 --- a/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-3.x +++ b/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-3.x @@ -13,4 +13,6 @@ if [istarget "arm*-*-vxworks*"] { } } +lappend additional_flags "-std=gnu17" + return 0 diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-4.x b/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-4.x new file mode 100644 index 0000000..9baf8e1 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-4.x @@ -0,0 +1,2 @@ +lappend additional_flags "-std=gnu17" +return 0 diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-4f.x b/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-4f.x new file mode 100644 index 0000000..9baf8e1 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-4f.x @@ -0,0 +1,2 @@ +lappend additional_flags "-std=gnu17" +return 0 diff --git a/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-4l.x b/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-4l.x new file mode 100644 index 0000000..9baf8e1 --- /dev/null +++ b/gcc/testsuite/gcc.c-torture/execute/ieee/fp-cmp-4l.x @@ -0,0 +1,2 @@ +lappend additional_flags "-std=gnu17" +return 0 diff --git a/gcc/testsuite/gcc.c-torture/execute/loop-9.c b/gcc/testsuite/gcc.c-torture/execute/loop-9.c index 5230575..c0798c3 100644 --- a/gcc/testsuite/gcc.c-torture/execute/loop-9.c +++ b/gcc/testsuite/gcc.c-torture/execute/loop-9.c @@ -1,4 +1,5 @@ /* Source: Neil Booth, from PR # 115. */ +/* { dg-additional-options "-std=gnu17" } */ int false() { diff --git a/gcc/testsuite/gcc.c-torture/execute/pr103209.c b/gcc/testsuite/gcc.c-torture/execute/pr103209.c index 4816893..ecc2312 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr103209.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr103209.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu17" } */ + #include <stdio.h> #include <stdint.h> diff --git a/gcc/testsuite/gcc.c-torture/execute/pr28289.c b/gcc/testsuite/gcc.c-torture/execute/pr28289.c index 93e922c..276a0f4 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr28289.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr28289.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu17" } */ + extern int ok (int); extern void exit (); static int gen_x86_64_shrd (int); diff --git a/gcc/testsuite/gcc.c-torture/execute/pr34982.c b/gcc/testsuite/gcc.c-torture/execute/pr34982.c index 1500847..4289a18 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr34982.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr34982.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu17" } */ + extern void abort (void); static void something(); diff --git a/gcc/testsuite/gcc.c-torture/execute/pr67037.c b/gcc/testsuite/gcc.c-torture/execute/pr67037.c index 3119d32..da626e8 100644 --- a/gcc/testsuite/gcc.c-torture/execute/pr67037.c +++ b/gcc/testsuite/gcc.c-torture/execute/pr67037.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu17" } */ + long (*extfunc)(); static inline void lstrcpynW( short *d, const short *s, int n ) diff --git a/gcc/testsuite/gcc.c-torture/execute/va-arg-2.c b/gcc/testsuite/gcc.c-torture/execute/va-arg-2.c index 56f8e14..d44cefc 100644 --- a/gcc/testsuite/gcc.c-torture/execute/va-arg-2.c +++ b/gcc/testsuite/gcc.c-torture/execute/va-arg-2.c @@ -2,6 +2,7 @@ in regs and on the stack. We test 16 cases, trying to catch multiple targets (some use 3 regs for argument passing, some use 12, etc.). We test both the arguments and the `lastarg' (the argument to va_start). */ +/* { dg-additional-options "-std=gnu17" } */ #include <stdarg.h> diff --git a/gcc/testsuite/gcc.dg/20010202-1.c b/gcc/testsuite/gcc.dg/20010202-1.c index 5f78904..418e552 100644 --- a/gcc/testsuite/gcc.dg/20010202-1.c +++ b/gcc/testsuite/gcc.dg/20010202-1.c @@ -1,5 +1,5 @@ /* { dg-do compile { target i?86-*-* sparc*-*-* x86_64-*-* } } */ -/* { dg-options "-O2" } */ +/* { dg-options "-std=gnu17 -O2" } */ extern void abort (void); extern void exit (int); diff --git a/gcc/testsuite/gcc.dg/20020430-1.c b/gcc/testsuite/gcc.dg/20020430-1.c index f48bb67..2690b38 100644 --- a/gcc/testsuite/gcc.dg/20020430-1.c +++ b/gcc/testsuite/gcc.dg/20020430-1.c @@ -5,7 +5,7 @@ which left a reference to the deleted ADDR_VEC. */ /* { dg-do compile { target fpic } } */ -/* { dg-options "-O2 -frename-registers -fpic" } */ +/* { dg-options "-std=gnu17 -O2 -frename-registers -fpic" } */ /* { dg-skip-if "too many arguments in function call" { bpf-*-* } } */ typedef unsigned long XID; diff --git a/gcc/testsuite/gcc.dg/20031218-3.c b/gcc/testsuite/gcc.dg/20031218-3.c index 0bae456..10f8e77 100644 --- a/gcc/testsuite/gcc.dg/20031218-3.c +++ b/gcc/testsuite/gcc.dg/20031218-3.c @@ -3,7 +3,7 @@ The problem was that this just to ICE with -O2 -g. */ /* { dg-do compile } */ -/* { dg-options "-O2 -g" } */ +/* { dg-options "-std=gnu17 -O2 -g" } */ extern __SIZE_TYPE__ strlen (const char *); diff --git a/gcc/testsuite/gcc.dg/20040127-1.c b/gcc/testsuite/gcc.dg/20040127-1.c index 0ea6062..3295dee 100644 --- a/gcc/testsuite/gcc.dg/20040127-1.c +++ b/gcc/testsuite/gcc.dg/20040127-1.c @@ -5,7 +5,7 @@ floating-point registers on SPARC64. */ /* { dg-do assemble } */ -/* { dg-options "-O2" } */ +/* { dg-options "-std=gnu17 -O2" } */ extern int foo1(); extern int foo2(); diff --git a/gcc/testsuite/gcc.dg/20041014-1.c b/gcc/testsuite/gcc.dg/20041014-1.c index 6998440..b2e9959 100644 --- a/gcc/testsuite/gcc.dg/20041014-1.c +++ b/gcc/testsuite/gcc.dg/20041014-1.c @@ -1,6 +1,6 @@ /* PR c/17023 */ /* { dg-do compile } */ -/* { dg-options "" } */ +/* { dg-options "-Wno-old-style-definition" } */ void f(a, b) diff --git a/gcc/testsuite/gcc.dg/20041122-1.c b/gcc/testsuite/gcc.dg/20041122-1.c index b2120f81..889c781 100644 --- a/gcc/testsuite/gcc.dg/20041122-1.c +++ b/gcc/testsuite/gcc.dg/20041122-1.c @@ -1,6 +1,6 @@ /* PR rtl-optimization/18611 */ /* { dg-do compile } */ -/* { dg-options "-O1 -fmove-loop-invariants" } */ +/* { dg-options "-std=gnu17 -O1 -fmove-loop-invariants" } */ void dumpCineonChannelInfo (); typedef struct { diff --git a/gcc/testsuite/gcc.dg/20050309-1.c b/gcc/testsuite/gcc.dg/20050309-1.c index 46b27f8..d17bdaf 100644 --- a/gcc/testsuite/gcc.dg/20050309-1.c +++ b/gcc/testsuite/gcc.dg/20050309-1.c @@ -3,7 +3,7 @@ /* { dg-do compile } */ /* { dg-require-profiling "-fprofile-generate" } */ -/* { dg-options "-O2 -fprofile-generate" } */ +/* { dg-options "-std=gnu17 -O2 -fprofile-generate" } */ void lookup (); int hash (); diff --git a/gcc/testsuite/gcc.dg/20061026.c b/gcc/testsuite/gcc.dg/20061026.c index fa8069c..dbba84e 100644 --- a/gcc/testsuite/gcc.dg/20061026.c +++ b/gcc/testsuite/gcc.dg/20061026.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O1" } */ +/* { dg-options "-std=gnu17 -O1" } */ /* { dg-skip-if "exceeds eBPF stack limit" { bpf-*-* } } */ /* This testcase failed on s390. The frame size for function f will be diff --git a/gcc/testsuite/gcc.dg/20101010-1.c b/gcc/testsuite/gcc.dg/20101010-1.c index 2067012..d470717 100644 --- a/gcc/testsuite/gcc.dg/20101010-1.c +++ b/gcc/testsuite/gcc.dg/20101010-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fno-crossjumping" } */ +/* { dg-options "-std=gnu17 -O2 -fno-crossjumping" } */ /* { dg-require-effective-target alloca } */ int bar1 (); diff --git a/gcc/testsuite/gcc.dg/Warray-parameter-10.c b/gcc/testsuite/gcc.dg/Warray-parameter-10.c index 378f8af..b10a82d 100644 --- a/gcc/testsuite/gcc.dg/Warray-parameter-10.c +++ b/gcc/testsuite/gcc.dg/Warray-parameter-10.c @@ -1,7 +1,7 @@ /* PR c/102759 - ICE calling a function taking an argument redeclared without a prototype. { dg-do compile } - { dg-options "-Wall" } */ + { dg-options "-std=gnu17 -Wall" } */ void f (void) { diff --git a/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-2.c b/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-2.c index 9d75cd8..42733cd 100644 --- a/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-2.c +++ b/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-2.c @@ -1,7 +1,7 @@ /* PR c/83656 - missing -Wbuiltin-declaration-mismatch on declaration without prototype { dg-do compile } - { dg-options "-Wall -Wextra" } */ + { dg-options "-std=gnu17 -Wall -Wextra" } */ typedef __SIZE_TYPE__ size_t; diff --git a/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-3.c b/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-3.c index bc65279..91363ed 100644 --- a/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-3.c +++ b/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-3.c @@ -1,7 +1,7 @@ /* PR c/83656 - missing -Wbuiltin-declaration-mismatch on declaration without prototype { dg-do compile } - { dg-options "-fpermissive -Wbuiltin-declaration-mismatch" } */ + { dg-options "-std=gnu17 -fpermissive -Wbuiltin-declaration-mismatch" } */ typedef __SIZE_TYPE__ size_t; diff --git a/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-4.c b/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-4.c index e845b43..c48fe5f 100644 --- a/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-4.c +++ b/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-4.c @@ -1,7 +1,7 @@ /* PR c/83656 - missing -Wbuiltin-declaration-mismatch on declaration without prototype { dg-do compile } - { dg-options "-Wbuiltin-declaration-mismatch" } */ + { dg-options "-std=gnu17 -Wbuiltin-declaration-mismatch" } */ typedef __PTRDIFF_TYPE__ ptrdiff_t; typedef __SIZE_TYPE__ size_t; diff --git a/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-5.c b/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-5.c index 9cac927..08e677e 100644 --- a/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-5.c +++ b/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch-5.c @@ -1,6 +1,6 @@ /* PR testsuite/88098 - FAIL: gcc.dg/Wbuiltin-declaration-mismatch-4.c { dg-do compile } - { dg-options "-Wbuiltin-declaration-mismatch -fshort-enums" } */ + { dg-options "-std=gnu17 -Wbuiltin-declaration-mismatch -fshort-enums" } */ int abs (); double fabs (); /* { dg-message "built-in .fabs. declared here" } */ diff --git a/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch.c b/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch.c index ed66fd3..fb456e0 100644 --- a/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch.c +++ b/gcc/testsuite/gcc.dg/Wbuiltin-declaration-mismatch.c @@ -1,7 +1,7 @@ /* PR c/83656 - missing -Wbuiltin-declaration-mismatch on declaration without prototype { dg-do compile } - { dg-options "-Wall" } */ + { dg-options "-std=gnu17 -Wall" } */ typedef __SIZE_TYPE__ size_t; diff --git a/gcc/testsuite/gcc.dg/Wcxx-compat-2.c b/gcc/testsuite/gcc.dg/Wcxx-compat-2.c index 4578bec..938414a 100644 --- a/gcc/testsuite/gcc.dg/Wcxx-compat-2.c +++ b/gcc/testsuite/gcc.dg/Wcxx-compat-2.c @@ -1,4 +1,4 @@ -/* { dg-options "-Wc++-compat" } */ +/* { dg-options "-std=gnu17 -Wc++-compat" } */ _Bool foo; /* This is okay. */ int bool; /* { dg-warning "5:keyword" } */ diff --git a/gcc/testsuite/gcc.dg/Wdouble-promotion.c b/gcc/testsuite/gcc.dg/Wdouble-promotion.c index 0ad7791..c002b2e 100644 --- a/gcc/testsuite/gcc.dg/Wdouble-promotion.c +++ b/gcc/testsuite/gcc.dg/Wdouble-promotion.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-fpermissive -Wdouble-promotion" } */ +/* { dg-options "-std=gnu17 -fpermissive -Wdouble-promotion" } */ #include <stddef.h> diff --git a/gcc/testsuite/gcc.dg/Wfree-nonheap-object-7.c b/gcc/testsuite/gcc.dg/Wfree-nonheap-object-7.c index 6116bfa..52cfbf9 100644 --- a/gcc/testsuite/gcc.dg/Wfree-nonheap-object-7.c +++ b/gcc/testsuite/gcc.dg/Wfree-nonheap-object-7.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -Wfree-nonheap-object" } */ +/* { dg-options "-std=gnu17 -O2 -Wfree-nonheap-object" } */ struct local_caches *get_local_caches_lcs; void *calloc(long, long); diff --git a/gcc/testsuite/gcc.dg/Wimplicit-int-1.c b/gcc/testsuite/gcc.dg/Wimplicit-int-1.c index fc7726c..206db40 100644 --- a/gcc/testsuite/gcc.dg/Wimplicit-int-1.c +++ b/gcc/testsuite/gcc.dg/Wimplicit-int-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-fpermissive" } */ +/* { dg-options "-std=gnu17 -fpermissive" } */ static l; /* { dg-warning "type defaults to" } */ diff --git a/gcc/testsuite/gcc.dg/Wimplicit-int-1a.c b/gcc/testsuite/gcc.dg/Wimplicit-int-1a.c index ef1835e..0f7880d 100644 --- a/gcc/testsuite/gcc.dg/Wimplicit-int-1a.c +++ b/gcc/testsuite/gcc.dg/Wimplicit-int-1a.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "" } */ +/* { dg-options "-std=gnu17 " } */ static l; /* { dg-error "type defaults to" } */ diff --git a/gcc/testsuite/gcc.dg/Wimplicit-int-2.c b/gcc/testsuite/gcc.dg/Wimplicit-int-2.c index 4ff16f3..cd2c1ef 100644 --- a/gcc/testsuite/gcc.dg/Wimplicit-int-2.c +++ b/gcc/testsuite/gcc.dg/Wimplicit-int-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-pedantic-errors" } */ +/* { dg-options "-std=gnu17 -pedantic-errors" } */ static l; /* { dg-error "type defaults to" } */ diff --git a/gcc/testsuite/gcc.dg/Wimplicit-int-3.c b/gcc/testsuite/gcc.dg/Wimplicit-int-3.c index 654ce73..5980c81 100644 --- a/gcc/testsuite/gcc.dg/Wimplicit-int-3.c +++ b/gcc/testsuite/gcc.dg/Wimplicit-int-3.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-pedantic-errors -Wno-implicit-int" } */ +/* { dg-options "-std=gnu17 -pedantic-errors -Wno-implicit-int" } */ static l; diff --git a/gcc/testsuite/gcc.dg/Wimplicit-int-4.c b/gcc/testsuite/gcc.dg/Wimplicit-int-4.c index 99c61a7..28f5da5 100644 --- a/gcc/testsuite/gcc.dg/Wimplicit-int-4.c +++ b/gcc/testsuite/gcc.dg/Wimplicit-int-4.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-fpermissive -Wno-implicit -Wimplicit-int" } */ +/* { dg-options "-std=gnu17 -fpermissive -Wno-implicit -Wimplicit-int" } */ static l; /* { dg-warning "type defaults to" } */ diff --git a/gcc/testsuite/gcc.dg/Wimplicit-int-4a.c b/gcc/testsuite/gcc.dg/Wimplicit-int-4a.c index 920a088..b507620 100644 --- a/gcc/testsuite/gcc.dg/Wimplicit-int-4a.c +++ b/gcc/testsuite/gcc.dg/Wimplicit-int-4a.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-Wno-implicit -Wimplicit-int" } */ +/* { dg-options "-std=gnu17 -Wno-implicit -Wimplicit-int" } */ static l; /* { dg-error "type defaults to" } */ diff --git a/gcc/testsuite/gcc.dg/Wincompatible-pointer-types-1.c b/gcc/testsuite/gcc.dg/Wincompatible-pointer-types-1.c index 4ae7b1d..4e47a30 100644 --- a/gcc/testsuite/gcc.dg/Wincompatible-pointer-types-1.c +++ b/gcc/testsuite/gcc.dg/Wincompatible-pointer-types-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-pedantic-errors" } */ +/* { dg-options "-std=gnu17 -pedantic-errors" } */ void f (int, ...); diff --git a/gcc/testsuite/gcc.dg/Wrestrict-19.c b/gcc/testsuite/gcc.dg/Wrestrict-19.c index d475053..73b4302 100644 --- a/gcc/testsuite/gcc.dg/Wrestrict-19.c +++ b/gcc/testsuite/gcc.dg/Wrestrict-19.c @@ -1,7 +1,7 @@ /* PR middle-end/89934 - ICE on a call with fewer arguments to strncpy declared without prototype { dg-do compile } - { dg-options "-O2 -Wall" } */ + { dg-options "-std=gnu17 -O2 -Wall" } */ typedef __SIZE_TYPE__ size_t; diff --git a/gcc/testsuite/gcc.dg/Wrestrict-4.c b/gcc/testsuite/gcc.dg/Wrestrict-4.c index a95960e..e7b62af 100644 --- a/gcc/testsuite/gcc.dg/Wrestrict-4.c +++ b/gcc/testsuite/gcc.dg/Wrestrict-4.c @@ -4,7 +4,7 @@ without a prototype don't cause an ICE. { dg-do compile } { dg-prune-output "conflicting types for built-in" } - { dg-options "-O2 -Warray-bounds -Wrestrict" } */ + { dg-options "-std=gnu17 -O2 -Warray-bounds -Wrestrict" } */ void* memcpy (); void* memmove (); diff --git a/gcc/testsuite/gcc.dg/Wrestrict-5.c b/gcc/testsuite/gcc.dg/Wrestrict-5.c index 4ea9176..00f9423 100644 --- a/gcc/testsuite/gcc.dg/Wrestrict-5.c +++ b/gcc/testsuite/gcc.dg/Wrestrict-5.c @@ -4,7 +4,7 @@ functions declared with no prototype are checked for overlap, and that invalid calls are ignored. { dg-do compile } - { dg-options "-O2 -fpermissive -Wrestrict" } */ + { dg-options "-std=gnu17 -O2 -fpermissive -Wrestrict" } */ void* memcpy (); char* strncpy (); diff --git a/gcc/testsuite/gcc.dg/Wstrict-overflow-20.c b/gcc/testsuite/gcc.dg/Wstrict-overflow-20.c index ae2db93..260d20c 100644 --- a/gcc/testsuite/gcc.dg/Wstrict-overflow-20.c +++ b/gcc/testsuite/gcc.dg/Wstrict-overflow-20.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-fstrict-overflow -O2 -Wstrict-overflow" } */ +/* { dg-options "-std=gnu17 -fstrict-overflow -O2 -Wstrict-overflow" } */ /* Don't warn about an overflow in a copied loop header. We used to get a warning in value numbering. This is PR 33565. */ diff --git a/gcc/testsuite/gcc.dg/Wstringop-overflow-13.c b/gcc/testsuite/gcc.dg/Wstringop-overflow-13.c index 021eaae..2c88290 100644 --- a/gcc/testsuite/gcc.dg/Wstringop-overflow-13.c +++ b/gcc/testsuite/gcc.dg/Wstringop-overflow-13.c @@ -3,7 +3,7 @@ PR middle-end/89911 - ICE on a call with no arguments to strnlen declared with no prototype { dg-do compile } - { dg-options "-O2 -fpermissive -Wall" } */ + { dg-options "-std=gnu17 -O2 -fpermissive -Wall" } */ typedef __SIZE_TYPE__ size_t; diff --git a/gcc/testsuite/gcc.dg/analyzer/doom-d_main-IdentifyVersion.c b/gcc/testsuite/gcc.dg/analyzer/doom-d_main-IdentifyVersion.c index 982b9b7..1605047 100644 --- a/gcc/testsuite/gcc.dg/analyzer/doom-d_main-IdentifyVersion.c +++ b/gcc/testsuite/gcc.dg/analyzer/doom-d_main-IdentifyVersion.c @@ -1,6 +1,6 @@ /* Reduced from Doom's d_main.c, which is under the GPLv2 or later. */ -/* { dg-additional-options "-Wno-analyzer-too-complex" } */ +/* { dg-additional-options "-std=gnu17 -Wno-analyzer-too-complex" } */ typedef __SIZE_TYPE__ size_t; typedef struct _IO_FILE FILE; diff --git a/gcc/testsuite/gcc.dg/analyzer/doom-s_sound-pr108867.c b/gcc/testsuite/gcc.dg/analyzer/doom-s_sound-pr108867.c index fdc21a2..ac0a789 100644 --- a/gcc/testsuite/gcc.dg/analyzer/doom-s_sound-pr108867.c +++ b/gcc/testsuite/gcc.dg/analyzer/doom-s_sound-pr108867.c @@ -1,6 +1,6 @@ /* Reduced from Doom's linuxdoom-1.10/s_sound.c, which is GPLv2 or later. */ -/* { dg-additional-options "-fno-analyzer-call-summaries -Wno-analyzer-too-complex -Wno-analyzer-symbol-too-complex" } */ +/* { dg-additional-options "-std=gnu17 -fno-analyzer-call-summaries -Wno-analyzer-too-complex -Wno-analyzer-symbol-too-complex" } */ /* { dg-require-effective-target size32plus } */ typedef struct _IO_FILE FILE; diff --git a/gcc/testsuite/gcc.dg/analyzer/pr93032-mztools-signed-char.c b/gcc/testsuite/gcc.dg/analyzer/pr93032-mztools-signed-char.c index 7a7320f..1941e49 100644 --- a/gcc/testsuite/gcc.dg/analyzer/pr93032-mztools-signed-char.c +++ b/gcc/testsuite/gcc.dg/analyzer/pr93032-mztools-signed-char.c @@ -4,7 +4,7 @@ removed. */ /* { dg-do "compile" } */ -/* { dg-additional-options "-fsigned-char" } */ +/* { dg-additional-options "-Wno-old-style-definition -fsigned-char" } */ /* { dg-require-effective-target int32plus } */ /* TODO (PR analyzer/112528): remove need for this. */ diff --git a/gcc/testsuite/gcc.dg/analyzer/pr93032-mztools-unsigned-char.c b/gcc/testsuite/gcc.dg/analyzer/pr93032-mztools-unsigned-char.c index 1083275..ca7ab13 100644 --- a/gcc/testsuite/gcc.dg/analyzer/pr93032-mztools-unsigned-char.c +++ b/gcc/testsuite/gcc.dg/analyzer/pr93032-mztools-unsigned-char.c @@ -4,7 +4,7 @@ removed. */ /* { dg-do "compile" } */ -/* { dg-additional-options "-funsigned-char" } */ +/* { dg-additional-options "-Wno-old-style-definition -funsigned-char" } */ /* { dg-require-effective-target int32plus } */ /* TODO (PR analyzer/112528): remove need for this. */ diff --git a/gcc/testsuite/gcc.dg/analyzer/pr93355-localealias.c b/gcc/testsuite/gcc.dg/analyzer/pr93355-localealias.c index 88d0fc1..4ccba46 100644 --- a/gcc/testsuite/gcc.dg/analyzer/pr93355-localealias.c +++ b/gcc/testsuite/gcc.dg/analyzer/pr93355-localealias.c @@ -3,7 +3,7 @@ Adapted from intl/localealias.c, with all #includes removed. */ /* { dg-do "compile" } */ -/* { dg-additional-options "-Wno-analyzer-too-complex" } */ +/* { dg-additional-options "-Wno-old-style-definition -Wno-analyzer-too-complex" } */ /* TODO: remove the need for this option. */ /* { dg-require-effective-target alloca } */ diff --git a/gcc/testsuite/gcc.dg/analyzer/pr93375.c b/gcc/testsuite/gcc.dg/analyzer/pr93375.c index f610854..34ca68b 100644 --- a/gcc/testsuite/gcc.dg/analyzer/pr93375.c +++ b/gcc/testsuite/gcc.dg/analyzer/pr93375.c @@ -1,4 +1,4 @@ -/* { dg-additional-options "-Wno-implicit-int" } */ +/* { dg-additional-options "-std=gnu17 -Wno-implicit-int" } */ extern void foo (void *) __attribute__((nonnull)); diff --git a/gcc/testsuite/gcc.dg/analyzer/pr94688.c b/gcc/testsuite/gcc.dg/analyzer/pr94688.c index 8ea8bc3..06152d1 100644 --- a/gcc/testsuite/gcc.dg/analyzer/pr94688.c +++ b/gcc/testsuite/gcc.dg/analyzer/pr94688.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu17" } */ /* { dg-skip-if "PR112705" { hppa*64*-*-* } } */ int a, b; void d(); diff --git a/gcc/testsuite/gcc.dg/analyzer/sensitive-1.c b/gcc/testsuite/gcc.dg/analyzer/sensitive-1.c index c66af92..ee82bb6 100644 --- a/gcc/testsuite/gcc.dg/analyzer/sensitive-1.c +++ b/gcc/testsuite/gcc.dg/analyzer/sensitive-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu17" } */ + #include <stdio.h> /* Solaris needs this for <unistd.h> to declare getpass. */ diff --git a/gcc/testsuite/gcc.dg/analyzer/torture/asm-x86-linux-wfx_get_ps_timeout-full.c b/gcc/testsuite/gcc.dg/analyzer/torture/asm-x86-linux-wfx_get_ps_timeout-full.c index 4cbf432..f5329d8 100644 --- a/gcc/testsuite/gcc.dg/analyzer/torture/asm-x86-linux-wfx_get_ps_timeout-full.c +++ b/gcc/testsuite/gcc.dg/analyzer/torture/asm-x86-linux-wfx_get_ps_timeout-full.c @@ -1,6 +1,6 @@ /* { dg-do compile { target x86_64-*-* } } */ /* { dg-require-effective-target lp64 } */ -/* { dg-additional-options "-fsanitize=bounds -fno-analyzer-call-summaries" } */ +/* { dg-additional-options "-std=gnu17 -fsanitize=bounds -fno-analyzer-call-summaries" } */ /* { dg-skip-if "" { *-*-* } { "-O0" } { "" } } */ /* Reduced from linux kernel: drivers/staging/wfx/sta.c (GPL-2.0) diff --git a/gcc/testsuite/gcc.dg/analyzer/torture/pr104863.c b/gcc/testsuite/gcc.dg/analyzer/torture/pr104863.c index 30ed4fe..6487e96 100644 --- a/gcc/testsuite/gcc.dg/analyzer/torture/pr104863.c +++ b/gcc/testsuite/gcc.dg/analyzer/torture/pr104863.c @@ -1,4 +1,4 @@ -/* { dg-additional-options "-fanalyzer-transitivity" } */ +/* { dg-additional-options "-std=gnu17 -fanalyzer-transitivity" } */ /* { dg-skip-if "" { *-*-* } { "-fno-fat-lto-objects" } { "" } } */ extern void g(); diff --git a/gcc/testsuite/gcc.dg/analyzer/torture/pr93379.c b/gcc/testsuite/gcc.dg/analyzer/torture/pr93379.c index 01465cf..6d6ac14 100644 --- a/gcc/testsuite/gcc.dg/analyzer/torture/pr93379.c +++ b/gcc/testsuite/gcc.dg/analyzer/torture/pr93379.c @@ -1,2 +1,3 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ #include "../../torture/pr57330.c" diff --git a/gcc/testsuite/gcc.dg/array-quals-2.c b/gcc/testsuite/gcc.dg/array-quals-2.c index 7f33e3f..e49330d 100644 --- a/gcc/testsuite/gcc.dg/array-quals-2.c +++ b/gcc/testsuite/gcc.dg/array-quals-2.c @@ -3,7 +3,7 @@ lost in forming composite types. */ /* Origin: Joseph Myers <joseph@codesourcery.com> */ /* { dg-do compile } */ -/* { dg-options "-pedantic -Wno-discarded-array-qualifiers" } */ +/* { dg-options "-std=gnu17 -pedantic -Wno-discarded-array-qualifiers" } */ typedef const char T[1]; typedef const char T2[1]; typedef volatile char U[1]; diff --git a/gcc/testsuite/gcc.dg/attr-invalid.c b/gcc/testsuite/gcc.dg/attr-invalid.c index a3315fa..87f3cbc 100644 --- a/gcc/testsuite/gcc.dg/attr-invalid.c +++ b/gcc/testsuite/gcc.dg/attr-invalid.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "" } */ +/* { dg-options "-Wno-old-style-definition" } */ #define CONCAT_(A,B) A ## B #define CONCAT(A,B) CONCAT_(A,B) diff --git a/gcc/testsuite/gcc.dg/auto-init-uninit-A.c b/gcc/testsuite/gcc.dg/auto-init-uninit-A.c index 0ef1d92..8347a60 100644 --- a/gcc/testsuite/gcc.dg/auto-init-uninit-A.c +++ b/gcc/testsuite/gcc.dg/auto-init-uninit-A.c @@ -2,6 +2,6 @@ May be a real bug in CSE. */ /* { dg-do compile } */ -/* { dg-options "-O2 -Wall -ftrivial-auto-var-init=zero" } */ +/* { dg-options "-O2 -Wall -Wno-old-style-definition -ftrivial-auto-var-init=zero" } */ #include "uninit-A.c" diff --git a/gcc/testsuite/gcc.dg/builtin-choose-expr.c b/gcc/testsuite/gcc.dg/builtin-choose-expr.c index ceac605..e8c14b4 100644 --- a/gcc/testsuite/gcc.dg/builtin-choose-expr.c +++ b/gcc/testsuite/gcc.dg/builtin-choose-expr.c @@ -35,7 +35,7 @@ extern void abort (); -extern void exit (); +extern void exit (int); void bad () { diff --git a/gcc/testsuite/gcc.dg/builtin-tgmath-err-1.c b/gcc/testsuite/gcc.dg/builtin-tgmath-err-1.c index 9016ec7..de764e3 100644 --- a/gcc/testsuite/gcc.dg/builtin-tgmath-err-1.c +++ b/gcc/testsuite/gcc.dg/builtin-tgmath-err-1.c @@ -1,7 +1,7 @@ /* Test __builtin_tgmath: errors that indicate a bad definition of a type-generic macro rather than bad arguments in a call to it. */ /* { dg-do compile } */ -/* { dg-options "" } */ +/* { dg-options "-std=gnu17" } */ void *p; double d; diff --git a/gcc/testsuite/gcc.dg/builtins-30.c b/gcc/testsuite/gcc.dg/builtins-30.c index 37e5dba..d6552e5 100644 --- a/gcc/testsuite/gcc.dg/builtins-30.c +++ b/gcc/testsuite/gcc.dg/builtins-30.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-Wall -Wshadow -fshow-column" } */ +/* { dg-options "-std=gnu17 -Wall -Wshadow -fshow-column" } */ extern double strtod (const char *, char **); #define UNUSED __attribute__ ((unused)) diff --git a/gcc/testsuite/gcc.dg/cast-function-1.c b/gcc/testsuite/gcc.dg/cast-function-1.c index 5228b55..4bd7136 100644 --- a/gcc/testsuite/gcc.dg/cast-function-1.c +++ b/gcc/testsuite/gcc.dg/cast-function-1.c @@ -6,7 +6,7 @@ prototype than the actual one. */ /* { dg-do compile } */ -/* { dg-options "-O3" } */ +/* { dg-options "-std=gnu17 -O3" } */ int foo1(int); int foo2(); diff --git a/gcc/testsuite/gcc.dg/cleanup-1.c b/gcc/testsuite/gcc.dg/cleanup-1.c index c622a62..22d5900 100644 --- a/gcc/testsuite/gcc.dg/cleanup-1.c +++ b/gcc/testsuite/gcc.dg/cleanup-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-fpermissive -Wall" } */ +/* { dg-options "-std=gnu17 -fpermissive -Wall" } */ /* Validate expected warnings and errors. */ #define U __attribute__((unused)) diff --git a/gcc/testsuite/gcc.dg/compat/struct-complex-1_x.c b/gcc/testsuite/gcc.dg/compat/struct-complex-1_x.c index 0c67239..ff567a5 100644 --- a/gcc/testsuite/gcc.dg/compat/struct-complex-1_x.c +++ b/gcc/testsuite/gcc.dg/compat/struct-complex-1_x.c @@ -1,4 +1,4 @@ -/* { dg-options "-O -Wno-psabi" } */ +/* { dg-options "-std=gnu17 -O -Wno-psabi" } */ #ifdef __x86_64__ diff --git a/gcc/testsuite/gcc.dg/compat/struct-complex-2_x.c b/gcc/testsuite/gcc.dg/compat/struct-complex-2_x.c index 2fb9826..4ad5339 100644 --- a/gcc/testsuite/gcc.dg/compat/struct-complex-2_x.c +++ b/gcc/testsuite/gcc.dg/compat/struct-complex-2_x.c @@ -1,4 +1,4 @@ -/* { dg-options "-O -Wno-psabi" } */ +/* { dg-options "-std=gnu17 -O -Wno-psabi" } */ #ifdef __x86_64__ diff --git a/gcc/testsuite/gcc.dg/compat/union-m128-1_x.c b/gcc/testsuite/gcc.dg/compat/union-m128-1_x.c index 1f92303..13044bd 100644 --- a/gcc/testsuite/gcc.dg/compat/union-m128-1_x.c +++ b/gcc/testsuite/gcc.dg/compat/union-m128-1_x.c @@ -1,4 +1,4 @@ -/* { dg-options "-O -msse2" } */ +/* { dg-options "-std=gnu17 -O -msse2" } */ #include "union-m128-1.h" diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/pr66482.c b/gcc/testsuite/gcc.dg/debug/dwarf2/pr66482.c index 880791c..81fac10 100644 --- a/gcc/testsuite/gcc.dg/debug/dwarf2/pr66482.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/pr66482.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O3 -gdwarf" } */ +/* { dg-options "-std=gnu17 -O3 -gdwarf" } */ void f(int p) {} int g() { diff --git a/gcc/testsuite/gcc.dg/dfp/composite-type-2.c b/gcc/testsuite/gcc.dg/dfp/composite-type-2.c index 5c6d95c..3ae8a24 100644 --- a/gcc/testsuite/gcc.dg/dfp/composite-type-2.c +++ b/gcc/testsuite/gcc.dg/dfp/composite-type-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -Wall -ftrack-macro-expansion=0" } */ +/* { dg-options "-std=gnu17 -O -Wall -ftrack-macro-expansion=0" } */ /* C99 6.2.7: Compatible type and composite type. */ diff --git a/gcc/testsuite/gcc.dg/dfp/composite-type.c b/gcc/testsuite/gcc.dg/dfp/composite-type.c index 2eb6014..ead3351 100644 --- a/gcc/testsuite/gcc.dg/dfp/composite-type.c +++ b/gcc/testsuite/gcc.dg/dfp/composite-type.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-fpermissive -O -Wall -ftrack-macro-expansion=0" } */ +/* { dg-options "-std=gnu17 -fpermissive -O -Wall -ftrack-macro-expansion=0" } */ /* C99 6.2.7: Compatible type and composite type. */ diff --git a/gcc/testsuite/gcc.dg/dfp/keywords-pedantic.c b/gcc/testsuite/gcc.dg/dfp/keywords-pedantic.c index bca5106..5740e02 100644 --- a/gcc/testsuite/gcc.dg/dfp/keywords-pedantic.c +++ b/gcc/testsuite/gcc.dg/dfp/keywords-pedantic.c @@ -1,7 +1,7 @@ /* { dg-do compile } */ -/* { dg-options "-pedantic" } */ +/* { dg-options "-std=gnu17 -pedantic" } */ -/* Decimal float is a GCC extension. */ +/* Decimal float is a GCC extension before C23. */ _Decimal32 x; /* { dg-warning "GCC extension|ISO C" } */ _Decimal64 y; /* { dg-warning "GCC extension|ISO C" } */ diff --git a/gcc/testsuite/gcc.dg/dremf-type-compat-1.c b/gcc/testsuite/gcc.dg/dremf-type-compat-1.c index 79c55ef..79e5d5b 100644 --- a/gcc/testsuite/gcc.dg/dremf-type-compat-1.c +++ b/gcc/testsuite/gcc.dg/dremf-type-compat-1.c @@ -4,7 +4,7 @@ so it should be permitted when the function is built in. Bug 16666. */ /* { dg-do compile } */ -/* { dg-options "" } */ +/* { dg-options "-std=gnu17" } */ float dremf (float, float); diff --git a/gcc/testsuite/gcc.dg/dremf-type-compat-2.c b/gcc/testsuite/gcc.dg/dremf-type-compat-2.c index 980ead1..ffb56a7 100644 --- a/gcc/testsuite/gcc.dg/dremf-type-compat-2.c +++ b/gcc/testsuite/gcc.dg/dremf-type-compat-2.c @@ -5,7 +5,7 @@ 16666. Test with -pedantic, where the problem should still be diagnosed. */ /* { dg-do compile } */ -/* { dg-options "-pedantic" } */ +/* { dg-options "-std=gnu17 -pedantic" } */ float dremf (float, float); /* { dg-warning "prototype declaration" } */ diff --git a/gcc/testsuite/gcc.dg/dremf-type-compat-3.c b/gcc/testsuite/gcc.dg/dremf-type-compat-3.c index 3934a64..ef36e0b 100644 --- a/gcc/testsuite/gcc.dg/dremf-type-compat-3.c +++ b/gcc/testsuite/gcc.dg/dremf-type-compat-3.c @@ -5,7 +5,7 @@ 16666. Test with -pedantic-errors, where the problem should still be diagnosed. */ /* { dg-do compile } */ -/* { dg-options "-pedantic-errors" } */ +/* { dg-options "-std=gnu17 -pedantic-errors" } */ float dremf (float, float); /* { dg-error "prototype declaration" } */ diff --git a/gcc/testsuite/gcc.dg/dremf-type-compat-4.c b/gcc/testsuite/gcc.dg/dremf-type-compat-4.c index b3a2c5a..27e2204 100644 --- a/gcc/testsuite/gcc.dg/dremf-type-compat-4.c +++ b/gcc/testsuite/gcc.dg/dremf-type-compat-4.c @@ -3,7 +3,7 @@ of old-style parameter declarations should only apply when the prototype is visible, not for a built-in prototype. */ /* { dg-do compile } */ -/* { dg-options "" } */ +/* { dg-options "-std=gnu17" } */ float dremf(x, y) /* { dg-warning "conflicting types for built-in function 'dremf'" } */ diff --git a/gcc/testsuite/gcc.dg/enum-compat-1.c b/gcc/testsuite/gcc.dg/enum-compat-1.c index b7352f6..1589067 100644 --- a/gcc/testsuite/gcc.dg/enum-compat-1.c +++ b/gcc/testsuite/gcc.dg/enum-compat-1.c @@ -3,7 +3,7 @@ /* Origin: Joseph Myers <jsm@polyomino.org.uk>, based on PR c/6024 from Richard Earnshaw <rearnsha@arm.com> */ /* { dg-do compile } */ -/* { dg-options "-fpermissive" } */ +/* { dg-options "-std=gnu17 -fpermissive" } */ /* Original test from PR c/6024. */ enum e1 {a, b}; diff --git a/gcc/testsuite/gcc.dg/enum-compat-2.c b/gcc/testsuite/gcc.dg/enum-compat-2.c index 6950901..b42717e 100644 --- a/gcc/testsuite/gcc.dg/enum-compat-2.c +++ b/gcc/testsuite/gcc.dg/enum-compat-2.c @@ -3,7 +3,7 @@ /* Origin: Joseph Myers <jsm@polyomino.org.uk>, based on PR c/6024 from Richard Earnshaw <rearnsha@arm.com> */ /* { dg-do compile } */ -/* { dg-options "" } */ +/* { dg-options "-std=gnu17" } */ /* Original test from PR c/6024. */ enum e1 {a, b}; diff --git a/gcc/testsuite/gcc.dg/floatn-errs.c b/gcc/testsuite/gcc.dg/floatn-errs.c index 0dcc2f1..9fb3f90 100644 --- a/gcc/testsuite/gcc.dg/floatn-errs.c +++ b/gcc/testsuite/gcc.dg/floatn-errs.c @@ -1,6 +1,6 @@ /* Tests for _FloatN / _FloatNx types: test erroneous code. */ /* { dg-do compile } */ -/* { dg-options "" } */ +/* { dg-options "-std=gnu17" } */ /* { dg-add-options float32 } */ /* { dg-add-options float64 } */ /* { dg-add-options float32x } */ diff --git a/gcc/testsuite/gcc.dg/fltconst-pedantic-dfp.c b/gcc/testsuite/gcc.dg/fltconst-pedantic-dfp.c index 6ff3091..b395fbd 100644 --- a/gcc/testsuite/gcc.dg/fltconst-pedantic-dfp.c +++ b/gcc/testsuite/gcc.dg/fltconst-pedantic-dfp.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-pedantic" } */ +/* { dg-options "-std=gnu17 -pedantic" } */ double a = 1.dl; /* { dg-warning "decimal float" } */ /* { dg-error "not supported for this target" "not supported" { target { ! dfp } } .-1 } */ diff --git a/gcc/testsuite/gcc.dg/format/proto.c b/gcc/testsuite/gcc.dg/format/proto.c index b2050c9..2556400 100644 --- a/gcc/testsuite/gcc.dg/format/proto.c +++ b/gcc/testsuite/gcc.dg/format/proto.c @@ -4,7 +4,7 @@ without a prototype. If it's decided that it shouldn't be the tests here will need to be adjusted. { dg-do compile } - { dg-options "-Wall" } */ + { dg-options "-std=gnu17 -Wall" } */ #define FMT(n1, n2) __attribute__((__format__(__printf__, n1, n2))) diff --git a/gcc/testsuite/gcc.dg/format/sentinel-1.c b/gcc/testsuite/gcc.dg/format/sentinel-1.c index 16c75a8..d51289a 100644 --- a/gcc/testsuite/gcc.dg/format/sentinel-1.c +++ b/gcc/testsuite/gcc.dg/format/sentinel-1.c @@ -1,7 +1,7 @@ /* Test for attribute sentinel. */ /* Origin: Kaveh Ghazi <ghazi@caip.rutgers.edu> */ /* { dg-do compile } */ -/* { dg-options "-Wformat" } */ +/* { dg-options "-std=gnu17 -Wformat" } */ #include <stddef.h> /* For NULL, which must be (ptr)0. */ diff --git a/gcc/testsuite/gcc.dg/gomp/declare-simd-1.c b/gcc/testsuite/gcc.dg/gomp/declare-simd-1.c index c8a99a8..8fa12e3 100644 --- a/gcc/testsuite/gcc.dg/gomp/declare-simd-1.c +++ b/gcc/testsuite/gcc.dg/gomp/declare-simd-1.c @@ -1,5 +1,6 @@ /* Test parsing of #pragma omp declare simd */ /* { dg-do compile } */ +/* { dg-additional-options "-Wno-old-style-definition" } */ #ifdef __aarch64__ #pragma omp declare simd uniform (a) aligned (b : 2 * sizeof (int)) \ diff --git a/gcc/testsuite/gcc.dg/ifelse-1.c b/gcc/testsuite/gcc.dg/ifelse-1.c index 2dd2208..cf111e2 100644 --- a/gcc/testsuite/gcc.dg/ifelse-1.c +++ b/gcc/testsuite/gcc.dg/ifelse-1.c @@ -1,6 +1,6 @@ /* { dg-do compile } -{ dg-options "-W -Wall" } +{ dg-options "-Wno-old-style-definition -W -Wall" } */ diff --git a/gcc/testsuite/gcc.dg/inline-33.c b/gcc/testsuite/gcc.dg/inline-33.c index 6ce3a53..a8a409d 100644 --- a/gcc/testsuite/gcc.dg/inline-33.c +++ b/gcc/testsuite/gcc.dg/inline-33.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O3 -fdump-tree-optimized" } */ +/* { dg-options "-std=gnu17 -O3 -fdump-tree-optimized" } */ /* { dg-add-options bind_pic_locally } */ int i; diff --git a/gcc/testsuite/gcc.dg/ipa/inline-5.c b/gcc/testsuite/gcc.dg/ipa/inline-5.c index 390ba49..cef871c 100644 --- a/gcc/testsuite/gcc.dg/ipa/inline-5.c +++ b/gcc/testsuite/gcc.dg/ipa/inline-5.c @@ -1,6 +1,6 @@ /* Check statements that are eliminated by inlining. */ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-ipa-fnsummary-details -fno-early-inlining -fno-partial-inlining -fno-ipa-cp" } */ +/* { dg-options "-std=gnu17 -O2 -fdump-ipa-fnsummary-details -fno-early-inlining -fno-partial-inlining -fno-ipa-cp" } */ struct a {int a,b,c,d,e;}; void t(int); diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-sra-21.c b/gcc/testsuite/gcc.dg/ipa/ipa-sra-21.c index 67806b8..17c1398 100644 --- a/gcc/testsuite/gcc.dg/ipa/ipa-sra-21.c +++ b/gcc/testsuite/gcc.dg/ipa/ipa-sra-21.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2" } */ +/* { dg-options "-std=gnu17 -O2" } */ typedef int a; typedef int b; diff --git a/gcc/testsuite/gcc.dg/ipa/pr102714.c b/gcc/testsuite/gcc.dg/ipa/pr102714.c index 8ab77a6..c93496d 100644 --- a/gcc/testsuite/gcc.dg/ipa/pr102714.c +++ b/gcc/testsuite/gcc.dg/ipa/pr102714.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fno-strict-aliasing -fdump-ipa-sra-details -fdump-tree-optimized" } */ +/* { dg-options "-std=gnu17 -O2 -fno-strict-aliasing -fdump-ipa-sra-details -fdump-tree-optimized" } */ typedef _Bool bool; diff --git a/gcc/testsuite/gcc.dg/ipa/pr104813.c b/gcc/testsuite/gcc.dg/ipa/pr104813.c index 34f413e..13e1e06 100644 --- a/gcc/testsuite/gcc.dg/ipa/pr104813.c +++ b/gcc/testsuite/gcc.dg/ipa/pr104813.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O3" } */ +/* { dg-options "-std=gnu17 -O3" } */ int a, b, c, d, *e; void f(int h) { diff --git a/gcc/testsuite/gcc.dg/ipa/pr108679.c b/gcc/testsuite/gcc.dg/ipa/pr108679.c index b1ed50b..714cdab 100644 --- a/gcc/testsuite/gcc.dg/ipa/pr108679.c +++ b/gcc/testsuite/gcc.dg/ipa/pr108679.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2" } */ +/* { dg-options "-std=gnu17 -O2" } */ struct S1 { signed f0; diff --git a/gcc/testsuite/gcc.dg/ipa/pr42706.c b/gcc/testsuite/gcc.dg/ipa/pr42706.c index 9c5f43a..0cb7d51 100644 --- a/gcc/testsuite/gcc.dg/ipa/pr42706.c +++ b/gcc/testsuite/gcc.dg/ipa/pr42706.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fno-early-inlining -fipa-sra" } */ +/* { dg-options "-std=gnu17 -O2 -fno-early-inlining -fipa-sra" } */ struct S { diff --git a/gcc/testsuite/gcc.dg/ipa/pr88214.c b/gcc/testsuite/gcc.dg/ipa/pr88214.c index 4daa982..c621796 100644 --- a/gcc/testsuite/gcc.dg/ipa/pr88214.c +++ b/gcc/testsuite/gcc.dg/ipa/pr88214.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2" } */ +/* { dg-options "-Wno-old-style-definition -O2" } */ void i(); short a; diff --git a/gcc/testsuite/gcc.dg/ipa/pr91853.c b/gcc/testsuite/gcc.dg/ipa/pr91853.c index 4bad780..4460968 100644 --- a/gcc/testsuite/gcc.dg/ipa/pr91853.c +++ b/gcc/testsuite/gcc.dg/ipa/pr91853.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "--param ipa-cp-value-list-size=0 -Os -fno-inline" } */ +/* { dg-options "-Wno-old-style-definition --param ipa-cp-value-list-size=0 -Os -fno-inline" } */ struct _wincore { diff --git a/gcc/testsuite/gcc.dg/ipa/pr93763.c b/gcc/testsuite/gcc.dg/ipa/pr93763.c index aa2e60c..6aa4c6e 100644 --- a/gcc/testsuite/gcc.dg/ipa/pr93763.c +++ b/gcc/testsuite/gcc.dg/ipa/pr93763.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O3" } */ +/* { dg-options "-std=gnu17 -O3" } */ typedef struct a a; struct a { diff --git a/gcc/testsuite/gcc.dg/ipa/pr96482-2.c b/gcc/testsuite/gcc.dg/ipa/pr96482-2.c index 54b71ac..77c34e5 100644 --- a/gcc/testsuite/gcc.dg/ipa/pr96482-2.c +++ b/gcc/testsuite/gcc.dg/ipa/pr96482-2.c @@ -1,6 +1,6 @@ /* PR ipa/96482 */ /* { dg-do compile } */ -/* { dg-options "-O2" } */ +/* { dg-options "-std=gnu17 -O2" } */ int i2c_transfer(); void _dev_err(); diff --git a/gcc/testsuite/gcc.dg/lto/20091013-1_2.c b/gcc/testsuite/gcc.dg/lto/20091013-1_2.c index 89caea8..283aedb 100644 --- a/gcc/testsuite/gcc.dg/lto/20091013-1_2.c +++ b/gcc/testsuite/gcc.dg/lto/20091013-1_2.c @@ -1,4 +1,4 @@ -/* { dg-options "-Wno-stringop-overread" } */ +/* { dg-options "-std=gnu17 -Wno-stringop-overread" } */ typedef struct HDC__ { int unused; } *HDC; typedef struct HFONT__ { int unused; } *HFONT; diff --git a/gcc/testsuite/gcc.dg/lto/20091015-1_2.c b/gcc/testsuite/gcc.dg/lto/20091015-1_2.c index 0bc940b..6fb7002 100644 --- a/gcc/testsuite/gcc.dg/lto/20091015-1_2.c +++ b/gcc/testsuite/gcc.dg/lto/20091015-1_2.c @@ -1,3 +1,4 @@ +/* { dg-options "-std=gnu17" } */ #include "20091015-1_a.h" #include "20091015-1_b.h" void foo (); diff --git a/gcc/testsuite/gcc.dg/lto/pr113197_1.c b/gcc/testsuite/gcc.dg/lto/pr113197_1.c index 30bf6f7..000f842 100644 --- a/gcc/testsuite/gcc.dg/lto/pr113197_1.c +++ b/gcc/testsuite/gcc.dg/lto/pr113197_1.c @@ -1,3 +1,4 @@ +/* { dg-options "-std=gnu17" } */ int a; void exit_error(); void register_dccp() { exit_error(a); } diff --git a/gcc/testsuite/gcc.dg/lto/pr54702_1.c b/gcc/testsuite/gcc.dg/lto/pr54702_1.c index c304682..7adc6a3 100644 --- a/gcc/testsuite/gcc.dg/lto/pr54702_1.c +++ b/gcc/testsuite/gcc.dg/lto/pr54702_1.c @@ -1,4 +1,4 @@ -/* { dg-options "-fpermissive" } */ +/* { dg-options "-std=gnu17 -fpermissive" } */ int *b; void *d; int c; diff --git a/gcc/testsuite/gcc.dg/lto/pr99849_0.c b/gcc/testsuite/gcc.dg/lto/pr99849_0.c index d489cee..5c97a7c 100644 --- a/gcc/testsuite/gcc.dg/lto/pr99849_0.c +++ b/gcc/testsuite/gcc.dg/lto/pr99849_0.c @@ -3,7 +3,7 @@ /* { dg-require-effective-target fpic } */ /* { dg-require-effective-target shared } */ /* { dg-extra-ld-options { -shared } } */ -/* { dg-lto-options { { -flto -flto-partition=1to1 -O2 -Wno-incompatible-pointer-types -Wno-discarded-qualifiers -fPIC } } } */ +/* { dg-lto-options { { -std=gnu17 -flto -flto-partition=1to1 -O2 -Wno-incompatible-pointer-types -Wno-discarded-qualifiers -fPIC } } } */ struct { struct A *a; } *b; struct B { int *b; }; diff --git a/gcc/testsuite/gcc.dg/noncompile/920923-1.c b/gcc/testsuite/gcc.dg/noncompile/920923-1.c index 006a071..957fea2 100644 --- a/gcc/testsuite/gcc.dg/noncompile/920923-1.c +++ b/gcc/testsuite/gcc.dg/noncompile/920923-1.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu17" } */ /* { dg-message "undeclared identifier is reported only once" "reminder for mmu_base" { target *-*-* } 0 } */ typedef BYTE unsigned char; /* { dg-error "expected" } */ /* { dg-warning "useless type name in empty declaration" "" { target *-*-* } .-1 } */ diff --git a/gcc/testsuite/gcc.dg/noncompile/old-style-parm-1.c b/gcc/testsuite/gcc.dg/noncompile/old-style-parm-1.c index 5f879c3..cf14acd 100644 --- a/gcc/testsuite/gcc.dg/noncompile/old-style-parm-1.c +++ b/gcc/testsuite/gcc.dg/noncompile/old-style-parm-1.c @@ -2,7 +2,7 @@ accepted. */ /* Origin: Joseph Myers <joseph@codesourcery.com> */ /* { dg-do compile } */ -/* { dg-options "" } */ +/* { dg-options "-Wno-old-style-definition" } */ void f(a) diff --git a/gcc/testsuite/gcc.dg/noncompile/old-style-parm-3.c b/gcc/testsuite/gcc.dg/noncompile/old-style-parm-3.c index f9d6d0f..6c276ca 100644 --- a/gcc/testsuite/gcc.dg/noncompile/old-style-parm-3.c +++ b/gcc/testsuite/gcc.dg/noncompile/old-style-parm-3.c @@ -1,5 +1,6 @@ /* PR c/71266 */ /* { dg-do compile } */ +/* { dg-additional-options "-Wno-old-style-definition" } */ int fn1 (a) enum b { /* { dg-warning "empty declaration" } */ diff --git a/gcc/testsuite/gcc.dg/noncompile/pr30552-2.c b/gcc/testsuite/gcc.dg/noncompile/pr30552-2.c index d884883..8351f5d 100644 --- a/gcc/testsuite/gcc.dg/noncompile/pr30552-2.c +++ b/gcc/testsuite/gcc.dg/noncompile/pr30552-2.c @@ -5,7 +5,7 @@ * internal compiler error. */ /* { dg-do compile } */ -/* { dg-options "" } */ +/* { dg-options "-Wno-old-style-definition" } */ int main() { diff --git a/gcc/testsuite/gcc.dg/noncompile/pr30552-3.c b/gcc/testsuite/gcc.dg/noncompile/pr30552-3.c index 23cc7e6..0e747be 100644 --- a/gcc/testsuite/gcc.dg/noncompile/pr30552-3.c +++ b/gcc/testsuite/gcc.dg/noncompile/pr30552-3.c @@ -5,7 +5,7 @@ * user error, not internal compiler error. */ /* { dg-do compile } */ -/* { dg-options "" } */ +/* { dg-options "-std=gnu17" } */ int main() { diff --git a/gcc/testsuite/gcc.dg/noncompile/pr71265.c b/gcc/testsuite/gcc.dg/noncompile/pr71265.c index 9c62aab..69507b5 100644 --- a/gcc/testsuite/gcc.dg/noncompile/pr71265.c +++ b/gcc/testsuite/gcc.dg/noncompile/pr71265.c @@ -1,5 +1,6 @@ /* PR c/71265 */ /* { dg-do compile } */ +/* { dg-additional-options "-Wno-old-style-definition" } */ void ID (ID) int ID [__func__]; /* { dg-error "size of array .ID. has non-integer type" } */ diff --git a/gcc/testsuite/gcc.dg/noncompile/pr79758-2.c b/gcc/testsuite/gcc.dg/noncompile/pr79758-2.c index e6a27f9..2e5323f 100644 --- a/gcc/testsuite/gcc.dg/noncompile/pr79758-2.c +++ b/gcc/testsuite/gcc.dg/noncompile/pr79758-2.c @@ -1,5 +1,6 @@ /* PR c/79758 */ /* { dg-do compile } */ +/* { dg-additional-options "-Wno-old-style-definition" } */ void fn1 (int[a]) { }; /* { dg-error "undeclared here" } */ void fn1 (b) { }; /* { dg-error "redefinition" } */ diff --git a/gcc/testsuite/gcc.dg/noncompile/pr79758.c b/gcc/testsuite/gcc.dg/noncompile/pr79758.c index e42a443..eab4925 100644 --- a/gcc/testsuite/gcc.dg/noncompile/pr79758.c +++ b/gcc/testsuite/gcc.dg/noncompile/pr79758.c @@ -1,6 +1,6 @@ /* PR c/79758 */ /* { dg-do compile } */ -/* { dg-additional-options "-fpermissive" } */ +/* { dg-additional-options "-Wno-old-style-definition -fpermissive" } */ void fn1 (int[a]) { }; /* { dg-error "undeclared here" } */ void fn1 (b) { }; /* { dg-error "redefinition" } */ diff --git a/gcc/testsuite/gcc.dg/noncompile/va-arg-1.c b/gcc/testsuite/gcc.dg/noncompile/va-arg-1.c index f36a492..3a33536 100644 --- a/gcc/testsuite/gcc.dg/noncompile/va-arg-1.c +++ b/gcc/testsuite/gcc.dg/noncompile/va-arg-1.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu17" } */ + #include <stdarg.h> void diff --git a/gcc/testsuite/gcc.dg/old-style-prom-1.c b/gcc/testsuite/gcc.dg/old-style-prom-1.c index 165ff98..f9b4139 100644 --- a/gcc/testsuite/gcc.dg/old-style-prom-1.c +++ b/gcc/testsuite/gcc.dg/old-style-prom-1.c @@ -1,7 +1,7 @@ /* Test for prototype followed by old-style definition, as in dremf-type-compat-1.c but with a non-built-in function. */ /* { dg-do compile } */ -/* { dg-options "" } */ +/* { dg-options "-std=gnu17" } */ float f (float, float); diff --git a/gcc/testsuite/gcc.dg/old-style-prom-2.c b/gcc/testsuite/gcc.dg/old-style-prom-2.c index e7e690e..4a1283b 100644 --- a/gcc/testsuite/gcc.dg/old-style-prom-2.c +++ b/gcc/testsuite/gcc.dg/old-style-prom-2.c @@ -1,7 +1,7 @@ /* Test for prototype followed by old-style definition, as in dremf-type-compat-2.c but with a non-built-in function. */ /* { dg-do compile } */ -/* { dg-options "-pedantic" } */ +/* { dg-options "-std=gnu17 -pedantic" } */ float f (float, float); /* { dg-warning "prototype declaration" } */ diff --git a/gcc/testsuite/gcc.dg/old-style-prom-3.c b/gcc/testsuite/gcc.dg/old-style-prom-3.c index 720367f..e84b39b 100644 --- a/gcc/testsuite/gcc.dg/old-style-prom-3.c +++ b/gcc/testsuite/gcc.dg/old-style-prom-3.c @@ -1,7 +1,7 @@ /* Test for prototype followed by old-style definition, as in dremf-type-compat-3.c but with a non-built-in function. */ /* { dg-do compile } */ -/* { dg-options "-pedantic-errors" } */ +/* { dg-options "-std=gnu17 -pedantic-errors" } */ float f (float, float); /* { dg-error "prototype declaration" } */ diff --git a/gcc/testsuite/gcc.dg/old-style-then-proto-1.c b/gcc/testsuite/gcc.dg/old-style-then-proto-1.c index e3e6186..d09e76e 100644 --- a/gcc/testsuite/gcc.dg/old-style-then-proto-1.c +++ b/gcc/testsuite/gcc.dg/old-style-then-proto-1.c @@ -2,7 +2,7 @@ Mismatched qualifiers used to be wrongly forbidden. */ /* Origin: Joseph Myers <joseph@codesourcery.com> */ /* { dg-do compile } */ -/* { dg-options "" } */ +/* { dg-options "-std=gnu17" } */ void f1() {} void f1(void); /* { dg-warning "prototype for 'f1' follows non-prototype definition" } */ diff --git a/gcc/testsuite/gcc.dg/parm-incomplete-1.c b/gcc/testsuite/gcc.dg/parm-incomplete-1.c index 02d97b9..0c0ae85 100644 --- a/gcc/testsuite/gcc.dg/parm-incomplete-1.c +++ b/gcc/testsuite/gcc.dg/parm-incomplete-1.c @@ -6,7 +6,7 @@ C99 6.7.5.3); the precise rules are unclear. */ /* Origin: Joseph Myers <jsm@polyomino.org.uk> */ /* { dg-do compile } */ -/* { dg-options "" } */ +/* { dg-options "-std=gnu17" } */ struct s; void f (struct s); diff --git a/gcc/testsuite/gcc.dg/parm-mismatch-1.c b/gcc/testsuite/gcc.dg/parm-mismatch-1.c index d7621bc..2136f72 100644 --- a/gcc/testsuite/gcc.dg/parm-mismatch-1.c +++ b/gcc/testsuite/gcc.dg/parm-mismatch-1.c @@ -2,7 +2,7 @@ (). */ /* Origin: Joseph Myers <joseph@codesourcery.com> */ /* { dg-do compile } */ -/* { dg-options "" } */ +/* { dg-options "-std=gnu17" } */ void f0(); /* { dg-message "note: previous declaration of 'f0'" "note" } */ void f0(int, ...); /* { dg-error "conflicting types for 'f0'" } */ diff --git a/gcc/testsuite/gcc.dg/permerror-default.c b/gcc/testsuite/gcc.dg/permerror-default.c index c674d68..b321a7d 100644 --- a/gcc/testsuite/gcc.dg/permerror-default.c +++ b/gcc/testsuite/gcc.dg/permerror-default.c @@ -1,4 +1,4 @@ -/* { dg-options "" } */ +/* { dg-options "-std=gnu17" } */ /* Overview test for C permerrors. This test should be kept in sync with the other permerror-* tests. If new permerrors are added, test cases should be diff --git a/gcc/testsuite/gcc.dg/permerror-fpermissive-nowarning.c b/gcc/testsuite/gcc.dg/permerror-fpermissive-nowarning.c index d07c863..19629fc 100644 --- a/gcc/testsuite/gcc.dg/permerror-fpermissive-nowarning.c +++ b/gcc/testsuite/gcc.dg/permerror-fpermissive-nowarning.c @@ -1,4 +1,4 @@ -/* { dg-options "-fpermissive -Wno-implicit-function-declaration -Wno-implicit-int -Wno-int-conversion -Wno-incompatible-pointer-types -Wno-return-mismatch -Wno-declaration-missing-parameter-type" } */ +/* { dg-options "-std=gnu17 -fpermissive -Wno-implicit-function-declaration -Wno-implicit-int -Wno-int-conversion -Wno-incompatible-pointer-types -Wno-return-mismatch -Wno-declaration-missing-parameter-type" } */ /* This test checks that permerrors can be disabled using -Wno-* options even if -fpermissive is used. */ diff --git a/gcc/testsuite/gcc.dg/permerror-fpermissive.c b/gcc/testsuite/gcc.dg/permerror-fpermissive.c index fd3020d..46a8200 100644 --- a/gcc/testsuite/gcc.dg/permerror-fpermissive.c +++ b/gcc/testsuite/gcc.dg/permerror-fpermissive.c @@ -1,4 +1,4 @@ -/* { dg-options "-fpermissive" } */ +/* { dg-options "-std=gnu17 -fpermissive" } */ /* Overview test for C permerrors. This test should be kept in sync with the other permerror-* tests. If new permerrors are added, test cases should be diff --git a/gcc/testsuite/gcc.dg/permerror-noerror.c b/gcc/testsuite/gcc.dg/permerror-noerror.c index fc68dfa..614fb06 100644 --- a/gcc/testsuite/gcc.dg/permerror-noerror.c +++ b/gcc/testsuite/gcc.dg/permerror-noerror.c @@ -1,4 +1,4 @@ -/* { dg-options "-Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=int-conversion -Wno-error=incompatible-pointer-types -Wno-error=return-mismatch -Wno-error=declaration-missing-parameter-type" } */ +/* { dg-options "-std=gnu17 -Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=int-conversion -Wno-error=incompatible-pointer-types -Wno-error=return-mismatch -Wno-error=declaration-missing-parameter-type" } */ /* This test should emulate the effect of -fpermissive by adding all the -Wno-error= options that are implied by -fpermissive. It needs to be diff --git a/gcc/testsuite/gcc.dg/permerror-nowarning.c b/gcc/testsuite/gcc.dg/permerror-nowarning.c index b1cf799..3182a24 100644 --- a/gcc/testsuite/gcc.dg/permerror-nowarning.c +++ b/gcc/testsuite/gcc.dg/permerror-nowarning.c @@ -1,4 +1,4 @@ -/* { dg-options "-Wno-implicit-function-declaration -Wno-implicit-int -Wno-int-conversion -Wno-incompatible-pointer-types -Wno-return-mismatch -Wno-declaration-missing-parameter-type" } */ +/* { dg-options "-std=gnu17 -Wno-implicit-function-declaration -Wno-implicit-int -Wno-int-conversion -Wno-incompatible-pointer-types -Wno-return-mismatch -Wno-declaration-missing-parameter-type" } */ /* This test checks that permerrors can be disabled using -Wno-* options. */ diff --git a/gcc/testsuite/gcc.dg/permerror-pedantic.c b/gcc/testsuite/gcc.dg/permerror-pedantic.c index 2380bb2..11fa83a 100644 --- a/gcc/testsuite/gcc.dg/permerror-pedantic.c +++ b/gcc/testsuite/gcc.dg/permerror-pedantic.c @@ -1,4 +1,4 @@ -/* { dg-options "-pedantic-errors" } */ +/* { dg-options "-std=gnu17 -pedantic-errors" } */ /* Overview test for C permerrors. This test should be kept in sync with the other permerror-* tests. If new permerrors are added, test cases should be diff --git a/gcc/testsuite/gcc.dg/plugin/infoleak-net-ethtool-ioctl.c b/gcc/testsuite/gcc.dg/plugin/infoleak-net-ethtool-ioctl.c index dce6e44..52846c4 100644 --- a/gcc/testsuite/gcc.dg/plugin/infoleak-net-ethtool-ioctl.c +++ b/gcc/testsuite/gcc.dg/plugin/infoleak-net-ethtool-ioctl.c @@ -2,7 +2,7 @@ net/ethtool/ioctl.c */ /* { dg-do compile } */ -/* { dg-options "-fanalyzer" } */ +/* { dg-options "-std=gnu17 -fanalyzer" } */ /* { dg-require-effective-target analyzer } */ typedef signed char __s8; diff --git a/gcc/testsuite/gcc.dg/pointer-array-quals-1.c b/gcc/testsuite/gcc.dg/pointer-array-quals-1.c index be80912..36398ef 100644 --- a/gcc/testsuite/gcc.dg/pointer-array-quals-1.c +++ b/gcc/testsuite/gcc.dg/pointer-array-quals-1.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* Origin: Martin Uecker <uecker@eecs.berkeley.edu> */ -/* { dg-options "" } */ +/* { dg-options "-std=gnu17" } */ void tvoid(void* x); void transpose0(double* out, const double* in) { } void transpose1(double out[2][2], const double in[2][2]) { } diff --git a/gcc/testsuite/gcc.dg/pointer-array-quals-2.c b/gcc/testsuite/gcc.dg/pointer-array-quals-2.c index 4c95d8a..32adf79 100644 --- a/gcc/testsuite/gcc.dg/pointer-array-quals-2.c +++ b/gcc/testsuite/gcc.dg/pointer-array-quals-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-pedantic-errors" } */ +/* { dg-options "-std=gnu17 -pedantic-errors" } */ /* Origin: Martin Uecker <uecker@eecs.berkeley.edu> */ void tvoid(void* x); void transpose0(double* out, const double* in) { } diff --git a/gcc/testsuite/gcc.dg/pr100791.c b/gcc/testsuite/gcc.dg/pr100791.c index 00cc4b1..f0e7da5 100644 --- a/gcc/testsuite/gcc.dg/pr100791.c +++ b/gcc/testsuite/gcc.dg/pr100791.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-fpermissive" } */ +/* { dg-options "-std=gnu17 -fpermissive" } */ static inline int __attribute__((__always_inline__)) foo () diff --git a/gcc/testsuite/gcc.dg/pr100843.c b/gcc/testsuite/gcc.dg/pr100843.c index 695a2ec..a8ecb5a 100644 --- a/gcc/testsuite/gcc.dg/pr100843.c +++ b/gcc/testsuite/gcc.dg/pr100843.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O1 -w" } */ +/* { dg-options "-std=gnu17 -O1 -w" } */ char c; void *memset(); diff --git a/gcc/testsuite/gcc.dg/pr102273.c b/gcc/testsuite/gcc.dg/pr102273.c index 568e44e..2cb396e 100644 --- a/gcc/testsuite/gcc.dg/pr102273.c +++ b/gcc/testsuite/gcc.dg/pr102273.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-ftrivial-auto-var-init=zero" } */ +/* { dg-options "-std=gnu17 -ftrivial-auto-var-init=zero" } */ void bar(); diff --git a/gcc/testsuite/gcc.dg/pr102385.c b/gcc/testsuite/gcc.dg/pr102385.c index bdccc9e..f64017e 100644 --- a/gcc/testsuite/gcc.dg/pr102385.c +++ b/gcc/testsuite/gcc.dg/pr102385.c @@ -1,4 +1,4 @@ -/* { dg-options "-Wall -Wextra -O2 -fno-toplevel-reorder -fno-tree-ch -fno-tree-dce -fno-tree-dominator-opts -fno-tree-dse -fno-tree-loop-ivcanon -fpredictive-commoning -fdump-tree-pcom-details-blocks -fdump-tree-lim-details-blocks" } */ +/* { dg-options "-std=gnu17 -Wall -Wextra -O2 -fno-toplevel-reorder -fno-tree-ch -fno-tree-dce -fno-tree-dominator-opts -fno-tree-dse -fno-tree-loop-ivcanon -fpredictive-commoning -fdump-tree-pcom-details-blocks -fdump-tree-lim-details-blocks" } */ short a, b; int c[9]; diff --git a/gcc/testsuite/gcc.dg/pr103222.c b/gcc/testsuite/gcc.dg/pr103222.c index 2a84437..9b629f2 100644 --- a/gcc/testsuite/gcc.dg/pr103222.c +++ b/gcc/testsuite/gcc.dg/pr103222.c @@ -1,5 +1,5 @@ // { dg-do run } -// { dg-options "-O2" } +// { dg-options "-std=gnu17 -O2" } #include <stdint.h> #include <stdio.h> diff --git a/gcc/testsuite/gcc.dg/pr105140.c b/gcc/testsuite/gcc.dg/pr105140.c index 173dc8c..32267f0 100644 --- a/gcc/testsuite/gcc.dg/pr105140.c +++ b/gcc/testsuite/gcc.dg/pr105140.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-fpermissive -Os -w -Wno-psabi" } */ +/* { dg-options "-std=gnu17 -fpermissive -Os -w -Wno-psabi" } */ /* { dg-skip-if "PR105147" { powerpc*-*-* s390*-*-* } } */ typedef char __attribute__((__vector_size__ (16 * sizeof (char)))) U; diff --git a/gcc/testsuite/gcc.dg/pr105150.c b/gcc/testsuite/gcc.dg/pr105150.c index 900460c..b8c35c0 100644 --- a/gcc/testsuite/gcc.dg/pr105150.c +++ b/gcc/testsuite/gcc.dg/pr105150.c @@ -1,5 +1,5 @@ /* PR tree-optimization/105150 */ -/* { dg-options "-w -Ofast" } */ +/* { dg-options "-std=gnu17 -w -Ofast" } */ #define A(name) __typeof (__builtin_##name (0)) name (); \ float name##1 () { return !name (1); } \ diff --git a/gcc/testsuite/gcc.dg/pr105250.c b/gcc/testsuite/gcc.dg/pr105250.c index c4f4ea0..ba3b0dd 100644 --- a/gcc/testsuite/gcc.dg/pr105250.c +++ b/gcc/testsuite/gcc.dg/pr105250.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-fpermissive -w -Wno-psabi -O2" } */ +/* { dg-options "-std=gnu17 -fpermissive -w -Wno-psabi -O2" } */ /* { dg-skip-if "PR105266" { powerpc*-*-* s390*-*-* } } */ typedef int __attribute__((__vector_size__(4))) T; diff --git a/gcc/testsuite/gcc.dg/pr105972.c b/gcc/testsuite/gcc.dg/pr105972.c index 73f3385..93518f6 100644 --- a/gcc/testsuite/gcc.dg/pr105972.c +++ b/gcc/testsuite/gcc.dg/pr105972.c @@ -1,6 +1,6 @@ /* PR c/105972 */ /* { dg-do compile } */ -/* { dg-options "-O2 -g" } */ +/* { dg-options "-Wno-old-style-definition -O2 -g" } */ __attribute__((optimize (0))) int foo (void) diff --git a/gcc/testsuite/gcc.dg/pr111039.c b/gcc/testsuite/gcc.dg/pr111039.c index a64c46c..0ba142b 100644 --- a/gcc/testsuite/gcc.dg/pr111039.c +++ b/gcc/testsuite/gcc.dg/pr111039.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O" } */ +/* { dg-options "-std=gnu17 -O" } */ #if __SIZEOF_INT__ < 4 #define int __INT32_TYPE__ diff --git a/gcc/testsuite/gcc.dg/pr111407.c b/gcc/testsuite/gcc.dg/pr111407.c index a171074..211e19f 100644 --- a/gcc/testsuite/gcc.dg/pr111407.c +++ b/gcc/testsuite/gcc.dg/pr111407.c @@ -1,6 +1,6 @@ /* PR tree-optimization/111407*/ /* { dg-do compile } */ -/* { dg-options "-O2" } */ +/* { dg-options "-std=gnu17 -O2" } */ enum { SEND_TOFILE } __sigsetjmp(); void fclose(); void foldergets(); diff --git a/gcc/testsuite/gcc.dg/pr111922.c b/gcc/testsuite/gcc.dg/pr111922.c index 4f429d7..7201c0e 100644 --- a/gcc/testsuite/gcc.dg/pr111922.c +++ b/gcc/testsuite/gcc.dg/pr111922.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fno-tree-fre" } */ +/* { dg-options "-Wno-old-style-definition -O2 -fno-tree-fre" } */ void f2 (void); void f4 (int, int, int); diff --git a/gcc/testsuite/gcc.dg/pr15236.c b/gcc/testsuite/gcc.dg/pr15236.c index b01a4e8..9b92489 100644 --- a/gcc/testsuite/gcc.dg/pr15236.c +++ b/gcc/testsuite/gcc.dg/pr15236.c @@ -1,7 +1,7 @@ /* PR 15236: pedantic switch modifies treatment of non-ISO compliant enumerations. */ /* { dg-do compile } */ -/* { dg-options "-Wall -Wextra -pedantic-errors -Wconversion" } */ +/* { dg-options "-std=gnu17 -Wall -Wextra -pedantic-errors -Wconversion" } */ typedef enum OMX_ERRORTYPE { OMX_ErrorNone = 0, diff --git a/gcc/testsuite/gcc.dg/pr17188-1.c b/gcc/testsuite/gcc.dg/pr17188-1.c index 522a14f..142f42a 100644 --- a/gcc/testsuite/gcc.dg/pr17188-1.c +++ b/gcc/testsuite/gcc.dg/pr17188-1.c @@ -3,7 +3,7 @@ diagnosed. Bug 17188. */ /* Origin: Joseph Myers <jsm@polyomino.org.uk> */ /* { dg-do compile } */ -/* { dg-options "" } */ +/* { dg-options "-std=gnu17" } */ struct s0 { }; /* { dg-message "note: originally defined here" } */ struct s0; diff --git a/gcc/testsuite/gcc.dg/pr20368-1.c b/gcc/testsuite/gcc.dg/pr20368-1.c index 4140397..2959328 100644 --- a/gcc/testsuite/gcc.dg/pr20368-1.c +++ b/gcc/testsuite/gcc.dg/pr20368-1.c @@ -1,7 +1,7 @@ /* ICE with -Wstrict-prototypes and typeof an undeclared function. Bug 20368. */ /* { dg-do compile } */ -/* { dg-options "-Wstrict-prototypes" } */ +/* { dg-options "-std=gnu17 -Wstrict-prototypes" } */ extern __typeof (f) g; /* { dg-error "'f' undeclared here \\(not in a function\\)" } */ diff --git a/gcc/testsuite/gcc.dg/pr20368-2.c b/gcc/testsuite/gcc.dg/pr20368-2.c index 7faded6..3ca5f63 100644 --- a/gcc/testsuite/gcc.dg/pr20368-2.c +++ b/gcc/testsuite/gcc.dg/pr20368-2.c @@ -1,7 +1,7 @@ /* ICE with -Wstrict-prototypes and typeof an undeclared function. Bug 20368. Test with -Wmissing-prototypes. */ /* { dg-do compile } */ -/* { dg-options "-Wmissing-prototypes" } */ +/* { dg-options "-std=gnu17 -Wmissing-prototypes" } */ extern __typeof (f) g; /* { dg-error "'f' undeclared here \\(not in a function\\)" } */ diff --git a/gcc/testsuite/gcc.dg/pr20368-3.c b/gcc/testsuite/gcc.dg/pr20368-3.c index 0d0ea6d..e3b5194 100644 --- a/gcc/testsuite/gcc.dg/pr20368-3.c +++ b/gcc/testsuite/gcc.dg/pr20368-3.c @@ -1,7 +1,7 @@ /* ICE with -Wstrict-prototypes and typeof an undeclared function. Bug 20368. Test with -Wmissing-declarations. */ /* { dg-do compile } */ -/* { dg-options "-Wmissing-declarations" } */ +/* { dg-options "-std=gnu17 -Wmissing-declarations" } */ extern __typeof (f) g; /* { dg-error "'f' undeclared here \\(not in a function\\)" } */ diff --git a/gcc/testsuite/gcc.dg/pr27331.c b/gcc/testsuite/gcc.dg/pr27331.c index 9b5c71e..50ec9a1 100644 --- a/gcc/testsuite/gcc.dg/pr27331.c +++ b/gcc/testsuite/gcc.dg/pr27331.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -ftree-vectorize" } */ +/* { dg-options "-Wno-old-style-definition -O2 -ftree-vectorize" } */ struct funny_match { diff --git a/gcc/testsuite/gcc.dg/pr27861-1.c b/gcc/testsuite/gcc.dg/pr27861-1.c index 8d6d791..e8f86f2 100644 --- a/gcc/testsuite/gcc.dg/pr27861-1.c +++ b/gcc/testsuite/gcc.dg/pr27861-1.c @@ -4,7 +4,7 @@ later producing a VAR_DECL tree whose DECL_RTL's mode didn't match the VAR_DECL's type's mode. */ /* { dg-do compile } */ -/* { dg-options "-O2" } */ +/* { dg-options "-std=gnu17 -O2" } */ typedef struct sim_state *SIM_DESC; typedef enum diff --git a/gcc/testsuite/gcc.dg/pr28121.c b/gcc/testsuite/gcc.dg/pr28121.c index 9e306f5..93d065f 100644 --- a/gcc/testsuite/gcc.dg/pr28121.c +++ b/gcc/testsuite/gcc.dg/pr28121.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2" } */ +/* { dg-options "-std=gnu17 -O2" } */ int GetMouseButton (); int ParsePos (); diff --git a/gcc/testsuite/gcc.dg/pr28243.c b/gcc/testsuite/gcc.dg/pr28243.c index a6d693e..fd08b99 100644 --- a/gcc/testsuite/gcc.dg/pr28243.c +++ b/gcc/testsuite/gcc.dg/pr28243.c @@ -3,7 +3,7 @@ /* { dg-do compile } */ /* { dg-require-effective-target fpic } */ -/* { dg-options "-O2 -ftracer -fPIC" } */ +/* { dg-options "-std=gnu17 -O2 -ftracer -fPIC" } */ struct displayfuncs { void (*init) (); diff --git a/gcc/testsuite/gcc.dg/pr28888.c b/gcc/testsuite/gcc.dg/pr28888.c index 3bad18b..dea52f1 100644 --- a/gcc/testsuite/gcc.dg/pr28888.c +++ b/gcc/testsuite/gcc.dg/pr28888.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -ftree-vectorize" } */ +/* { dg-options "-std=gnu17 -O2 -ftree-vectorize" } */ static const unsigned char _c30[] = "statistic of allocated integer registers:"; diff --git a/gcc/testsuite/gcc.dg/pr29254.c b/gcc/testsuite/gcc.dg/pr29254.c index df6ba57..1770a97 100644 --- a/gcc/testsuite/gcc.dg/pr29254.c +++ b/gcc/testsuite/gcc.dg/pr29254.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O3 -Werror" } */ +/* { dg-options "-std=gnu17 -O3 -Werror" } */ int value_compare (); diff --git a/gcc/testsuite/gcc.dg/pr34457-1.c b/gcc/testsuite/gcc.dg/pr34457-1.c index 3dca13d..ef2419f 100644 --- a/gcc/testsuite/gcc.dg/pr34457-1.c +++ b/gcc/testsuite/gcc.dg/pr34457-1.c @@ -2,7 +2,7 @@ /* { dg-do link } */ /* { dg-require-effective-target trampolines } */ /* { dg-require-effective-target lto } */ -/* { dg-options "-flto -O2" } */ +/* { dg-options "-std=gnu17 -flto -O2" } */ /* { dg-additional-sources "pr34457-2.c" } */ diff --git a/gcc/testsuite/gcc.dg/pr36015.c b/gcc/testsuite/gcc.dg/pr36015.c index fc31535..85b441c 100644 --- a/gcc/testsuite/gcc.dg/pr36015.c +++ b/gcc/testsuite/gcc.dg/pr36015.c @@ -1,7 +1,7 @@ /* PR target/36015 */ /* { dg-do run } */ -/* { dg-options "-O0" } */ -/* { dg-options "-O0 -mregparm=3" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ +/* { dg-options "-std=gnu17 -O0" } */ +/* { dg-options "-std=gnu17 -O0 -mregparm=3" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ static int test (); diff --git a/gcc/testsuite/gcc.dg/pr38245-3.c b/gcc/testsuite/gcc.dg/pr38245-3.c index 6ef8372..ae687c6 100644 --- a/gcc/testsuite/gcc.dg/pr38245-3.c +++ b/gcc/testsuite/gcc.dg/pr38245-3.c @@ -1,7 +1,7 @@ /* PR rtl-optimization/38245 */ /* { dg-do run } */ /* { dg-additional-sources "pr38245-4.c" } */ -/* { dg-options "-O2" } */ +/* { dg-options "-std=gnu17 -O2" } */ #include "pr38245-3.h" diff --git a/gcc/testsuite/gcc.dg/pr38245-4.c b/gcc/testsuite/gcc.dg/pr38245-4.c index c9b3d2d..7b63b98 100644 --- a/gcc/testsuite/gcc.dg/pr38245-4.c +++ b/gcc/testsuite/gcc.dg/pr38245-4.c @@ -1,6 +1,6 @@ /* PR rtl-optimization/38245 */ /* { dg-do compile } */ -/* { dg-options "" } */ +/* { dg-options "-std=gnu17" } */ #include "pr38245-3.h" diff --git a/gcc/testsuite/gcc.dg/pr41241.c b/gcc/testsuite/gcc.dg/pr41241.c index 42fb2f7..5364a0a 100644 --- a/gcc/testsuite/gcc.dg/pr41241.c +++ b/gcc/testsuite/gcc.dg/pr41241.c @@ -1,7 +1,7 @@ /* PR bootstrap/41241 */ /* { dg-do compile } */ -/* { dg-options "-O2 -fcompare-debug -g" } */ -/* { dg-options "-O2 -fcompare-debug -g -march=i586 -mtune=i586 -fomit-frame-pointer" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ +/* { dg-options "-std=gnu17 -O2 -fcompare-debug -g" } */ +/* { dg-options "-std=gnu17 -O2 -fcompare-debug -g -march=i586 -mtune=i586 -fomit-frame-pointer" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ typedef struct { int t1; int t2; int t3; } *T; typedef struct { int s; } S; diff --git a/gcc/testsuite/gcc.dg/pr43058.c b/gcc/testsuite/gcc.dg/pr43058.c index bba6f81..c1ba39c 100644 --- a/gcc/testsuite/gcc.dg/pr43058.c +++ b/gcc/testsuite/gcc.dg/pr43058.c @@ -1,6 +1,6 @@ /* PR debug/43058 */ /* { dg-do compile } */ -/* { dg-options "-g -O2" } */ +/* { dg-options "-std=gnu17 -g -O2" } */ /* { dg-timeout-factor 4 } */ extern void *f1 (void *, void *, void *); diff --git a/gcc/testsuite/gcc.dg/pr44539.c b/gcc/testsuite/gcc.dg/pr44539.c index 9cfff7a..cb9a631 100644 --- a/gcc/testsuite/gcc.dg/pr44539.c +++ b/gcc/testsuite/gcc.dg/pr44539.c @@ -1,6 +1,6 @@ /* PR tree-optimization/44539 */ /* { dg-do compile } */ -/* { dg-options "-ftracer -freorder-blocks -O2" } */ +/* { dg-options "-std=gnu17 -ftracer -freorder-blocks -O2" } */ void bar (int file); extern int baz (void); diff --git a/gcc/testsuite/gcc.dg/pr45055.c b/gcc/testsuite/gcc.dg/pr45055.c index 899de50..305f823 100644 --- a/gcc/testsuite/gcc.dg/pr45055.c +++ b/gcc/testsuite/gcc.dg/pr45055.c @@ -1,6 +1,6 @@ /* PR debug/45055 */ /* { dg-do compile } */ -/* { dg-options "-O2 -ftracer -fsched-pressure -funroll-loops -fschedule-insns -fcompare-debug" } */ +/* { dg-options "-std=gnu17 -O2 -ftracer -fsched-pressure -funroll-loops -fschedule-insns -fcompare-debug" } */ /* { dg-require-effective-target scheduling } */ int colormap[10]; diff --git a/gcc/testsuite/gcc.dg/pr50908.c b/gcc/testsuite/gcc.dg/pr50908.c index 114dded..3083a52 100644 --- a/gcc/testsuite/gcc.dg/pr50908.c +++ b/gcc/testsuite/gcc.dg/pr50908.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-require-effective-target lp64 } */ -/* { dg-options "-O2 -ftree-tail-merge" } */ +/* { dg-options "-Wno-old-style-definition -O2 -ftree-tail-merge" } */ enum Lisp_Type { diff --git a/gcc/testsuite/gcc.dg/pr60647-1.c b/gcc/testsuite/gcc.dg/pr60647-1.c index 99f5919..e5d77f2 100644 --- a/gcc/testsuite/gcc.dg/pr60647-1.c +++ b/gcc/testsuite/gcc.dg/pr60647-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2" } */ +/* { dg-options "-Wno-old-style-definition -O2" } */ struct _wincore { diff --git a/gcc/testsuite/gcc.dg/pr63762.c b/gcc/testsuite/gcc.dg/pr63762.c index df11067..8de8e63 100644 --- a/gcc/testsuite/gcc.dg/pr63762.c +++ b/gcc/testsuite/gcc.dg/pr63762.c @@ -1,6 +1,6 @@ /* PR middle-end/63762 */ /* { dg-do assemble } */ -/* { dg-options "-O2" } */ +/* { dg-options "-std=gnu17 -O2" } */ #include <stdlib.h> diff --git a/gcc/testsuite/gcc.dg/pr63804.c b/gcc/testsuite/gcc.dg/pr63804.c index f0a02f2..f92822a 100644 --- a/gcc/testsuite/gcc.dg/pr63804.c +++ b/gcc/testsuite/gcc.dg/pr63804.c @@ -1,6 +1,6 @@ /* PR rtl-optimization/63804 */ /* { dg-do compile } */ -/* { dg-options "-O2 -g" } */ +/* { dg-options "-std=gnu17 -O2 -g" } */ struct A { int gen; } e; int a, d; diff --git a/gcc/testsuite/gcc.dg/pr68306-3.c b/gcc/testsuite/gcc.dg/pr68306-3.c index f5a8c10..cac464f 100644 --- a/gcc/testsuite/gcc.dg/pr68306-3.c +++ b/gcc/testsuite/gcc.dg/pr68306-3.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O3" } */ +/* { dg-options "-std=gnu17 -O3" } */ /* { dg-additional-options "-mno-sse -mno-mmx" { target i?86-*-* x86_64-*-* } } */ /* { dg-additional-options "-mno-altivec -mno-vsx" { target powerpc*-*-* } } */ diff --git a/gcc/testsuite/gcc.dg/pr68533.c b/gcc/testsuite/gcc.dg/pr68533.c index 49e67a9..5e9a4c6 100644 --- a/gcc/testsuite/gcc.dg/pr68533.c +++ b/gcc/testsuite/gcc.dg/pr68533.c @@ -1,6 +1,6 @@ /* PR c/68533 */ /* { dg-do compile } */ -/* { dg-options "" } */ +/* { dg-options "-std=gnu17" } */ struct T { int t; }; diff --git a/gcc/testsuite/gcc.dg/pr69156.c b/gcc/testsuite/gcc.dg/pr69156.c index 5740971..97b46aa 100644 --- a/gcc/testsuite/gcc.dg/pr69156.c +++ b/gcc/testsuite/gcc.dg/pr69156.c @@ -1,6 +1,6 @@ /* PR tree-optimization/69156 */ /* { dg-do compile } */ -/* { dg-options "-fpermissive -O1 -fno-tree-ccp" } */ +/* { dg-options "-std=gnu17 -fpermissive -O1 -fno-tree-ccp" } */ _Bool foo () diff --git a/gcc/testsuite/gcc.dg/pr7356-2.c b/gcc/testsuite/gcc.dg/pr7356-2.c index ad67975..9bed60d 100644 --- a/gcc/testsuite/gcc.dg/pr7356-2.c +++ b/gcc/testsuite/gcc.dg/pr7356-2.c @@ -1,4 +1,4 @@ -/* { dg-options "-fdiagnostics-show-caret" } */ +/* { dg-options "-Wno-old-style-definition -fdiagnostics-show-caret" } */ int i /* { dg-error "6: expected ';' before 'int'" } */ int j; diff --git a/gcc/testsuite/gcc.dg/pr79983.c b/gcc/testsuite/gcc.dg/pr79983.c index 1e292d4..2cf8300 100644 --- a/gcc/testsuite/gcc.dg/pr79983.c +++ b/gcc/testsuite/gcc.dg/pr79983.c @@ -1,6 +1,6 @@ /* PR c/79983 */ /* { dg-do compile } */ -/* { dg-options "" } */ +/* { dg-options "-std=gnu17" } */ struct S; struct S { int i; }; /* { dg-message "originally defined here" } */ diff --git a/gcc/testsuite/gcc.dg/pr83463.c b/gcc/testsuite/gcc.dg/pr83463.c index 9142d27..2af130c 100644 --- a/gcc/testsuite/gcc.dg/pr83463.c +++ b/gcc/testsuite/gcc.dg/pr83463.c @@ -1,7 +1,7 @@ /* PR middle-end/83463 */ /* { dg-do compile } */ /* { dg-prune-output "conflicting types for built-in" } */ -/* { dg-options "-O2 -Wrestrict -Wno-pointer-to-int-cast" } */ +/* { dg-options "-std=gnu17 -O2 -Wrestrict -Wno-pointer-to-int-cast" } */ int *a; void *memcpy (); diff --git a/gcc/testsuite/gcc.dg/pr87347.c b/gcc/testsuite/gcc.dg/pr87347.c index 2077964..009f959 100644 --- a/gcc/testsuite/gcc.dg/pr87347.c +++ b/gcc/testsuite/gcc.dg/pr87347.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-Wabsolute-value" } */ +/* { dg-options "-std=gnu17 -Wabsolute-value" } */ int a; int abs(); diff --git a/gcc/testsuite/gcc.dg/pr89521-1.c b/gcc/testsuite/gcc.dg/pr89521-1.c index ebf2c59..282c4f8 100644 --- a/gcc/testsuite/gcc.dg/pr89521-1.c +++ b/gcc/testsuite/gcc.dg/pr89521-1.c @@ -1,6 +1,6 @@ /* PR c/89521 */ /* { dg-do compile } */ -/* { dg-options "-Ofast -w" } */ +/* { dg-options "-std=gnu17 -Ofast -w" } */ #define A(name) __typeof (__builtin_##name (0)) name (); long name##1 () { return name (1); } #define B(name) A(name) A(name##f) A(name##l) diff --git a/gcc/testsuite/gcc.dg/pr89521-2.c b/gcc/testsuite/gcc.dg/pr89521-2.c index 5e37c91..b5ef886 100644 --- a/gcc/testsuite/gcc.dg/pr89521-2.c +++ b/gcc/testsuite/gcc.dg/pr89521-2.c @@ -1,6 +1,6 @@ /* PR c/89521 */ /* { dg-do compile } */ -/* { dg-options "-Ofast -w" } */ +/* { dg-options "-std=gnu17 -Ofast -w" } */ #define A(name) __typeof (__builtin_##name (0)) name (); \ float name##1 () { return name (1); } \ diff --git a/gcc/testsuite/gcc.dg/pr90648.c b/gcc/testsuite/gcc.dg/pr90648.c index bf1fa98..5a9922d 100644 --- a/gcc/testsuite/gcc.dg/pr90648.c +++ b/gcc/testsuite/gcc.dg/pr90648.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O" } */ +/* { dg-options "-std=gnu17 -O" } */ extern double copysign (); double foo (double x) diff --git a/gcc/testsuite/gcc.dg/pr93573-1.c b/gcc/testsuite/gcc.dg/pr93573-1.c index 26ec9b7..50a1c97 100644 --- a/gcc/testsuite/gcc.dg/pr93573-1.c +++ b/gcc/testsuite/gcc.dg/pr93573-1.c @@ -1,6 +1,6 @@ /* PR c/93573 */ /* { dg-do compile } */ -/* { dg-options "" } */ +/* { dg-options "-std=gnu17" } */ void bar (); diff --git a/gcc/testsuite/gcc.dg/pr94167.c b/gcc/testsuite/gcc.dg/pr94167.c index 4b819d3..efc87ab 100644 --- a/gcc/testsuite/gcc.dg/pr94167.c +++ b/gcc/testsuite/gcc.dg/pr94167.c @@ -1,6 +1,6 @@ /* PR debug/94167 */ /* { dg-do compile } */ -/* { dg-options "-O2 -fcompare-debug" } */ +/* { dg-options "-std=gnu17 -O2 -fcompare-debug" } */ struct S { int g, h; signed char i; int j; signed char k; int l[4]; } a, c; struct T { signed char g; } e; diff --git a/gcc/testsuite/gcc.dg/pr94705.c b/gcc/testsuite/gcc.dg/pr94705.c index 96392ab..6bd92f1 100644 --- a/gcc/testsuite/gcc.dg/pr94705.c +++ b/gcc/testsuite/gcc.dg/pr94705.c @@ -1,6 +1,6 @@ /* PR c/94705 */ /* { dg-do compile } */ -/* { dg-options "" } */ +/* { dg-options "-std=gnu17" } */ void foo (); diff --git a/gcc/testsuite/gcc.dg/pr95118.c b/gcc/testsuite/gcc.dg/pr95118.c index 69bc47f..59173e6 100644 --- a/gcc/testsuite/gcc.dg/pr95118.c +++ b/gcc/testsuite/gcc.dg/pr95118.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-fre" } */ +/* { dg-options "-std=gnu17 -O2 -fdump-tree-fre" } */ void a(); void b() { diff --git a/gcc/testsuite/gcc.dg/pr96335.c b/gcc/testsuite/gcc.dg/pr96335.c index ab243b3..a6203f3 100644 --- a/gcc/testsuite/gcc.dg/pr96335.c +++ b/gcc/testsuite/gcc.dg/pr96335.c @@ -1,6 +1,6 @@ /* PR middle-end/96335 */ /* { dg-do compile } */ -/* { dg-options "-O2" } */ +/* { dg-options "-std=gnu17 -O2" } */ void bar (int, void *) __attribute__((__access__(__read_only__, 2))); diff --git a/gcc/testsuite/gcc.dg/pr97830.c b/gcc/testsuite/gcc.dg/pr97830.c index 3729a65..fd79620 100644 --- a/gcc/testsuite/gcc.dg/pr97830.c +++ b/gcc/testsuite/gcc.dg/pr97830.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2" } */ +/* { dg-options "-std=gnu17 -O2" } */ typedef enum { LangC } cLanguage; typedef enum { FunctionOneArg, FunctionStandard } cFunctionType; diff --git a/gcc/testsuite/gcc.dg/pr97882.c b/gcc/testsuite/gcc.dg/pr97882.c index 48ea93d..6666f89 100644 --- a/gcc/testsuite/gcc.dg/pr97882.c +++ b/gcc/testsuite/gcc.dg/pr97882.c @@ -1,6 +1,6 @@ /* PR c/97882 - Segmentation Fault on improper redeclaration of function { dg-do compile } - { dg-options "" } */ + { dg-options "-std=gnu17" } */ // Check pointer declaration incompatibiliies. diff --git a/gcc/testsuite/gcc.dg/pr99122-2.c b/gcc/testsuite/gcc.dg/pr99122-2.c index c0c850f..3947f7d 100644 --- a/gcc/testsuite/gcc.dg/pr99122-2.c +++ b/gcc/testsuite/gcc.dg/pr99122-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -g -w" } */ +/* { dg-options "-std=gnu17 -O2 -g -w" } */ /* { dg-require-effective-target alloca } */ static int foo (); diff --git a/gcc/testsuite/gcc.dg/pr99122-3.c b/gcc/testsuite/gcc.dg/pr99122-3.c index 6a908ad..3e72a30 100644 --- a/gcc/testsuite/gcc.dg/pr99122-3.c +++ b/gcc/testsuite/gcc.dg/pr99122-3.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -g -w" } */ +/* { dg-options "-std=gnu17 -O2 -g -w" } */ static int foo (); diff --git a/gcc/testsuite/gcc.dg/qual-component-1.c b/gcc/testsuite/gcc.dg/qual-component-1.c index 4eaa71a..f2043ce 100644 --- a/gcc/testsuite/gcc.dg/qual-component-1.c +++ b/gcc/testsuite/gcc.dg/qual-component-1.c @@ -3,7 +3,7 @@ union. Bug 27697 from Frank Victor Fischer. */ /* Origin: Joseph Myers <joseph@codesourcery.com> */ /* { dg-do compile } */ -/* { dg-options "-pedantic -Wdiscarded-array-qualifiers" } */ +/* { dg-options "-std=gnu17 -pedantic -Wdiscarded-array-qualifiers" } */ struct s { int a; diff --git a/gcc/testsuite/gcc.dg/sibcall-6.c b/gcc/testsuite/gcc.dg/sibcall-6.c index 8ee72ca..c8830b6 100644 --- a/gcc/testsuite/gcc.dg/sibcall-6.c +++ b/gcc/testsuite/gcc.dg/sibcall-6.c @@ -8,7 +8,7 @@ /* { dg-do run { target epiphany-*-* i?86-*-* x86_64-*-* s390*-*-* } } */ /* { dg-skip-if "" { { i?86-*-* x86_64-*-* } && { ia32 && { ! nonpic } } } } */ -/* { dg-options "-O2 -foptimize-sibling-calls -fno-ipa-cp" } */ +/* { dg-options "-Wno-old-style-definition -O2 -foptimize-sibling-calls -fno-ipa-cp" } */ extern void abort (void); extern void exit (int); diff --git a/gcc/testsuite/gcc.dg/sms-2.c b/gcc/testsuite/gcc.dg/sms-2.c index f8375f9..6172314 100644 --- a/gcc/testsuite/gcc.dg/sms-2.c +++ b/gcc/testsuite/gcc.dg/sms-2.c @@ -2,7 +2,7 @@ traversal of the loops after versioning. */ /* { dg-do compile } */ -/* { dg-options "-O2 -fmodulo-sched -fdump-rtl-sms" } */ +/* { dg-options "-Wno-old-style-definition -O2 -fmodulo-sched -fdump-rtl-sms" } */ int th, h, em, nlwm, nlwS, nlw, sy; void diff --git a/gcc/testsuite/gcc.dg/tm/20091221.c b/gcc/testsuite/gcc.dg/tm/20091221.c index 7837243..655e55c 100644 --- a/gcc/testsuite/gcc.dg/tm/20091221.c +++ b/gcc/testsuite/gcc.dg/tm/20091221.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-fgnu-tm -fdump-tree-tmedge" } */ +/* { dg-options "-std=gnu17 -fgnu-tm -fdump-tree-tmedge" } */ int i; extern void virgin () __attribute__((transaction_pure)); diff --git a/gcc/testsuite/gcc.dg/torture/bfloat16-basic.c b/gcc/testsuite/gcc.dg/torture/bfloat16-basic.c index 09e54d4..20ce60e 100644 --- a/gcc/testsuite/gcc.dg/torture/bfloat16-basic.c +++ b/gcc/testsuite/gcc.dg/torture/bfloat16-basic.c @@ -1,6 +1,6 @@ /* Test __bf16. */ /* { dg-do run } */ -/* { dg-options "" } */ +/* { dg-options "-Wno-old-style-definition" } */ /* { dg-add-options bfloat16 } */ /* { dg-require-effective-target bfloat16_runtime } */ diff --git a/gcc/testsuite/gcc.dg/torture/float128-basic.c b/gcc/testsuite/gcc.dg/torture/float128-basic.c index b23d45b..24a22b0 100644 --- a/gcc/testsuite/gcc.dg/torture/float128-basic.c +++ b/gcc/testsuite/gcc.dg/torture/float128-basic.c @@ -1,6 +1,6 @@ /* Test _Float128. */ /* { dg-do run } */ -/* { dg-options "" } */ +/* { dg-options "-Wno-old-style-definition" } */ /* { dg-add-options float128 } */ /* { dg-require-effective-target float128_runtime } */ diff --git a/gcc/testsuite/gcc.dg/torture/float128x-basic.c b/gcc/testsuite/gcc.dg/torture/float128x-basic.c index 75c5a28..ea80990 100644 --- a/gcc/testsuite/gcc.dg/torture/float128x-basic.c +++ b/gcc/testsuite/gcc.dg/torture/float128x-basic.c @@ -1,6 +1,6 @@ /* Test _Float128x. */ /* { dg-do run } */ -/* { dg-options "" } */ +/* { dg-options "-Wno-old-style-definition" } */ /* { dg-add-options float128x } */ /* { dg-require-effective-target float128x_runtime } */ diff --git a/gcc/testsuite/gcc.dg/torture/float16-basic.c b/gcc/testsuite/gcc.dg/torture/float16-basic.c index e94aa20..adcbdf9 100644 --- a/gcc/testsuite/gcc.dg/torture/float16-basic.c +++ b/gcc/testsuite/gcc.dg/torture/float16-basic.c @@ -1,6 +1,6 @@ /* Test _Float16. */ /* { dg-do run } */ -/* { dg-options "" } */ +/* { dg-options "-Wno-old-style-definition" } */ /* { dg-add-options float16 } */ /* { dg-require-effective-target float16_runtime } */ diff --git a/gcc/testsuite/gcc.dg/torture/float32-basic.c b/gcc/testsuite/gcc.dg/torture/float32-basic.c index 2d3e7a9..e6b2785 100644 --- a/gcc/testsuite/gcc.dg/torture/float32-basic.c +++ b/gcc/testsuite/gcc.dg/torture/float32-basic.c @@ -1,6 +1,6 @@ /* Test _Float32. */ /* { dg-do run } */ -/* { dg-options "" } */ +/* { dg-options "-Wno-old-style-definition" } */ /* { dg-add-options float32 } */ /* { dg-require-effective-target float32_runtime } */ diff --git a/gcc/testsuite/gcc.dg/torture/float32x-basic.c b/gcc/testsuite/gcc.dg/torture/float32x-basic.c index f2abc33..b4ca33f 100644 --- a/gcc/testsuite/gcc.dg/torture/float32x-basic.c +++ b/gcc/testsuite/gcc.dg/torture/float32x-basic.c @@ -1,6 +1,6 @@ /* Test _Float32x. */ /* { dg-do run } */ -/* { dg-options "" } */ +/* { dg-options "-Wno-old-style-definition" } */ /* { dg-add-options float32x } */ /* { dg-require-effective-target float32x_runtime } */ diff --git a/gcc/testsuite/gcc.dg/torture/float64-basic.c b/gcc/testsuite/gcc.dg/torture/float64-basic.c index decb05f..7e644c3 100644 --- a/gcc/testsuite/gcc.dg/torture/float64-basic.c +++ b/gcc/testsuite/gcc.dg/torture/float64-basic.c @@ -1,6 +1,6 @@ /* Test _Float64. */ /* { dg-do run } */ -/* { dg-options "" } */ +/* { dg-options "-Wno-old-style-definition" } */ /* { dg-add-options float64 } */ /* { dg-require-effective-target float64_runtime } */ diff --git a/gcc/testsuite/gcc.dg/torture/float64x-basic.c b/gcc/testsuite/gcc.dg/torture/float64x-basic.c index 7a140af..90dac84 100644 --- a/gcc/testsuite/gcc.dg/torture/float64x-basic.c +++ b/gcc/testsuite/gcc.dg/torture/float64x-basic.c @@ -1,6 +1,6 @@ /* Test _Float64x. */ /* { dg-do run } */ -/* { dg-options "" } */ +/* { dg-options "-Wno-old-style-definition" } */ /* { dg-add-options float64x } */ /* { dg-require-effective-target float64x_runtime } */ diff --git a/gcc/testsuite/gcc.dg/torture/pr102762.c b/gcc/testsuite/gcc.dg/torture/pr102762.c index 67c6b00..d52a970 100644 --- a/gcc/testsuite/gcc.dg/torture/pr102762.c +++ b/gcc/testsuite/gcc.dg/torture/pr102762.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ /* We fail to diagnose the invalid __builtin_va_arg_pack use with -flto. */ /* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */ diff --git a/gcc/testsuite/gcc.dg/torture/pr103987.c b/gcc/testsuite/gcc.dg/torture/pr103987.c index 6bfc768..6fc2eff 100644 --- a/gcc/testsuite/gcc.dg/torture/pr103987.c +++ b/gcc/testsuite/gcc.dg/torture/pr103987.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ void foo(); diff --git a/gcc/testsuite/gcc.dg/torture/pr104825.c b/gcc/testsuite/gcc.dg/torture/pr104825.c index 7affacc..417012e 100644 --- a/gcc/testsuite/gcc.dg/torture/pr104825.c +++ b/gcc/testsuite/gcc.dg/torture/pr104825.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-additional-options "-Wno-stringop-overread" } */ +/* { dg-additional-options "-Wno-old-style-definition -Wno-stringop-overread" } */ int foo (fmt) char* fmt; diff --git a/gcc/testsuite/gcc.dg/torture/pr105166.c b/gcc/testsuite/gcc.dg/torture/pr105166.c index 60e8b73..745af50 100644 --- a/gcc/testsuite/gcc.dg/torture/pr105166.c +++ b/gcc/testsuite/gcc.dg/torture/pr105166.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ int bar (foo, a) int (**foo) (); diff --git a/gcc/testsuite/gcc.dg/torture/pr105185.c b/gcc/testsuite/gcc.dg/torture/pr105185.c index 6ab3236..88dee57 100644 --- a/gcc/testsuite/gcc.dg/torture/pr105185.c +++ b/gcc/testsuite/gcc.dg/torture/pr105185.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-Wno-old-style-definition" } */ int foo (fmt) char* fmt; diff --git a/gcc/testsuite/gcc.dg/torture/pr109652.c b/gcc/testsuite/gcc.dg/torture/pr109652.c index 8a6524d..b3d5de9 100644 --- a/gcc/testsuite/gcc.dg/torture/pr109652.c +++ b/gcc/testsuite/gcc.dg/torture/pr109652.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ typedef int UInt; UInt skeletal_RI5_instr; diff --git a/gcc/testsuite/gcc.dg/torture/pr112444.c b/gcc/testsuite/gcc.dg/torture/pr112444.c index 61c7ec9..769df6a 100644 --- a/gcc/testsuite/gcc.dg/torture/pr112444.c +++ b/gcc/testsuite/gcc.dg/torture/pr112444.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-additional-options "-ftrivial-auto-var-init=zero" } */ +/* { dg-additional-options "-std=gnu17 -ftrivial-auto-var-init=zero" } */ int qmi_message_pbm_get_all_capabilities_output_capability_basic_information_get_printable_message_offset, qmi_message_pbm_get_all_capabilities_output_capability_basic_information_get_printable_message_init_offset, diff --git a/gcc/testsuite/gcc.dg/torture/pr113895-3.c b/gcc/testsuite/gcc.dg/torture/pr113895-3.c index 255975f..d8760e7 100644 --- a/gcc/testsuite/gcc.dg/torture/pr113895-3.c +++ b/gcc/testsuite/gcc.dg/torture/pr113895-3.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ extern void f(); char a[1][1], b; diff --git a/gcc/testsuite/gcc.dg/torture/pr24626-2.c b/gcc/testsuite/gcc.dg/torture/pr24626-2.c index 541c8c5..c6d15ea 100644 --- a/gcc/testsuite/gcc.dg/torture/pr24626-2.c +++ b/gcc/testsuite/gcc.dg/torture/pr24626-2.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ typedef unsigned int u_int8_t __attribute__ ((__mode__ (__QI__))); typedef unsigned int u_int32_t __attribute__ ((__mode__ (__SI__))); diff --git a/gcc/testsuite/gcc.dg/torture/pr25183.c b/gcc/testsuite/gcc.dg/torture/pr25183.c index 84b4c8f..22af72b 100644 --- a/gcc/testsuite/gcc.dg/torture/pr25183.c +++ b/gcc/testsuite/gcc.dg/torture/pr25183.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-pedantic" } */ +/* { dg-options "-std=gnu17 -pedantic" } */ enum err { err_IO = 0x8a450000, /* { dg-warning "int" } */ diff --git a/gcc/testsuite/gcc.dg/torture/pr38948.c b/gcc/testsuite/gcc.dg/torture/pr38948.c index 22cef3b..01b7213 100644 --- a/gcc/testsuite/gcc.dg/torture/pr38948.c +++ b/gcc/testsuite/gcc.dg/torture/pr38948.c @@ -1,4 +1,4 @@ -/* { dg-options "-fno-tree-sra" } */ +/* { dg-options "-std=gnu17 -fno-tree-sra" } */ typedef unsigned char byte; typedef unsigned int uint; typedef int bool; diff --git a/gcc/testsuite/gcc.dg/torture/pr44807.c b/gcc/testsuite/gcc.dg/torture/pr44807.c index 918333e..2230db6 100644 --- a/gcc/testsuite/gcc.dg/torture/pr44807.c +++ b/gcc/testsuite/gcc.dg/torture/pr44807.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ int sigemptyset (int *); int sigaddset(int, int); diff --git a/gcc/testsuite/gcc.dg/torture/pr47281.c b/gcc/testsuite/gcc.dg/torture/pr47281.c index 517e854..752b472 100644 --- a/gcc/testsuite/gcc.dg/torture/pr47281.c +++ b/gcc/testsuite/gcc.dg/torture/pr47281.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ struct T; typedef void F(void); diff --git a/gcc/testsuite/gcc.dg/torture/pr47958-1.c b/gcc/testsuite/gcc.dg/torture/pr47958-1.c index 9fdf142f..14feffb 100644 --- a/gcc/testsuite/gcc.dg/torture/pr47958-1.c +++ b/gcc/testsuite/gcc.dg/torture/pr47958-1.c @@ -1,4 +1,5 @@ /* { dg-do assemble } */ +/* { dg-additional-options "-Wno-old-style-definition" } */ void (*foo[6][6]) (int); void bar (hdR) diff --git a/gcc/testsuite/gcc.dg/torture/pr48063.c b/gcc/testsuite/gcc.dg/torture/pr48063.c index d861bf0..ff6960f 100644 --- a/gcc/testsuite/gcc.dg/torture/pr48063.c +++ b/gcc/testsuite/gcc.dg/torture/pr48063.c @@ -1,6 +1,6 @@ /* PR tree-optimization/48063 */ /* { dg-do compile } */ -/* { dg-options "-fno-early-inlining" } */ +/* { dg-options "-std=gnu17 -fno-early-inlining" } */ extern void abort (void); static void bar (); diff --git a/gcc/testsuite/gcc.dg/torture/pr57036-1.c b/gcc/testsuite/gcc.dg/torture/pr57036-1.c index ac6bc6b..b1cddb1 100644 --- a/gcc/testsuite/gcc.dg/torture/pr57036-1.c +++ b/gcc/testsuite/gcc.dg/torture/pr57036-1.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ extern void g (void); int _setjmp(); diff --git a/gcc/testsuite/gcc.dg/torture/pr57330.c b/gcc/testsuite/gcc.dg/torture/pr57330.c index 3e6cbcb..362622c 100644 --- a/gcc/testsuite/gcc.dg/torture/pr57330.c +++ b/gcc/testsuite/gcc.dg/torture/pr57330.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ void foo (int a) {} diff --git a/gcc/testsuite/gcc.dg/torture/pr57584.c b/gcc/testsuite/gcc.dg/torture/pr57584.c index e4affb2..475dabe 100644 --- a/gcc/testsuite/gcc.dg/torture/pr57584.c +++ b/gcc/testsuite/gcc.dg/torture/pr57584.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ /* { dg-require-effective-target int32plus } */ /* { dg-require-effective-target label_values } */ /* { dg-require-effective-target indirect_jumps } */ diff --git a/gcc/testsuite/gcc.dg/torture/pr67741.c b/gcc/testsuite/gcc.dg/torture/pr67741.c index c0019d0..d1a8c25 100644 --- a/gcc/testsuite/gcc.dg/torture/pr67741.c +++ b/gcc/testsuite/gcc.dg/torture/pr67741.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ struct singlecomplex { float real, imag ; } ; struct doublecomplex { double real, imag ; } ; diff --git a/gcc/testsuite/gcc.dg/torture/pr68104.c b/gcc/testsuite/gcc.dg/torture/pr68104.c index 5db0282..8743ecf5 100644 --- a/gcc/testsuite/gcc.dg/torture/pr68104.c +++ b/gcc/testsuite/gcc.dg/torture/pr68104.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ typedef struct { diff --git a/gcc/testsuite/gcc.dg/torture/pr69242.c b/gcc/testsuite/gcc.dg/torture/pr69242.c index d7f1718..2a50a16 100644 --- a/gcc/testsuite/gcc.dg/torture/pr69242.c +++ b/gcc/testsuite/gcc.dg/torture/pr69242.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-additional-options "-w" } */ +/* { dg-additional-options "-std=gnu17 -w" } */ int a[1]; void *memcpy(); diff --git a/gcc/testsuite/gcc.dg/torture/pr70457.c b/gcc/testsuite/gcc.dg/torture/pr70457.c index 74daed4..e0a212f 100644 --- a/gcc/testsuite/gcc.dg/torture/pr70457.c +++ b/gcc/testsuite/gcc.dg/torture/pr70457.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ /* This formerly ICEd when trying to expand pow as a built-in with the wrong number of arguments. */ diff --git a/gcc/testsuite/gcc.dg/torture/pr70985.c b/gcc/testsuite/gcc.dg/torture/pr70985.c index 17273b0..3654493 100644 --- a/gcc/testsuite/gcc.dg/torture/pr70985.c +++ b/gcc/testsuite/gcc.dg/torture/pr70985.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ /* { dg-require-effective-target int32plus } */ struct diff --git a/gcc/testsuite/gcc.dg/torture/pr71606.c b/gcc/testsuite/gcc.dg/torture/pr71606.c index b0cc26a..ec7a110 100644 --- a/gcc/testsuite/gcc.dg/torture/pr71606.c +++ b/gcc/testsuite/gcc.dg/torture/pr71606.c @@ -1,3 +1,5 @@ +/* { dg-additional-options "-std=gnu17" } */ + _Complex a; void fn1 (); diff --git a/gcc/testsuite/gcc.dg/torture/pr71816.c b/gcc/testsuite/gcc.dg/torture/pr71816.c index cc143fa..5db86b9 100644 --- a/gcc/testsuite/gcc.dg/torture/pr71816.c +++ b/gcc/testsuite/gcc.dg/torture/pr71816.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ /* { dg-prune-output "\\\[-Wbuiltin-declaration-mismatch" } */ void *ext2fs_resize_mem_p; diff --git a/gcc/testsuite/gcc.dg/torture/pr77286.c b/gcc/testsuite/gcc.dg/torture/pr77286.c index 0c06100..29d96eb 100644 --- a/gcc/testsuite/gcc.dg/torture/pr77286.c +++ b/gcc/testsuite/gcc.dg/torture/pr77286.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ /* { dg-additional-options "-mavx2" { target x86_64-*-* i?86-*-* } } */ typedef float real; diff --git a/gcc/testsuite/gcc.dg/torture/pr77646.c b/gcc/testsuite/gcc.dg/torture/pr77646.c index 1b19900..6366c1b 100644 --- a/gcc/testsuite/gcc.dg/torture/pr77646.c +++ b/gcc/testsuite/gcc.dg/torture/pr77646.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ struct e { int (*f)(); diff --git a/gcc/testsuite/gcc.dg/torture/pr77677-2.c b/gcc/testsuite/gcc.dg/torture/pr77677-2.c index 768ab12..4ba25f0 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 "-fpermissive -w" } */ +/* { dg-options "-std=gnu17 -fpermissive -w" } */ enum machine_mode { MAX_MACHINE_MODE }; diff --git a/gcc/testsuite/gcc.dg/torture/pr78365.c b/gcc/testsuite/gcc.dg/torture/pr78365.c index 5180a01..2588a48 100644 --- a/gcc/testsuite/gcc.dg/torture/pr78365.c +++ b/gcc/testsuite/gcc.dg/torture/pr78365.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-Wno-old-style-definition" } */ int a, b, c; char d; diff --git a/gcc/testsuite/gcc.dg/torture/pr79732.c b/gcc/testsuite/gcc.dg/torture/pr79732.c index ed2695b..cfa337c 100644 --- a/gcc/testsuite/gcc.dg/torture/pr79732.c +++ b/gcc/testsuite/gcc.dg/torture/pr79732.c @@ -1,4 +1,5 @@ /* { dg-do link } */ +/* { dg-additional-options "-std=gnu17" } */ /* { dg-require-alias "" } */ int bar () __attribute__ ((alias ("foo"))); diff --git a/gcc/testsuite/gcc.dg/torture/pr80612.c b/gcc/testsuite/gcc.dg/torture/pr80612.c index e648e82..d3f82d3 100644 --- a/gcc/testsuite/gcc.dg/torture/pr80612.c +++ b/gcc/testsuite/gcc.dg/torture/pr80612.c @@ -1,5 +1,6 @@ /* PR tree-optimization/80612 */ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ struct obstack *a; struct obstack { diff --git a/gcc/testsuite/gcc.dg/torture/pr80764.c b/gcc/testsuite/gcc.dg/torture/pr80764.c index bc6d8e8..c8e56559 100644 --- a/gcc/testsuite/gcc.dg/torture/pr80764.c +++ b/gcc/testsuite/gcc.dg/torture/pr80764.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ int b, d, f, h; char e; diff --git a/gcc/testsuite/gcc.dg/torture/pr80842.c b/gcc/testsuite/gcc.dg/torture/pr80842.c index 600e8ce..2fc4059 100644 --- a/gcc/testsuite/gcc.dg/torture/pr80842.c +++ b/gcc/testsuite/gcc.dg/torture/pr80842.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ unsigned a; short b; diff --git a/gcc/testsuite/gcc.dg/torture/pr81900.c b/gcc/testsuite/gcc.dg/torture/pr81900.c index 9e4e8f4..2936f1d 100644 --- a/gcc/testsuite/gcc.dg/torture/pr81900.c +++ b/gcc/testsuite/gcc.dg/torture/pr81900.c @@ -1,7 +1,7 @@ /* PR/81900 */ /* { dg-do compile } */ /* { dg-skip-if "" { *-*-* } { "-flto" } { "" } } */ -/* { dg-options "-fdump-tree-optimized" } */ +/* { dg-options "-std=gnu17 -fdump-tree-optimized" } */ void Perl_croak() __attribute__((noreturn)); char *Perl_sv_gets(); diff --git a/gcc/testsuite/gcc.dg/torture/pr82276.c b/gcc/testsuite/gcc.dg/torture/pr82276.c index 2f9efc8..fc9f2c5 100644 --- a/gcc/testsuite/gcc.dg/torture/pr82276.c +++ b/gcc/testsuite/gcc.dg/torture/pr82276.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ typedef struct a { struct a *b; diff --git a/gcc/testsuite/gcc.dg/torture/pr84803.c b/gcc/testsuite/gcc.dg/torture/pr84803.c index 81aad62..e9f3783 100644 --- a/gcc/testsuite/gcc.dg/torture/pr84803.c +++ b/gcc/testsuite/gcc.dg/torture/pr84803.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ long a; long *b; diff --git a/gcc/testsuite/gcc.dg/torture/pr93124.c b/gcc/testsuite/gcc.dg/torture/pr93124.c index 0d361d8..e654ab8 100644 --- a/gcc/testsuite/gcc.dg/torture/pr93124.c +++ b/gcc/testsuite/gcc.dg/torture/pr93124.c @@ -1,4 +1,4 @@ -/* { dg-additional-options "-fno-rerun-cse-after-loop -fno-guess-branch-probability -fno-tree-fre" } */ +/* { dg-additional-options "-std=gnu17 -fno-rerun-cse-after-loop -fno-guess-branch-probability -fno-tree-fre" } */ /* { dg-require-effective-target alloca } */ int x; diff --git a/gcc/testsuite/gcc.dg/torture/pr97330-1.c b/gcc/testsuite/gcc.dg/torture/pr97330-1.c index 7dce5bd..8bd2037 100644 --- a/gcc/testsuite/gcc.dg/torture/pr97330-1.c +++ b/gcc/testsuite/gcc.dg/torture/pr97330-1.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-Wno-old-style-definition" } */ typedef int a; typedef char b; diff --git a/gcc/testsuite/gcc.dg/tree-prof/comp-goto-1.c b/gcc/testsuite/gcc.dg/tree-prof/comp-goto-1.c index baed1e3..322ebf7 100644 --- a/gcc/testsuite/gcc.dg/tree-prof/comp-goto-1.c +++ b/gcc/testsuite/gcc.dg/tree-prof/comp-goto-1.c @@ -1,6 +1,6 @@ /* { dg-require-effective-target freorder } */ /* { dg-require-effective-target label_values } */ -/* { dg-options "-O2 -freorder-blocks-and-partition" } */ +/* { dg-options "-std=gnu17 -O2 -freorder-blocks-and-partition" } */ /* { dg-require-stack-size "4000" } */ #include <stdlib.h> diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030703-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030703-2.c index ce50af2..9fa3a88 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030703-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030703-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O1 -fdump-tree-dom2" } */ +/* { dg-options "-Wno-old-style-definition -O1 -fdump-tree-dom2" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030708-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030708-1.c index 8b7ab98..9910c79 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030708-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030708-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O1 -fdump-tree-dom2" } */ +/* { dg-options "-Wno-old-style-definition -O1 -fdump-tree-dom2" } */ extern void abort (void); struct rtx_def; typedef struct rtx_def *rtx; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030709-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030709-2.c index 78938f9..e228400 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030709-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030709-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-dce3" } */ +/* { dg-options "-Wno-old-style-definition -O -fdump-tree-dce3" } */ struct rtx_def; typedef struct rtx_def *rtx; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030709-3.c b/gcc/testsuite/gcc.dg/tree-ssa/20030709-3.c index 838317d..2c9920ae 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030709-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030709-3.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O1 -fdump-tree-dom2" } */ +/* { dg-options "-Wno-old-style-definition -O1 -fdump-tree-dom2" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030710-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030710-1.c index 529c79b..11391e6 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030710-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030710-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O1 -fdump-tree-copyprop2" } */ +/* { dg-options "-Wno-old-style-definition -O1 -fdump-tree-copyprop2" } */ extern void abort (void); extern void blah (void); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030711-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030711-1.c index 080ccfa..c3f75ef 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030711-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030711-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O1 -fdump-tree-dom2" } */ +/* { dg-options "-Wno-old-style-definition -O1 -fdump-tree-dom2" } */ extern void abort (void); extern void blah (void); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030711-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030711-2.c index 7fce5ab..6f3c8c30 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030711-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030711-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-dom2" } */ +/* { dg-options "-Wno-old-style-definition -O2 -fdump-tree-dom2" } */ struct rtx_def; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030711-3.c b/gcc/testsuite/gcc.dg/tree-ssa/20030711-3.c index 15d7e97..f5b0a14 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030711-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030711-3.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O1 -fdump-tree-dom2" } */ +/* { dg-options "-Wno-old-style-definition -O1 -fdump-tree-dom2" } */ struct rtx_def; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030714-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030714-1.c index 9f0daac..ad1b8ad 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030714-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030714-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O1 -fdump-tree-dom2" } */ +/* { dg-options "-Wno-old-style-definition -O1 -fdump-tree-dom2" } */ struct rtx_def; typedef struct rtx_def *rtx; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030714-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20030714-2.c index 9585ff1..a3b564d 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030714-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030714-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O1 -fdump-tree-dom2" } */ +/* { dg-options "-Wno-old-style-definition -O1 -fdump-tree-dom2" } */ union tree_node; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030728-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030728-1.c index 7c1fea7..10ed817d 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030728-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030728-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-rtl-expand-details" } */ +/* { dg-options "-Wno-old-style-definition -O2 -fdump-rtl-expand-details" } */ union tree_node; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-10.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-10.c index 0e01e51..939dbae 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-10.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-10.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-vrp1" } */ +/* { dg-options "-Wno-old-style-definition -O2 -fdump-tree-vrp1" } */ extern const unsigned char mode_size[]; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-11.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-11.c index 6effbb7..e7e73cb 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-11.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-11.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O1 -fdump-tree-dom2" } */ +/* { dg-options "-Wno-old-style-definition -O1 -fdump-tree-dom2" } */ extern void abort (void); struct rtx_def; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-3.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-3.c index bba3569..1097798 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-3.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O1 -fdump-tree-dom2" } */ +/* { dg-options "-Wno-old-style-definition -O1 -fdump-tree-dom2" } */ typedef unsigned int cppchar_t; void foo (void); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-6.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-6.c index e680de8..1453df6 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-6.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-6.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-vrp1" } */ +/* { dg-options "-Wno-old-style-definition -O2 -fdump-tree-vrp1" } */ void diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030807-7.c b/gcc/testsuite/gcc.dg/tree-ssa/20030807-7.c index ca06f71..857191d 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030807-7.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030807-7.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-vrp1" } */ +/* { dg-options "-Wno-old-style-definition -O2 -fdump-tree-vrp1" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030814-4.c b/gcc/testsuite/gcc.dg/tree-ssa/20030814-4.c index e59b3e3..53a2d01 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030814-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030814-4.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O1 -fdump-tree-dom2 -fdump-tree-optimized" } */ +/* { dg-options "-Wno-old-style-definition -O1 -fdump-tree-dom2 -fdump-tree-optimized" } */ extern void abort (void); union tree_node; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030814-5.c b/gcc/testsuite/gcc.dg/tree-ssa/20030814-5.c index 1b0bef1..986540c 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030814-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030814-5.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O1 -fdump-tree-dom2 -fdump-tree-optimized" } */ +/* { dg-options "-Wno-old-style-definition -O1 -fdump-tree-dom2 -fdump-tree-optimized" } */ extern void abort (void); union tree_node; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030814-6.c b/gcc/testsuite/gcc.dg/tree-ssa/20030814-6.c index e4b8d43..d147dff 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030814-6.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030814-6.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O1 -fno-tree-fre -fdump-tree-dom2" } */ +/* { dg-options "-Wno-old-style-definition -O1 -fno-tree-fre -fdump-tree-dom2" } */ extern void abort (void); union tree_node; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20030918-1.c b/gcc/testsuite/gcc.dg/tree-ssa/20030918-1.c index 719ea65..271f0a5 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20030918-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20030918-1.c @@ -2,7 +2,7 @@ references after propagating &equot[0] into p. */ /* { dg-do compile } */ -/* { dg-options "-O -ftree-dominator-opts" } */ +/* { dg-options "-Wno-old-style-definition -O -ftree-dominator-opts" } */ static unsigned short equot[(6 +3)]; int diff --git a/gcc/testsuite/gcc.dg/tree-ssa/20040514-2.c b/gcc/testsuite/gcc.dg/tree-ssa/20040514-2.c index 11f7667..5ec48e3 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/20040514-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/20040514-2.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-phiopt1" } */ +/* { dg-options "-Wno-old-style-definition -O2 -fdump-tree-phiopt1" } */ int foo2 (distance, i, j) int distance; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/loadpre7.c b/gcc/testsuite/gcc.dg/tree-ssa/loadpre7.c index 52903dd..7461008 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/loadpre7.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/loadpre7.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-pre-stats" } */ +/* { dg-options "-Wno-old-style-definition -O2 -fdump-tree-pre-stats" } */ /* We can't eliminate the *p load here in any sane way, as eshup8 may change it. */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr111003.c b/gcc/testsuite/gcc.dg/tree-ssa/pr111003.c index a520765..59d3a96 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr111003.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr111003.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O3 -fdump-tree-optimized" } */ +/* { dg-options "-std=gnu17 -O3 -fdump-tree-optimized" } */ static int c, d, e, f; static short g; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr115128.c b/gcc/testsuite/gcc.dg/tree-ssa/pr115128.c index 14bd4db..2788430 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr115128.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr115128.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O3 -w" } */ +/* { dg-options "-std=gnu17 -O3 -w" } */ long XXH3_len_4to8_64b_len, XXH3_len_0to16_64b___trans_tmp_3, XXH3_mix2Accs_acc, XXH3_64bits_internal___trans_tmp_8; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr115191.c b/gcc/testsuite/gcc.dg/tree-ssa/pr115191.c index 43f780a..fe0c132 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr115191.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr115191.c @@ -1,5 +1,5 @@ // { dg-do compile } -// { dg-options "-O1 -w" } +// { dg-options "-std=gnu17 -O1 -w" } typedef void *SCM; void set_socket_io_ports(); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr24840.c b/gcc/testsuite/gcc.dg/tree-ssa/pr24840.c index 0ce9ed3..b749151 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr24840.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr24840.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2" } */ +/* { dg-options "-std=gnu17 -O2" } */ typedef struct { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr69666.c b/gcc/testsuite/gcc.dg/tree-ssa/pr69666.c index 9be77ea..220c0cd 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr69666.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr69666.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -w" } */ +/* { dg-options "-std=gnu17 -O2 -w" } */ int a, c, d; float b; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr70232.c b/gcc/testsuite/gcc.dg/tree-ssa/pr70232.c index d636672..6873f87 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr70232.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr70232.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -w -fdump-tree-vrp1-details -fdump-tree-vrp2-details -fdump-tree-dom2-details -fdump-tree-dom3-details" } */ +/* { dg-options "-std=gnu17 -O2 -w -fdump-tree-vrp1-details -fdump-tree-vrp2-details -fdump-tree-dom2-details -fdump-tree-dom3-details" } */ /* All the threads found by the threader should have too many statements to be profitable. */ diff --git a/gcc/testsuite/gcc.dg/ubsan/pr79757-1.c b/gcc/testsuite/gcc.dg/ubsan/pr79757-1.c index ca074bc..20ed2cd 100644 --- a/gcc/testsuite/gcc.dg/ubsan/pr79757-1.c +++ b/gcc/testsuite/gcc.dg/ubsan/pr79757-1.c @@ -1,7 +1,7 @@ /* PR sanitizer/79757 */ /* { dg-do compile } */ /* { dg-require-effective-target int128 } */ -/* { dg-options "-fsanitize=undefined" } */ +/* { dg-options "-Wno-old-style-definition -fsanitize=undefined" } */ unsigned __int128 x, y; diff --git a/gcc/testsuite/gcc.dg/ubsan/pr79757-2.c b/gcc/testsuite/gcc.dg/ubsan/pr79757-2.c index b3e1939..32e38c1 100644 --- a/gcc/testsuite/gcc.dg/ubsan/pr79757-2.c +++ b/gcc/testsuite/gcc.dg/ubsan/pr79757-2.c @@ -1,7 +1,7 @@ /* PR sanitizer/79757 */ /* { dg-do compile } */ /* { dg-require-effective-target int128 } */ -/* { dg-options "-fsanitize=undefined" } */ +/* { dg-options "-Wno-old-style-definition -fsanitize=undefined" } */ unsigned __int128 x, y; diff --git a/gcc/testsuite/gcc.dg/ubsan/pr79757-3.c b/gcc/testsuite/gcc.dg/ubsan/pr79757-3.c index 22fe3de..7eb3fee 100644 --- a/gcc/testsuite/gcc.dg/ubsan/pr79757-3.c +++ b/gcc/testsuite/gcc.dg/ubsan/pr79757-3.c @@ -1,7 +1,7 @@ /* PR sanitizer/79757 */ /* { dg-do compile } */ /* { dg-require-effective-target int128 } */ -/* { dg-options "-fsanitize=undefined" } */ +/* { dg-options "-Wno-old-style-definition -fsanitize=undefined" } */ unsigned __int128 x, y; diff --git a/gcc/testsuite/gcc.dg/ubsan/pr81223.c b/gcc/testsuite/gcc.dg/ubsan/pr81223.c index e7aff52..f72b1cd 100644 --- a/gcc/testsuite/gcc.dg/ubsan/pr81223.c +++ b/gcc/testsuite/gcc.dg/ubsan/pr81223.c @@ -1,6 +1,6 @@ /* PR sanitizer/81223 */ /* { dg-do compile } */ -/* { dg-options "-fsanitize=undefined" } */ +/* { dg-options "-std=gnu17 -fsanitize=undefined" } */ void bar (); diff --git a/gcc/testsuite/gcc.dg/uninit-10-O0.c b/gcc/testsuite/gcc.dg/uninit-10-O0.c index f761ac9..18fe56c 100644 --- a/gcc/testsuite/gcc.dg/uninit-10-O0.c +++ b/gcc/testsuite/gcc.dg/uninit-10-O0.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-Wall" } */ +/* { dg-options "-Wno-old-style-definition -Wall" } */ /* On Alpha EV4, dead code elimination and cfg simplification conspired to leave the register containing 'C' marked live, though all references to the variable had been removed. */ diff --git a/gcc/testsuite/gcc.dg/uninit-10.c b/gcc/testsuite/gcc.dg/uninit-10.c index 0d62020..e2396a5 100644 --- a/gcc/testsuite/gcc.dg/uninit-10.c +++ b/gcc/testsuite/gcc.dg/uninit-10.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -Wall" } */ +/* { dg-options "-Wno-old-style-definition -O2 -Wall" } */ /* On Alpha EV4, dead code elimination and cfg simplification conspired to leave the register containing 'C' marked live, though all references to the variable had been removed. */ diff --git a/gcc/testsuite/gcc.dg/uninit-32.c b/gcc/testsuite/gcc.dg/uninit-32.c index cf9efa0..586b635 100644 --- a/gcc/testsuite/gcc.dg/uninit-32.c +++ b/gcc/testsuite/gcc.dg/uninit-32.c @@ -1,7 +1,7 @@ /* PR middle-end/10138 - warn for uninitialized arrays passed as const* arguments { dg-do compile } - { dg-options "-O -Wall" } + { dg-options "-std=gnu17 -O -Wall" } { dg-require-effective-target alloca } */ typedef __SIZE_TYPE__ size_t; diff --git a/gcc/testsuite/gcc.dg/uninit-41.c b/gcc/testsuite/gcc.dg/uninit-41.c index f2e17a8..2f138cb 100644 --- a/gcc/testsuite/gcc.dg/uninit-41.c +++ b/gcc/testsuite/gcc.dg/uninit-41.c @@ -1,7 +1,7 @@ /* Verify that calls to non-modifying built-ins aren't considered potentially modifying. { dg-do compile } - { dg-options "-O2 -Wall" } + { dg-options "-std=gnu17 -O2 -Wall" } { dg-require-effective-target alloca } */ typedef __SIZE_TYPE__ size_t; diff --git a/gcc/testsuite/gcc.dg/uninit-A-O0.c b/gcc/testsuite/gcc.dg/uninit-A-O0.c index 6937691..c1f1a1c 100644 --- a/gcc/testsuite/gcc.dg/uninit-A-O0.c +++ b/gcc/testsuite/gcc.dg/uninit-A-O0.c @@ -2,7 +2,7 @@ May be a real bug in CSE. */ /* { dg-do compile } */ -/* { dg-options "-Wall" } */ +/* { dg-options "-Wno-old-style-definition -Wall" } */ struct tree { diff --git a/gcc/testsuite/gcc.dg/uninit-A.c b/gcc/testsuite/gcc.dg/uninit-A.c index 28f7fe9..2adc374 100644 --- a/gcc/testsuite/gcc.dg/uninit-A.c +++ b/gcc/testsuite/gcc.dg/uninit-A.c @@ -2,7 +2,7 @@ May be a real bug in CSE. */ /* { dg-do compile } */ -/* { dg-options "-O2 -Wall" } */ +/* { dg-options "-O2 -Wall -Wno-old-style-definition" } */ struct tree { diff --git a/gcc/testsuite/gcc.dg/unused-1.c b/gcc/testsuite/gcc.dg/unused-1.c index 8db7c2c..2cc86c0 100644 --- a/gcc/testsuite/gcc.dg/unused-1.c +++ b/gcc/testsuite/gcc.dg/unused-1.c @@ -2,7 +2,7 @@ egcs-1.1.2 fails, egcs-ss-19990418 passes. http://gcc.gnu.org/ml/gcc-bugs/1998-09/msg00199.html */ /* { dg-do compile } */ -/* { dg-options "-O -Wall -W" } */ +/* { dg-options "-Wno-old-style-definition -O -Wall -W" } */ int f(c) char c; /* { dg-warning "unused parameter" "unused parameter warning" } */ diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-pr114249.c b/gcc/testsuite/gcc.dg/vect/bb-slp-pr114249.c index 64c93cd..36ccb2c 100644 --- a/gcc/testsuite/gcc.dg/vect/bb-slp-pr114249.c +++ b/gcc/testsuite/gcc.dg/vect/bb-slp-pr114249.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ enum { SEG_THIN_POOL } read_only; struct { diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-pr97486.c b/gcc/testsuite/gcc.dg/vect/bb-slp-pr97486.c index 17d48a7..fceb933 100644 --- a/gcc/testsuite/gcc.dg/vect/bb-slp-pr97486.c +++ b/gcc/testsuite/gcc.dg/vect/bb-slp-pr97486.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ struct { int *end_info; diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-subgroups-1.c b/gcc/testsuite/gcc.dg/vect/bb-slp-subgroups-1.c index bea3b92..dd3f91b 100644 --- a/gcc/testsuite/gcc.dg/vect/bb-slp-subgroups-1.c +++ b/gcc/testsuite/gcc.dg/vect/bb-slp-subgroups-1.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu17" } */ /* { dg-require-effective-target vect_int } */ /* PR tree-optimization/67682. */ diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-subgroups-2.c b/gcc/testsuite/gcc.dg/vect/bb-slp-subgroups-2.c index 9431bcb..2ee5003 100644 --- a/gcc/testsuite/gcc.dg/vect/bb-slp-subgroups-2.c +++ b/gcc/testsuite/gcc.dg/vect/bb-slp-subgroups-2.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu17" } */ /* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_perm } */ /* PR tree-optimization/67682. */ diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-subgroups-3.c b/gcc/testsuite/gcc.dg/vect/bb-slp-subgroups-3.c index d1d7912..1b3d5d9 100644 --- a/gcc/testsuite/gcc.dg/vect/bb-slp-subgroups-3.c +++ b/gcc/testsuite/gcc.dg/vect/bb-slp-subgroups-3.c @@ -1,3 +1,4 @@ +/* { dg-additional-options "-std=gnu17" } */ /* { dg-require-effective-target vect_int } */ /* { dg-require-effective-target vect_int_mult } */ /* PR tree-optimization/67682. */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-early-break_111-pr113731.c b/gcc/testsuite/gcc.dg/vect/vect-early-break_111-pr113731.c index b205f47..05edf59 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-early-break_111-pr113731.c +++ b/gcc/testsuite/gcc.dg/vect/vect-early-break_111-pr113731.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ /* { dg-add-options vect_early_break } */ /* { dg-require-effective-target vect_early_break } */ /* { dg-require-effective-target vect_long } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-early-break_122-pr114239.c b/gcc/testsuite/gcc.dg/vect/vect-early-break_122-pr114239.c index 7bf4db1..eea47f7 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-early-break_122-pr114239.c +++ b/gcc/testsuite/gcc.dg/vect/vect-early-break_122-pr114239.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ +/* { dg-additional-options "-std=gnu17" } */ /* { dg-add-options vect_early_break } */ /* { dg-require-effective-target vect_early_break } */ diff --git a/gcc/testsuite/gcc.dg/vect/vect-multi-peel-gaps.c b/gcc/testsuite/gcc.dg/vect/vect-multi-peel-gaps.c index 033c358..d914b88 100644 --- a/gcc/testsuite/gcc.dg/vect/vect-multi-peel-gaps.c +++ b/gcc/testsuite/gcc.dg/vect/vect-multi-peel-gaps.c @@ -6,6 +6,7 @@ increment by 2 integers at a time, hence the last load needs s[30-33] and the penultimate load needs s[28-31]. This testcase ensures that we do not crash due to that behaviour. */ +/* { dg-additional-options "-std=gnu17" } */ /* { dg-require-effective-target mmap } */ #include <sys/mman.h> #include <stdio.h> diff --git a/gcc/testsuite/gcc.dg/vla-stexp-2.c b/gcc/testsuite/gcc.dg/vla-stexp-2.c index 9f15125..8616ef7 100644 --- a/gcc/testsuite/gcc.dg/vla-stexp-2.c +++ b/gcc/testsuite/gcc.dg/vla-stexp-2.c @@ -1,6 +1,6 @@ /* PR101838 */ /* { dg-do run } */ -/* { dg-options "-Wpedantic -O0" } */ +/* { dg-options "-std=gnu17 -Wpedantic -O0" } */ /* { dg-require-effective-target alloca } */ diff --git a/gcc/testsuite/gcc.dg/warn-1.c b/gcc/testsuite/gcc.dg/warn-1.c index 6db4ae5..d5acca2 100644 --- a/gcc/testsuite/gcc.dg/warn-1.c +++ b/gcc/testsuite/gcc.dg/warn-1.c @@ -1,7 +1,7 @@ /* The compiler used to say passing arg 0 of, which is wrong. */ /* Radar 3069179 */ -/* { dg-options "-O3" } */ +/* { dg-options "-Wno-old-style-definition -O3" } */ static void foo (p) int p; diff --git a/gcc/testsuite/gcc.dg/winline-10.c b/gcc/testsuite/gcc.dg/winline-10.c index 2df5adda..f4d92fa 100644 --- a/gcc/testsuite/gcc.dg/winline-10.c +++ b/gcc/testsuite/gcc.dg/winline-10.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -Winline -fopt-info-optimized-inline=stderr" } */ +/* { dg-options "-Wno-old-style-definition -O2 -Winline -fopt-info-optimized-inline=stderr" } */ struct s { int a; }; diff --git a/gcc/testsuite/gcc.dg/wtr-label-1.c b/gcc/testsuite/gcc.dg/wtr-label-1.c index 78a4d6b..bd31d92 100644 --- a/gcc/testsuite/gcc.dg/wtr-label-1.c +++ b/gcc/testsuite/gcc.dg/wtr-label-1.c @@ -2,7 +2,7 @@ Note, gcc should omit these warnings in system header files. Origin: Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 8/24/2000. */ /* { dg-do compile } */ -/* { dg-options "-Wtraditional" } */ +/* { dg-options "-Wno-old-style-definition -Wtraditional" } */ enum foo1 { a }; struct foo2 { int i; }; diff --git a/gcc/testsuite/gcc.dg/wtr-switch-1.c b/gcc/testsuite/gcc.dg/wtr-switch-1.c index f0381bc..56913ea 100644 --- a/gcc/testsuite/gcc.dg/wtr-switch-1.c +++ b/gcc/testsuite/gcc.dg/wtr-switch-1.c @@ -2,7 +2,7 @@ Note, gcc should omit these warnings in system header files. By Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 8/22/2000. */ /* { dg-do compile } */ -/* { dg-options "-Wtraditional" } */ +/* { dg-options "-Wno-old-style-definition -Wtraditional" } */ void testfunc (l) diff --git a/gcc/testsuite/gcc.target/i386/excess-precision-3.c b/gcc/testsuite/gcc.target/i386/excess-precision-3.c index e8e9abc..06f2489 100644 --- a/gcc/testsuite/gcc.target/i386/excess-precision-3.c +++ b/gcc/testsuite/gcc.target/i386/excess-precision-3.c @@ -1,7 +1,7 @@ /* Excess precision tests. Test excess precision is removed when necessary. */ /* { dg-do run } */ -/* { dg-options "-O2 -mfpmath=387 -fexcess-precision=standard" } */ +/* { dg-options "-Wno-old-style-definition -O2 -mfpmath=387 -fexcess-precision=standard" } */ #include <float.h> #include <stdarg.h> diff --git a/gcc/testsuite/gcc.target/i386/fma4-256-nmsubXX.c b/gcc/testsuite/gcc.target/i386/fma4-256-nmsubXX.c index 385cd95..ef0cf41 100644 --- a/gcc/testsuite/gcc.target/i386/fma4-256-nmsubXX.c +++ b/gcc/testsuite/gcc.target/i386/fma4-256-nmsubXX.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target fma4 } */ -/* { dg-options "-O2 -mfma4" } */ +/* { dg-options "-std=gnu17 -O2 -mfma4" } */ #include "fma4-check.h" diff --git a/gcc/testsuite/gcc.target/i386/fma4-nmsubXX.c b/gcc/testsuite/gcc.target/i386/fma4-nmsubXX.c index c0bce41..82431ea 100644 --- a/gcc/testsuite/gcc.target/i386/fma4-nmsubXX.c +++ b/gcc/testsuite/gcc.target/i386/fma4-nmsubXX.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target fma4 } */ -/* { dg-options "-O0 -mfma4" } */ +/* { dg-options "-std=gnu17 -O0 -mfma4" } */ #include "fma4-check.h" diff --git a/gcc/testsuite/gcc.target/i386/nop-mcount.c b/gcc/testsuite/gcc.target/i386/nop-mcount.c index a5f8d27..ee3c97f 100644 --- a/gcc/testsuite/gcc.target/i386/nop-mcount.c +++ b/gcc/testsuite/gcc.target/i386/nop-mcount.c @@ -1,7 +1,7 @@ /* Test -mnop-mcount */ /* { dg-do compile { target { *-*-linux* && nonpic } } } */ /* { dg-require-effective-target mfentry } */ -/* { dg-options "-pg -mfentry -mrecord-mcount -mnop-mcount" } */ +/* { dg-options "-Wno-old-style-definition -pg -mfentry -mrecord-mcount -mnop-mcount" } */ /* { dg-final { scan-assembler-not "__fentry__" } } */ /* Origin: Andi Kleen */ extern void foobar(char *); diff --git a/gcc/testsuite/gcc.target/i386/pr102627.c b/gcc/testsuite/gcc.target/i386/pr102627.c index 8ab9aca..7e14092 100644 --- a/gcc/testsuite/gcc.target/i386/pr102627.c +++ b/gcc/testsuite/gcc.target/i386/pr102627.c @@ -1,6 +1,6 @@ /* PR rtl-optimization/102627 */ /* { dg-do run } */ -/* { dg-options "-O1" } */ +/* { dg-options "-std=gnu17 -O1" } */ int a, f, l, m, q, c, d, g; long b, e; diff --git a/gcc/testsuite/gcc.target/i386/pr106994.c b/gcc/testsuite/gcc.target/i386/pr106994.c index 0803311..b0bf985 100644 --- a/gcc/testsuite/gcc.target/i386/pr106994.c +++ b/gcc/testsuite/gcc.target/i386/pr106994.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-march=skylake -Ofast" } */ +/* { dg-options "-std=gnu17 -march=skylake -Ofast" } */ typedef struct { float ymin, ymax; diff --git a/gcc/testsuite/gcc.target/i386/pr68349.c b/gcc/testsuite/gcc.target/i386/pr68349.c index 3c38c3a..b8540e4 100644 --- a/gcc/testsuite/gcc.target/i386/pr68349.c +++ b/gcc/testsuite/gcc.target/i386/pr68349.c @@ -1,6 +1,6 @@ /* PR target/68483 */ /* { dg-do compile } */ -/* { dg-options "-O2" } */ +/* { dg-options "-std=gnu17 -O2" } */ int a, b; unsigned long my_strlen(); diff --git a/gcc/testsuite/gcc.target/i386/pr97313.c b/gcc/testsuite/gcc.target/i386/pr97313.c index 711766b..6167a1f 100644 --- a/gcc/testsuite/gcc.target/i386/pr97313.c +++ b/gcc/testsuite/gcc.target/i386/pr97313.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fPIE" } */ +/* { dg-options "-std=gnu17 -O2 -fPIE" } */ /* { dg-require-effective-target pie } */ typedef struct { diff --git a/gcc/testsuite/gcc.target/i386/pr99454.c b/gcc/testsuite/gcc.target/i386/pr99454.c index ba3ffe2..f46d56d 100644 --- a/gcc/testsuite/gcc.target/i386/pr99454.c +++ b/gcc/testsuite/gcc.target/i386/pr99454.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -w" } */ +/* { dg-options "-std=gnu17 -O -w" } */ struct skb_shared_info { short gso_size; diff --git a/gcc/testsuite/gcc.target/i386/record-mcount.c b/gcc/testsuite/gcc.target/i386/record-mcount.c index 05b4bcb..52924e0 100644 --- a/gcc/testsuite/gcc.target/i386/record-mcount.c +++ b/gcc/testsuite/gcc.target/i386/record-mcount.c @@ -1,6 +1,6 @@ /* Test -mrecord-mcount */ /* { dg-do compile { target { *-*-linux* && nonpic } } } */ -/* { dg-options "-pg -mrecord-mcount" } */ +/* { dg-options "-Wno-old-style-definition -pg -mrecord-mcount" } */ /* { dg-final { scan-assembler "mcount_loc" } } */ /* Origin: Andi Kleen */ extern void foobar(char *); |