diff options
Diffstat (limited to 'gcc/testsuite/c-c++-common')
-rw-r--r-- | gcc/testsuite/c-c++-common/Wcast-function-type.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/Wformat-pr84258.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/Wvarargs.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/analyzer/data-model-12.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/builtins.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/pointer-to-fn1.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/pragma-diag-17.c | 1 | ||||
-rw-r--r-- | gcc/testsuite/c-c++-common/sizeof-array-argument.c | 1 |
8 files changed, 8 insertions, 1 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. */ |