From f8a4141bae53f9125d374e5873dcda3f75392f1f Mon Sep 17 00:00:00 2001 From: Manfred Schwarb Date: Thu, 7 May 2020 13:33:16 -0400 Subject: [PATCH] Fix various dg directives. * gcc.dg/20050121-1.c: Fix broken dg directives. * gcc.dg/analzyer/pr93382.c: Likewise. * gcc.dg/autopar/pr68460.c: Likewise. * gcc.dg/c90-fordecl-1.c: Likewise. * gcc.dg/cpp/trad/funlike-5.c: Likewise. * gcc.dg/debug/dwarf2/dwarf-dfp.c: Likewise. * gcc.dg/debug/dwarf2/dwarf-float.c: Likewise. * gcc.dg/lto/pr52634_0.c: Likewise. * gcc.dg/pr32069.c: Likewise. * gcc.dg/pr35445.c: Likewise. * gcc.dg/pr40172-3.c: Likewise. * gcc.dg/pr87347.c: Likewise. * gcc.dg/pr88660.c: Likewise. * gcc.dg/pr89689.c: Likewise. * gcc.dg/sinatan-2.c: Likewise. * gcc.dg/sinhatanh-1.c: Likewise. * gcc.dg/sinhovercosh-1.c: Likewise. * gcc.dg/tls/opt-9.c: Likewise. * gcc.dg/torture/builtins-1.c: Likewise. * gcc.dg/torture/pr51106-1.c: Likewise. * gcc.dg/torture/pr51106-2.c: Likewise. * gcc.dg/torture/pr80281.c: Likewise. * gcc.dg/torture/pr92252.c: Likewise. * gcc.dg/tree-ssa/pr79448-2.c: Likewise. * gcc.dg/tree-ssa/pr79448.c: Likewise. * gcc.dg/tree-ssa/pr92163.c: Likewise. * gcc.dg/tree-ssa/reassoc-28.c: Likewise. * gcc.dg/tree-ssa/upcast-1.c: Likewise. * gcc.dg/two-types-6.c: Likewise. * gcc.dg/ubsan/c-shift-1.c: Likewise. * gcc.dg/var-expand3.c: Likewise. * gcc.dg/vect/costmodel/x86_64/costmodel-pr30843.c: Likewise. * gcc.dg/vect/pr71264.c: Likewise. --- gcc/testsuite/ChangeLog | 36 +++++++++++++++++++ gcc/testsuite/gcc.dg/20050121-1.c | 2 +- gcc/testsuite/gcc.dg/analyzer/pr93382.c | 2 +- gcc/testsuite/gcc.dg/autopar/pr68460.c | 2 +- gcc/testsuite/gcc.dg/c90-fordecl-1.c | 2 +- gcc/testsuite/gcc.dg/cpp/trad/funlike-5.c | 2 +- gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-dfp.c | 2 +- .../gcc.dg/debug/dwarf2/dwarf-float.c | 2 +- gcc/testsuite/gcc.dg/lto/pr52634_0.c | 2 +- gcc/testsuite/gcc.dg/pr32069.c | 2 +- gcc/testsuite/gcc.dg/pr35445.c | 2 +- gcc/testsuite/gcc.dg/pr40172-3.c | 2 +- gcc/testsuite/gcc.dg/pr87347.c | 2 +- gcc/testsuite/gcc.dg/pr88660.c | 2 +- gcc/testsuite/gcc.dg/pr89689.c | 2 +- gcc/testsuite/gcc.dg/sinatan-2.c | 18 +++++----- gcc/testsuite/gcc.dg/sinhatanh-1.c | 18 +++++----- gcc/testsuite/gcc.dg/sinhovercosh-1.c | 18 +++++----- gcc/testsuite/gcc.dg/tls/opt-9.c | 2 +- gcc/testsuite/gcc.dg/torture/builtins-1.c | 2 +- gcc/testsuite/gcc.dg/torture/pr51106-1.c | 2 +- gcc/testsuite/gcc.dg/torture/pr51106-2.c | 2 +- gcc/testsuite/gcc.dg/torture/pr80281.c | 2 +- gcc/testsuite/gcc.dg/torture/pr92252.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/pr79448-2.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/pr79448.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/pr92163.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/reassoc-28.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/upcast-1.c | 2 +- gcc/testsuite/gcc.dg/two-types-6.c | 2 +- gcc/testsuite/gcc.dg/ubsan/c-shift-1.c | 2 +- gcc/testsuite/gcc.dg/var-expand3.c | 2 +- .../vect/costmodel/x86_64/costmodel-pr30843.c | 4 +-- gcc/testsuite/gcc.dg/vect/pr71264.c | 4 +-- 34 files changed, 94 insertions(+), 60 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index f7c018853ca..944c1e83d01 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,39 @@ +2020-05-07 Manfred Schwarb + + * gcc.dg/20050121-1.c: Fix broken dg directives. + * gcc.dg/analzyer/pr93382.c: Likewise. + * gcc.dg/autopar/pr68460.c: Likewise. + * gcc.dg/c90-fordecl-1.c: Likewise. + * gcc.dg/cpp/trad/funlike-5.c: Likewise. + * gcc.dg/debug/dwarf2/dwarf-dfp.c: Likewise. + * gcc.dg/debug/dwarf2/dwarf-float.c: Likewise. + * gcc.dg/lto/pr52634_0.c: Likewise. + * gcc.dg/pr32069.c: Likewise. + * gcc.dg/pr35445.c: Likewise. + * gcc.dg/pr40172-3.c: Likewise. + * gcc.dg/pr87347.c: Likewise. + * gcc.dg/pr88660.c: Likewise. + * gcc.dg/pr89689.c: Likewise. + * gcc.dg/sinatan-2.c: Likewise. + * gcc.dg/sinhatanh-1.c: Likewise. + * gcc.dg/sinhovercosh-1.c: Likewise. + * gcc.dg/tls/opt-9.c: Likewise. + * gcc.dg/torture/builtins-1.c: Likewise. + * gcc.dg/torture/pr51106-1.c: Likewise. + * gcc.dg/torture/pr51106-2.c: Likewise. + * gcc.dg/torture/pr80281.c: Likewise. + * gcc.dg/torture/pr92252.c: Likewise. + * gcc.dg/tree-ssa/pr79448-2.c: Likewise. + * gcc.dg/tree-ssa/pr79448.c: Likewise. + * gcc.dg/tree-ssa/pr92163.c: Likewise. + * gcc.dg/tree-ssa/reassoc-28.c: Likewise. + * gcc.dg/tree-ssa/upcast-1.c: Likewise. + * gcc.dg/two-types-6.c: Likewise. + * gcc.dg/ubsan/c-shift-1.c: Likewise. + * gcc.dg/var-expand3.c: Likewise. + * gcc.dg/vect/costmodel/x86_64/costmodel-pr30843.c: Likewise. + * gcc.dg/vect/pr71264.c: Likewise. + 2020-05-07 Marek Polacek * g++.dg/other/operator1.C: Adjust expected message. diff --git a/gcc/testsuite/gcc.dg/20050121-1.c b/gcc/testsuite/gcc.dg/20050121-1.c index 3fe299a6dc2..e7bfdafeb5c 100644 --- a/gcc/testsuite/gcc.dg/20050121-1.c +++ b/gcc/testsuite/gcc.dg/20050121-1.c @@ -1,6 +1,6 @@ /* I accidentally broke this while developing a patch for PR 13000, and didn't notice since the testsuite didn't catch it -- ian */ -/* { dg-do-compile } */ +/* { dg-do compile } */ void foo() { diff --git a/gcc/testsuite/gcc.dg/analyzer/pr93382.c b/gcc/testsuite/gcc.dg/analyzer/pr93382.c index dae32f5a2bb..bd11e10611a 100644 --- a/gcc/testsuite/gcc.dg/analyzer/pr93382.c +++ b/gcc/testsuite/gcc.dg/analyzer/pr93382.c @@ -14,7 +14,7 @@ ql (void) int n1[1]; fread (n1, sizeof (n1[0]), 1, fp); /* { dg-message "'n1' gets an unchecked value here" } */ - idx = n1[0]; /* { dg-message "'idx' has an unchecked value here (from 'n1')" */ + idx = n1[0]; /* { dg-message "'idx' has an unchecked value here (from 'n1')" } */ } int arr[10]; diff --git a/gcc/testsuite/gcc.dg/autopar/pr68460.c b/gcc/testsuite/gcc.dg/autopar/pr68460.c index 0c00065afbd..74f852d68a0 100644 --- a/gcc/testsuite/gcc.dg/autopar/pr68460.c +++ b/gcc/testsuite/gcc.dg/autopar/pr68460.c @@ -1,4 +1,4 @@ -/* { dg-do "compile" } */ +/* { dg-do compile } */ /* { dg-options "-O -ftree-parallelize-loops=2 -ftree-vectorize -fno-tree-ch -fno-tree-dominator-opts" } */ void abort (void); diff --git a/gcc/testsuite/gcc.dg/c90-fordecl-1.c b/gcc/testsuite/gcc.dg/c90-fordecl-1.c index 46ba16abbc3..6a8e061fb40 100644 --- a/gcc/testsuite/gcc.dg/c90-fordecl-1.c +++ b/gcc/testsuite/gcc.dg/c90-fordecl-1.c @@ -9,6 +9,6 @@ foo (void) int j = 0; for (int i = 1; i <= 10; i++) /* { dg-bogus "warning" "warning in place of error" } */ /* { dg-error "'for' loop initial declarations are only allowed in C99 or C11 mode" "declaration in for loop" { target *-*-* } .-1 } */ - /* { dg-message "note: use option '-std=c99', '-std=gnu99', '-std=c11' or '-std=gnu11' to compile your code" "note" { target *-*-* } .-2 }} */ + /* { dg-message "note: use option '-std=c99', '-std=gnu99', '-std=c11' or '-std=gnu11' to compile your code" "note" { target *-*-* } .-2 } */ j += i; } diff --git a/gcc/testsuite/gcc.dg/cpp/trad/funlike-5.c b/gcc/testsuite/gcc.dg/cpp/trad/funlike-5.c index f60a6ea7865..b5481bd3a03 100644 --- a/gcc/testsuite/gcc.dg/cpp/trad/funlike-5.c +++ b/gcc/testsuite/gcc.dg/cpp/trad/funlike-5.c @@ -1,7 +1,7 @@ /* Test function like macro. */ /* Contributed by Devang Patel */ -/* {do-do preprocess } */ +/* { dg-do preprocess } */ /* { dg-options "-traditional-cpp -E -dD" } */ int __srget (char *); #define __sgetc(p) (--(p)->_r < 0 ? __srget(p) : (int)(*(p)->_p++)) diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-dfp.c b/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-dfp.c index 951380f125f..3e27461222d 100644 --- a/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-dfp.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-dfp.c @@ -1,6 +1,6 @@ /* Verify the DWARF encoding of C99 decimal floating point types. */ -/* { dg-do compile */ +/* { dg-do compile } */ /* { dg-require-effective-target dfp } */ /* { dg-options "-O0 -gdwarf -dA" } */ /* { dg-final { scan-assembler "0x10.*DW_AT_encoding" } } */ diff --git a/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-float.c b/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-float.c index a028d1484af..f4883842b84 100644 --- a/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-float.c +++ b/gcc/testsuite/gcc.dg/debug/dwarf2/dwarf-float.c @@ -1,6 +1,6 @@ /* Verify the DWARF encoding of C99 floating point types. */ -/* { dg-do compile */ +/* { dg-do compile } */ /* { dg-options "-O0 -gdwarf -dA" } */ /* { dg-final { scan-assembler "0x4.*DW_AT_encoding" } } */ /* { dg-final { scan-assembler "0x4.*DW_AT_byte_size" } } */ diff --git a/gcc/testsuite/gcc.dg/lto/pr52634_0.c b/gcc/testsuite/gcc.dg/lto/pr52634_0.c index 5e14ad9a733..7731abf4bc9 100644 --- a/gcc/testsuite/gcc.dg/lto/pr52634_0.c +++ b/gcc/testsuite/gcc.dg/lto/pr52634_0.c @@ -1,7 +1,7 @@ /* { dg-require-weak "" } */ /* { dg-require-alias "" } */ /* { dg-lto-do link } */ -/* { dg-lto-options {{-flto -r -flto-partition=1to1}} */ +/* { dg-lto-options {-flto -r -flto-partition=1to1} } */ /* { dg-extra-ld-options "-flinker-output=nolto-rel" } */ extern int cfliteValueCallBacks; void baz (int *); diff --git a/gcc/testsuite/gcc.dg/pr32069.c b/gcc/testsuite/gcc.dg/pr32069.c index 2ec37c675ed..87a3f187e16 100644 --- a/gcc/testsuite/gcc.dg/pr32069.c +++ b/gcc/testsuite/gcc.dg/pr32069.c @@ -1,4 +1,4 @@ -/* { dg-do-compile } */ +/* { dg-do compile } */ /* { dg-options "-O0 -fsplit-wide-types" } */ long long int segfault (long long int a, long long int b) diff --git a/gcc/testsuite/gcc.dg/pr35445.c b/gcc/testsuite/gcc.dg/pr35445.c index cef309f41ce..56ca6e2580a 100644 --- a/gcc/testsuite/gcc.dg/pr35445.c +++ b/gcc/testsuite/gcc.dg/pr35445.c @@ -1,5 +1,5 @@ /* PR c/35445 */ -/* { dg-do "compile" } */ +/* { dg-do compile } */ extern int i; extern int i; /* { dg-message "was here" } */ diff --git a/gcc/testsuite/gcc.dg/pr40172-3.c b/gcc/testsuite/gcc.dg/pr40172-3.c index c44707c9e67..583aab0f712 100644 --- a/gcc/testsuite/gcc.dg/pr40172-3.c +++ b/gcc/testsuite/gcc.dg/pr40172-3.c @@ -1,5 +1,5 @@ /* PR middle-end/40172 */ -/* { dg-do compile */ +/* { dg-do compile } */ /* { dg-xfail-if "" { "*-*-*" } } */ /* { dg-options "-Wall -W -Werror -Wlogical-op" } */ diff --git a/gcc/testsuite/gcc.dg/pr87347.c b/gcc/testsuite/gcc.dg/pr87347.c index d0bdf2a9fec..2077964e9d3 100644 --- a/gcc/testsuite/gcc.dg/pr87347.c +++ b/gcc/testsuite/gcc.dg/pr87347.c @@ -1,4 +1,4 @@ -/* {dg-do compile} */ +/* { dg-do compile } */ /* { dg-options "-Wabsolute-value" } */ int a; diff --git a/gcc/testsuite/gcc.dg/pr88660.c b/gcc/testsuite/gcc.dg/pr88660.c index 09a2d3270bd..c1d0985bb81 100644 --- a/gcc/testsuite/gcc.dg/pr88660.c +++ b/gcc/testsuite/gcc.dg/pr88660.c @@ -1,4 +1,4 @@ -/* { dg-do-compile } */ +/* { dg-do compile } */ /* { dg-options "-O -Wunused-but-set-variable" } */ int main(void) diff --git a/gcc/testsuite/gcc.dg/pr89689.c b/gcc/testsuite/gcc.dg/pr89689.c index ee81274d3c4..778643ab7a3 100644 --- a/gcc/testsuite/gcc.dg/pr89689.c +++ b/gcc/testsuite/gcc.dg/pr89689.c @@ -1,4 +1,4 @@ -/* { dg-do-compile } */ +/* { dg-do compile } */ /* { dg-options "-O2 -Warray-bounds" } */ #include diff --git a/gcc/testsuite/gcc.dg/sinatan-2.c b/gcc/testsuite/gcc.dg/sinatan-2.c index 07a1e1e0c19..8e7ea3c90fc 100644 --- a/gcc/testsuite/gcc.dg/sinatan-2.c +++ b/gcc/testsuite/gcc.dg/sinatan-2.c @@ -48,12 +48,12 @@ cosatanl_ (long double x) } /* There must be no calls to sin, cos, or atan */ -/* {dg-final { scan-tree-dump-not "sin " "optimized" } } */ -/* {dg-final { scan-tree-dump-not "cos " "optimized" } } */ -/* {dg-final { scan-tree-dump-not "atan " "optimized" }} */ -/* {dg-final { scan-tree-dump-not "sinf " "optimized" } } */ -/* {dg-final { scan-tree-dump-not "cosf " "optimized" } } */ -/* {dg-final { scan-tree-dump-not "atanf " "optimized" }} */ -/* {dg-final { scan-tree-dump-not "sinl " "optimized" } } */ -/* {dg-final { scan-tree-dump-not "cosl " "optimized" } } */ -/* {dg-final { scan-tree-dump-not "atanl " "optimized" }} */ +/* { dg-final { scan-tree-dump-not "sin " "optimized" } } */ +/* { dg-final { scan-tree-dump-not "cos " "optimized" } } */ +/* { dg-final { scan-tree-dump-not "atan " "optimized" } } */ +/* { dg-final { scan-tree-dump-not "sinf " "optimized" } } */ +/* { dg-final { scan-tree-dump-not "cosf " "optimized" } } */ +/* { dg-final { scan-tree-dump-not "atanf " "optimized" } } */ +/* { dg-final { scan-tree-dump-not "sinl " "optimized" } } */ +/* { dg-final { scan-tree-dump-not "cosl " "optimized" } } */ +/* { dg-final { scan-tree-dump-not "atanl " "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/sinhatanh-1.c b/gcc/testsuite/gcc.dg/sinhatanh-1.c index a76e6833101..e3a818be5b1 100644 --- a/gcc/testsuite/gcc.dg/sinhatanh-1.c +++ b/gcc/testsuite/gcc.dg/sinhatanh-1.c @@ -51,12 +51,12 @@ coshatanhl_ (long double x) } /* There must be no calls to sinh, cosh, or atanh */ -/* {dg-final { scan-tree-dump-not "sinh " "optimized" } } */ -/* {dg-final { scan-tree-dump-not "cosh " "optimized" } } */ -/* {dg-final { scan-tree-dump-not "atanh " "optimized" }} */ -/* {dg-final { scan-tree-dump-not "sinfh " "optimized" } } */ -/* {dg-final { scan-tree-dump-not "cosfh " "optimized" } } */ -/* {dg-final { scan-tree-dump-not "atanfh " "optimized" }} */ -/* {dg-final { scan-tree-dump-not "sinlh " "optimized" } } */ -/* {dg-final { scan-tree-dump-not "coslh " "optimized" } } */ -/* {dg-final { scan-tree-dump-not "atanlh " "optimized" }} */ +/* { dg-final { scan-tree-dump-not "sinh " "optimized" } } */ +/* { dg-final { scan-tree-dump-not "cosh " "optimized" } } */ +/* { dg-final { scan-tree-dump-not "atanh " "optimized" } } */ +/* { dg-final { scan-tree-dump-not "sinfh " "optimized" } } */ +/* { dg-final { scan-tree-dump-not "cosfh " "optimized" } } */ +/* { dg-final { scan-tree-dump-not "atanfh " "optimized" } } */ +/* { dg-final { scan-tree-dump-not "sinlh " "optimized" } } */ +/* { dg-final { scan-tree-dump-not "coslh " "optimized" } } */ +/* { dg-final { scan-tree-dump-not "atanlh " "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/sinhovercosh-1.c b/gcc/testsuite/gcc.dg/sinhovercosh-1.c index 7e510727af8..d41093fa6de 100644 --- a/gcc/testsuite/gcc.dg/sinhovercosh-1.c +++ b/gcc/testsuite/gcc.dg/sinhovercosh-1.c @@ -33,13 +33,13 @@ sinhlovercoshl_ (long double x) } /* There must be no calls to sinh, cosh, or atanh */ -/* {dg-final { scan-tree-dump-not "sinh " "optimized" } } */ -/* {dg-final { scan-tree-dump-not "cosh " "optimized" } } */ -/* {dg-final { scan-tree-dump-not "sinfh " "optimized" } } */ -/* {dg-final { scan-tree-dump-not "cosfh " "optimized" } } */ -/* {dg-final { scan-tree-dump-not "sinlh " "optimized" } } */ -/* {dg-final { scan-tree-dump-not "coslh " "optimized" } } */ -/* {dg-final { scan-tree-dump-times "tanh " "1" "optimized" }} */ -/* {dg-final { scan-tree-dump-times "tanhl " "1" "optimized" }} */ -/* {dg-final { scan-tree-dump-times "tanhf " "1" "optimized" }} */ +/* { dg-final { scan-tree-dump-not "sinh " "optimized" } } */ +/* { dg-final { scan-tree-dump-not "cosh " "optimized" } } */ +/* { dg-final { scan-tree-dump-not "sinfh " "optimized" } } */ +/* { dg-final { scan-tree-dump-not "cosfh " "optimized" } } */ +/* { dg-final { scan-tree-dump-not "sinlh " "optimized" } } */ +/* { dg-final { scan-tree-dump-not "coslh " "optimized" } } */ +/* { dg-final { scan-tree-dump-times "tanh " "1" "optimized" } } */ +/* { dg-final { scan-tree-dump-times "tanhl " "1" "optimized" } } */ +/* { dg-final { scan-tree-dump-times "tanhf " "1" "optimized" } } */ diff --git a/gcc/testsuite/gcc.dg/tls/opt-9.c b/gcc/testsuite/gcc.dg/tls/opt-9.c index 49aa9085fdd..ff1ffc08541 100644 --- a/gcc/testsuite/gcc.dg/tls/opt-9.c +++ b/gcc/testsuite/gcc.dg/tls/opt-9.c @@ -1,5 +1,5 @@ /* PR 21412 */ -/* { dg-do compile */ +/* { dg-do compile } */ /* { dg-require-effective-target fpic } */ /* { dg-options "-O2 -fPIC" } */ /* { dg-require-effective-target tls } */ diff --git a/gcc/testsuite/gcc.dg/torture/builtins-1.c b/gcc/testsuite/gcc.dg/torture/builtins-1.c index 6a48753188c..e076d850def 100644 --- a/gcc/testsuite/gcc.dg/torture/builtins-1.c +++ b/gcc/testsuite/gcc.dg/torture/builtins-1.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-fdump-rtl-expand-all" */ +/* { dg-options "-fdump-rtl-expand-all" } */ int isdigit(int c) { return c >= 0; diff --git a/gcc/testsuite/gcc.dg/torture/pr51106-1.c b/gcc/testsuite/gcc.dg/torture/pr51106-1.c index 5501b546fe0..a2bf08e74e0 100644 --- a/gcc/testsuite/gcc.dg/torture/pr51106-1.c +++ b/gcc/testsuite/gcc.dg/torture/pr51106-1.c @@ -1,5 +1,5 @@ /* PR target/51106 */ -/* { dg-do "compile" } */ +/* { dg-do compile } */ /* { dg-skip-if "RTL error" { "*-*-*" } { "-fno-fat-lto-objects" } { "" } } */ int diff --git a/gcc/testsuite/gcc.dg/torture/pr51106-2.c b/gcc/testsuite/gcc.dg/torture/pr51106-2.c index 2dbb832b7cc..65180f87ee8 100644 --- a/gcc/testsuite/gcc.dg/torture/pr51106-2.c +++ b/gcc/testsuite/gcc.dg/torture/pr51106-2.c @@ -1,5 +1,5 @@ /* PR target/51106 */ -/* { dg-do "compile" } */ +/* { dg-do compile } */ /* { dg-skip-if "RTL error" { "*-*-*" } { "-fno-fat-lto-objects" } { "" } } */ /* { dg-skip-if "" { powerpc-ibm-aix* } } */ diff --git a/gcc/testsuite/gcc.dg/torture/pr80281.c b/gcc/testsuite/gcc.dg/torture/pr80281.c index bff4f6e60a8..1198e231303 100644 --- a/gcc/testsuite/gcc.dg/torture/pr80281.c +++ b/gcc/testsuite/gcc.dg/torture/pr80281.c @@ -1,4 +1,4 @@ -/* { dg-run } */ +/* { dg-do run } */ /* { dg-require-effective-target int32plus } */ int diff --git a/gcc/testsuite/gcc.dg/torture/pr92252.c b/gcc/testsuite/gcc.dg/torture/pr92252.c index eea60a044f7..dd8a813c031 100644 --- a/gcc/testsuite/gcc.dg/torture/pr92252.c +++ b/gcc/testsuite/gcc.dg/torture/pr92252.c @@ -1,4 +1,4 @@ -/* { do-do compile } */ +/* { dg-do compile } */ /* { dg-additional-options "-ftree-vectorize" } */ long int ar; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr79448-2.c b/gcc/testsuite/gcc.dg/tree-ssa/pr79448-2.c index f75f523a2e0..91954d9a870 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr79448-2.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr79448-2.c @@ -14,7 +14,7 @@ gettext (char*); char* fill (char *buf, size_t len, int count) { - if (snprintf (buf, len, "%s: %d", gettext ("count"), count) >= len) /* { dg-bogus "directive output of 2 bytes causes result to exceed .INT_MAX." */ + if (snprintf (buf, len, "%s: %d", gettext ("count"), count) >= len) /* { dg-bogus "directive output of 2 bytes causes result to exceed .INT_MAX." } */ return 0; return buf; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr79448.c b/gcc/testsuite/gcc.dg/tree-ssa/pr79448.c index c346c9ef08a..504875a7945 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr79448.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr79448.c @@ -14,7 +14,7 @@ gettext (char*); char* fill (char *buf, size_t len, int count) { - if (snprintf (buf, len, "%s: %d", gettext ("count"), count) >= len) /* { dg-bogus "directive output of 2 bytes causes result to exceed .INT_MAX." */ + if (snprintf (buf, len, "%s: %d", gettext ("count"), count) >= len) /* { dg-bogus "directive output of 2 bytes causes result to exceed .INT_MAX." } */ return 0; return buf; diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr92163.c b/gcc/testsuite/gcc.dg/tree-ssa/pr92163.c index 227c09255e4..4dfc7357e0e 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr92163.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr92163.c @@ -1,4 +1,4 @@ -/* { dg-do "compile" } */ +/* { dg-do compile } */ /* { dg-require-effective-target fopenacc } */ /* { dg-options "-O2 -fexceptions -fnon-call-exceptions -fopenacc" } */ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/reassoc-28.c b/gcc/testsuite/gcc.dg/tree-ssa/reassoc-28.c index 2e999860148..ee6804ec679 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/reassoc-28.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/reassoc-28.c @@ -1,4 +1,4 @@ -/* { dg-do run} */ +/* { dg-do run } */ /* { dg-options "-O2" } */ #define LENGTH 4 diff --git a/gcc/testsuite/gcc.dg/tree-ssa/upcast-1.c b/gcc/testsuite/gcc.dg/tree-ssa/upcast-1.c index 7838817f2f5..4520aba1359 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/upcast-1.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/upcast-1.c @@ -1,4 +1,4 @@ -/* { do-go compile } */ +/* { dg-do compile } */ /* { dg-options "-fdump-tree-gimple" } */ typedef struct { int i; } Foo; diff --git a/gcc/testsuite/gcc.dg/two-types-6.c b/gcc/testsuite/gcc.dg/two-types-6.c index ca3bfa997a7..50fb7521ec6 100644 --- a/gcc/testsuite/gcc.dg/two-types-6.c +++ b/gcc/testsuite/gcc.dg/two-types-6.c @@ -2,6 +2,6 @@ /* { dg-options "-std=gnu89" } // suppress default -pedantic-errors */ struct s { - struct f {} /* dg-warning "does not declare anything" } */ + struct f {} /* { dg-warning "does not declare anything" } */ struct g {} x; /* { dg-error "expected ';', identifier or " } */ }; diff --git a/gcc/testsuite/gcc.dg/ubsan/c-shift-1.c b/gcc/testsuite/gcc.dg/ubsan/c-shift-1.c index 61b90105364..9d561016f95 100644 --- a/gcc/testsuite/gcc.dg/ubsan/c-shift-1.c +++ b/gcc/testsuite/gcc.dg/ubsan/c-shift-1.c @@ -1,4 +1,4 @@ -/* { dg-do compile} */ +/* { dg-do compile } */ /* { dg-options "-fsanitize=shift -w" } */ /* { dg-shouldfail "ubsan" } */ diff --git a/gcc/testsuite/gcc.dg/var-expand3.c b/gcc/testsuite/gcc.dg/var-expand3.c index dce6ec11c82..b81cef04538 100644 --- a/gcc/testsuite/gcc.dg/var-expand3.c +++ b/gcc/testsuite/gcc.dg/var-expand3.c @@ -1,4 +1,4 @@ -/* { dg-do run { target { powerpc*-*-* && vmx_hw } } }} */ +/* { dg-do run { target { powerpc*-*-* && vmx_hw } } } */ /* { dg-options "-O2 -funroll-loops -ffast-math -fvariable-expansion-in-unroller -maltivec -fdump-rtl-loop2_unroll" } */ #include "altivec.h" diff --git a/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-pr30843.c b/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-pr30843.c index 9cf614165bb..257d098cf8b 100644 --- a/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-pr30843.c +++ b/gcc/testsuite/gcc.dg/vect/costmodel/x86_64/costmodel-pr30843.c @@ -20,6 +20,4 @@ void dacP98FillRGBMap (unsigned char *pBuffer) } } -/* { dg-final { scan-tree-dump-times "vectorization not profitable" 1 "vect" { target vect_interleave -} } } */ - +/* { dg-final { scan-tree-dump-times "vectorization not profitable" 1 "vect" { target vect_interleave } } } */ diff --git a/gcc/testsuite/gcc.dg/vect/pr71264.c b/gcc/testsuite/gcc.dg/vect/pr71264.c index 72d90086ec5..5f6407a2411 100644 --- a/gcc/testsuite/gcc.dg/vect/pr71264.c +++ b/gcc/testsuite/gcc.dg/vect/pr71264.c @@ -19,5 +19,5 @@ void test(uint8_t *ptr, uint8_t *mask) } } -/* { dg-final { scan-tree-dump "vectorized 1 loops in function" "vect" { -xfail sparc*-*-* } } } */ +/* { dg-final { scan-tree-dump "vectorized 1 loops in function" "vect" { xfail sparc*-*-* } } } */ + -- 2.30.2