From: Uros Bizjak Date: Sat, 15 Apr 2017 20:07:47 +0000 (+0200) Subject: pr54669.c: Fix dg-do directive. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=604f37cde806d93a4f1de2fc69101b59faf93669;p=gcc.git pr54669.c: Fix dg-do directive. * gcc.dg/pr54669.c: Fix dg-do directive. * gcc.dg/pr78582.c: Ditto. * gcc.dg/pr80020.c: Ditto. * gcc.dg/torture/pr57993-2.cpp: Ditto. * gcc.dg/tree-ssa/builtin-sprintf-3.c: Ditto. * gcc.dg/tree-ssa/builtin-sprintf-4.c: Ditto. * gcc.dg/tree-ssa/builtin-sprintf-5.c: Ditto. * gcc.dg/tree-ssa/builtin-sprintf-6.c: Ditto. * gcc.dg/tree-ssa/builtin-sprintf-warn-5.c: Ditto. * gcc.dg/tree-ssa/pr79327-2.c: Ditto. * gcc.dg/tree-ssa/pr79352.c: Ditto. * gcc.dg/tree-ssa/pr79376.c: Ditto. * gcc.dg/tree-ssa/pr79691.c: Ditto. From-SVN: r246941 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e091d641272..619e17e75e6 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,6 +1,22 @@ +2017-04-15 Uros Bizjak + + * gcc.dg/pr54669.c: Fix dg-do directive. + * gcc.dg/pr78582.c: Ditto. + * gcc.dg/pr80020.c: Ditto. + * gcc.dg/torture/pr57993-2.cpp: Ditto. + * gcc.dg/tree-ssa/builtin-sprintf-3.c: Ditto. + * gcc.dg/tree-ssa/builtin-sprintf-4.c: Ditto. + * gcc.dg/tree-ssa/builtin-sprintf-5.c: Ditto. + * gcc.dg/tree-ssa/builtin-sprintf-6.c: Ditto. + * gcc.dg/tree-ssa/builtin-sprintf-warn-5.c: Ditto. + * gcc.dg/tree-ssa/pr79327-2.c: Ditto. + * gcc.dg/tree-ssa/pr79352.c: Ditto. + * gcc.dg/tree-ssa/pr79376.c: Ditto. + * gcc.dg/tree-ssa/pr79691.c: Ditto. + 2017-04-15 Dominique d'Humieres - * gfortran.dg/deferred_character_3.f90: Fix dg directive. + * gfortran.dg/deferred_character_3.f90: Fix dg-do directive. * gfortran.dg/generic_29.f90: Likewise. * gfortran.dg/goacc/multi-clause.f90: Likewise. * gfortran.dg/pr41922.f90: Likewise. diff --git a/gcc/testsuite/gcc.dg/pr54669.c b/gcc/testsuite/gcc.dg/pr54669.c index 3868ae691da..b68c0476a49 100644 --- a/gcc/testsuite/gcc.dg/pr54669.c +++ b/gcc/testsuite/gcc.dg/pr54669.c @@ -1,7 +1,7 @@ /* PR tree-optimization/54669 */ /* Testcase by Zdenek Sojka */ -/* { dg-compile } */ +/* { dg-do compile } */ /* { dg-options "-O2 -fexceptions -fnon-call-exceptions" } */ int a[10]; diff --git a/gcc/testsuite/gcc.dg/pr78582.c b/gcc/testsuite/gcc.dg/pr78582.c index 5284e3ffbec..51e3a1f09ed 100644 --- a/gcc/testsuite/gcc.dg/pr78582.c +++ b/gcc/testsuite/gcc.dg/pr78582.c @@ -1,6 +1,6 @@ /* PR target/78582. */ /* { dg-options "-fprofile-generate" } */ -/* { dg-compile } */ +/* { dg-do compile } */ #include diff --git a/gcc/testsuite/gcc.dg/pr80020.c b/gcc/testsuite/gcc.dg/pr80020.c index 5e79c375dc3..4ab1aa8df2f 100644 --- a/gcc/testsuite/gcc.dg/pr80020.c +++ b/gcc/testsuite/gcc.dg/pr80020.c @@ -1,5 +1,5 @@ /* PR middle-end/80020 - gcc confused about aligned_alloc argument order - { dg-compile } + { dg-do compile } { dg-options "-O2 -Wall -fdump-tree-optimized" } */ void sink (void*); diff --git a/gcc/testsuite/gcc.dg/torture/pr57993-2.cpp b/gcc/testsuite/gcc.dg/torture/pr57993-2.cpp index d8fd371b096..b7bffa89e41 100644 --- a/gcc/testsuite/gcc.dg/torture/pr57993-2.cpp +++ b/gcc/testsuite/gcc.dg/torture/pr57993-2.cpp @@ -1,5 +1,5 @@ /* This ICEd due to an incomplete fix for PR57993. */ -/* { dg-compile } */ +/* { dg-do compile } */ extern "C" { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-3.c b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-3.c index 207ee7ef3b9..fae2a1b73ea 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-3.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-3.c @@ -2,7 +2,7 @@ Test case derived from the one submitted in the bug. It verifies that the sprintf return value (or value range) optimization is not performed for an unknown string. */ -/* { dg-compile } */ +/* { dg-do compile } */ /* { dg-options "-O2 -Wall -Werror -fdump-tree-optimized -fprintf-return-value" } */ #define INT_MAX __INT_MAX__ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-4.c b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-4.c index 08993a24356..a741550b44f 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-4.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-4.c @@ -2,7 +2,7 @@ gimple-ssa-sprintf.c:214 Disable warnings to exercise code paths through the pass that may not be exercised when the -Wformat-overflow option is in effect. */ -/* { dg-compile } +/* { dg-do compile } { dg-options "-O2 -fdump-tree-optimized -w" } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-5.c b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-5.c index e12aa2caa9a..7870f555080 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-5.c @@ -1,6 +1,6 @@ /* PR middle-end/78476 - snprintf(0, 0, ...) with known arguments not optimized away - { dg-compile } + { dg-do compile } { dg-options "-O2 -fdump-tree-optimized" } { dg-require-effective-target int32plus } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-6.c b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-6.c index abd49dfcc03..f9c8687efa2 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-6.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-6.c @@ -4,7 +4,7 @@ A negative test complementing builtin-sprintf-5.c to verify that calls to the function that do not return a constant are not optimized away. Test also verifies that unknown directives prevent the optimization. - { dg-compile } + { dg-do compile } { dg-options "-O2 -Wformat -fdump-tree-optimized" } { dg-require-effective-target int32plus } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-5.c b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-5.c index f6f60ccc906..2a6739ec2f3 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-5.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/builtin-sprintf-warn-5.c @@ -1,8 +1,7 @@ /* PR bootstrap/77676 - powerpc64 and powerpc64le stage2 bootstrap fail Test case from comment 6 on the bug. */ -/* { dg-compile } */ +/* { dg-do compile } */ /* { dg-options "-Wall -Werror" } */ -/* { dg-additional-options "-m32" { target { i?86-*-* x86_64-*-* } } } */ struct A { diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr79327-2.c b/gcc/testsuite/gcc.dg/tree-ssa/pr79327-2.c index f72e4cc353c..4c9d60625c0 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr79327-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr79327-2.c @@ -1,5 +1,5 @@ /* PR tree-optimization/79327 - wrong code at -O2 and -fprintf-return-value - { dg-compile } + { dg-do compile } { dg-options "-O2 -fdump-tree-optimized" } */ #define CAT(s, n) s ## n diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr79352.c b/gcc/testsuite/gcc.dg/tree-ssa/pr79352.c index 4a153b71e43..485e2d64cb3 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr79352.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr79352.c @@ -1,6 +1,6 @@ /* PR tree-optimization/79352 - -fprintf-return-value doesn't handle flexible-like array members properly - { dg-compile } + { dg-do compile } { dg-options "-O2 -fdump-tree-optimized" } */ struct A { int i; char a1[1]; }; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr79376.c b/gcc/testsuite/gcc.dg/tree-ssa/pr79376.c index 838bfe0508e..01ecd178211 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr79376.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr79376.c @@ -1,6 +1,6 @@ /* PR tree-optimization/79376 - wrong lower bound with %s and non-constant strings in -Wformat-overflow - { dg-compile } + { dg-do compile } { dg-options "-O2 -fdump-tree-optimized" } */ #define CAT(s, n) s ## n diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr79691.c b/gcc/testsuite/gcc.dg/tree-ssa/pr79691.c index cef1ef192ab..bf889318c06 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr79691.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr79691.c @@ -1,7 +1,7 @@ /* PR tree-optimization/79691 - -Wformat-truncation suppressed by (and only by) -Og - { dg-compile } + { dg-do compile } { dg-options "-Og -Wall -fdump-tree-optimized" } */ char d[2];