diff mbox

[testsuite] : Fix some more dg-do directives

Message ID CAFULd4Z7Mmevnw0c4doqf=5Tc=wQgBvJWpTEdwJ2byhWLStcdg@mail.gmail.com
State New
Headers show

Commit Message

Uros Bizjak April 15, 2017, 8:08 p.m. UTC
2017-04-15  Uros Bizjak  <ubizjak@gmail.com>

    * 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.

Tested on x86_64-linux-gnu {-m32} and committed to mainline SVN.

Uros.
diff mbox

Patch

Index: gcc.dg/pr54669.c
===================================================================
--- gcc.dg/pr54669.c	(revision 246843)
+++ gcc.dg/pr54669.c	(working copy)
@@ -1,7 +1,7 @@ 
 /* PR tree-optimization/54669 */
 /* Testcase by Zdenek Sojka <zsojka@seznam.cz> */
 
-/* { dg-compile } */
+/* { dg-do compile } */
 /* { dg-options "-O2 -fexceptions -fnon-call-exceptions" } */
 
 int a[10];
Index: gcc.dg/pr78582.c
===================================================================
--- gcc.dg/pr78582.c	(revision 246843)
+++ gcc.dg/pr78582.c	(working copy)
@@ -1,6 +1,6 @@ 
 /* PR target/78582. */
 /* { dg-options "-fprofile-generate" } */
-/* { dg-compile } */
+/* { dg-do compile } */
 
 #include <setjmp.h>
 
Index: gcc.dg/pr80020.c
===================================================================
--- gcc.dg/pr80020.c	(revision 246843)
+++ gcc.dg/pr80020.c	(working copy)
@@ -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*);
Index: gcc.dg/torture/pr57993-2.cpp
===================================================================
--- gcc.dg/torture/pr57993-2.cpp	(revision 246843)
+++ gcc.dg/torture/pr57993-2.cpp	(working copy)
@@ -1,5 +1,5 @@ 
 /* This ICEd due to an incomplete fix for PR57993.  */
-/* { dg-compile } */
+/* { dg-do compile } */
 
 extern "C"
 {
Index: gcc.dg/tree-ssa/builtin-sprintf-3.c
===================================================================
--- gcc.dg/tree-ssa/builtin-sprintf-3.c	(revision 246843)
+++ gcc.dg/tree-ssa/builtin-sprintf-3.c	(working copy)
@@ -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__
Index: gcc.dg/tree-ssa/builtin-sprintf-4.c
===================================================================
--- gcc.dg/tree-ssa/builtin-sprintf-4.c	(revision 246843)
+++ gcc.dg/tree-ssa/builtin-sprintf-4.c	(working copy)
@@ -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" } */
 
 
Index: gcc.dg/tree-ssa/builtin-sprintf-5.c
===================================================================
--- gcc.dg/tree-ssa/builtin-sprintf-5.c	(revision 246843)
+++ gcc.dg/tree-ssa/builtin-sprintf-5.c	(working copy)
@@ -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 } */
 
Index: gcc.dg/tree-ssa/builtin-sprintf-6.c
===================================================================
--- gcc.dg/tree-ssa/builtin-sprintf-6.c	(revision 246843)
+++ gcc.dg/tree-ssa/builtin-sprintf-6.c	(working copy)
@@ -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 } */
 
Index: gcc.dg/tree-ssa/builtin-sprintf-warn-5.c
===================================================================
--- gcc.dg/tree-ssa/builtin-sprintf-warn-5.c	(revision 246843)
+++ gcc.dg/tree-ssa/builtin-sprintf-warn-5.c	(working copy)
@@ -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
 {
Index: gcc.dg/tree-ssa/pr79327-2.c
===================================================================
--- gcc.dg/tree-ssa/pr79327-2.c	(revision 246843)
+++ gcc.dg/tree-ssa/pr79327-2.c	(working copy)
@@ -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
Index: gcc.dg/tree-ssa/pr79352.c
===================================================================
--- gcc.dg/tree-ssa/pr79352.c	(revision 246843)
+++ gcc.dg/tree-ssa/pr79352.c	(working copy)
@@ -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]; };
Index: gcc.dg/tree-ssa/pr79376.c
===================================================================
--- gcc.dg/tree-ssa/pr79376.c	(revision 246843)
+++ gcc.dg/tree-ssa/pr79376.c	(working copy)
@@ -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
Index: gcc.dg/tree-ssa/pr79691.c
===================================================================
--- gcc.dg/tree-ssa/pr79691.c	(revision 246843)
+++ gcc.dg/tree-ssa/pr79691.c	(working copy)
@@ -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];