Remove '{ target *-*-* } }' in dg-(error|warning|message|bogus) find $(find -type d -name testsuite) -type f \ | xargs sed -ri \ 's#(dg-(error|warning|message|bogus).*) \{ target \*-\*-\* \} \}#\1 }#' --- gcc/testsuite/g++.dg/parse/error2.C | 2 +- gcc/testsuite/g++.dg/parse/parameter-declaration-1.C | 2 +- gcc/testsuite/g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C | 2 +- gcc/testsuite/gcc.dg/Wpointer-sign-Wall.c | 2 +- gcc/testsuite/gcc.dg/Wpointer-sign-pedantic.c | 2 +- gcc/testsuite/gcc.dg/cpp/19990413-1.c | 2 +- gcc/testsuite/gcc.dg/dg-test-1.c | 4 ++-- gcc/testsuite/gcc.dg/empty-source-2.c | 2 +- gcc/testsuite/gcc.dg/empty-source-3.c | 2 +- gcc/testsuite/gcc.dg/format/c99-printf-1.c | 4 ++-- gcc/testsuite/gcc.dg/format/c99-scanf-1.c | 2 +- gcc/testsuite/gcc.dg/label-decl-2.c | 2 +- gcc/testsuite/gcc.dg/m-un-2.c | 2 +- gcc/testsuite/gcc.dg/uninit-pr20644-O0.c | 2 +- gcc/testsuite/gfortran.dg/pr70006.f90 | 8 ++++---- gcc/testsuite/obj-c++.dg/fsf-package-0.m | 2 +- .../testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc | 2 +- 17 files changed, 22 insertions(+), 22 deletions(-) diff --git a/gcc/testsuite/g++.dg/parse/error2.C b/gcc/testsuite/g++.dg/parse/error2.C index cb8f413..1cca27c 100644 --- a/gcc/testsuite/g++.dg/parse/error2.C +++ b/gcc/testsuite/g++.dg/parse/error2.C @@ -8,7 +8,7 @@ int func(double); template struct Foo {}; -Foo f; // { dg-error "5:'int func.double.' cannot appear in a constant-expression" "func double" { target *-*-* } } +Foo f; // { dg-error "5:'int func.double.' cannot appear in a constant-expression" "func double" } // { dg-error "10:'g' cannot appear in a constant-expression" "g" { target *-*-* } .-1 } // { dg-error "11:a function call cannot appear in a constant-expression" "call" { target *-*-* } .-2 } // { dg-error "12:template argument 1 is invalid" "invalid template argument" { target *-*-* } .-3 } diff --git a/gcc/testsuite/g++.dg/parse/parameter-declaration-1.C b/gcc/testsuite/g++.dg/parse/parameter-declaration-1.C index 22d6f21..1eaa00e 100644 --- a/gcc/testsuite/g++.dg/parse/parameter-declaration-1.C +++ b/gcc/testsuite/g++.dg/parse/parameter-declaration-1.C @@ -3,4 +3,4 @@ // { dg-do compile } struct { - a(void = 0; a(0), a(0) // { dg-error "" "" { target *-*-* } } + a(void = 0; a(0), a(0) // { dg-error "" "" } diff --git a/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C b/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C index 9027061..d298555 100644 --- a/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C +++ b/gcc/testsuite/g++.dg/warn/Wstrict-aliasing-float-ref-int-obj.C @@ -4,7 +4,7 @@ int foo() { int x; - float& q = reinterpret_cast (x); /* { dg-message "dereferencing type-punned" "deref" { target *-*-* } } */ + float& q = reinterpret_cast (x); /* { dg-message "dereferencing type-punned" "deref" } */ q = 1.0; /* { dg-warning "does break strict-aliasing" "strict-aliasing" { xfail *-*-* } } */ return x; } diff --git a/gcc/testsuite/gcc.dg/Wpointer-sign-Wall.c b/gcc/testsuite/gcc.dg/Wpointer-sign-Wall.c index d29df30..843885f 100644 --- a/gcc/testsuite/gcc.dg/Wpointer-sign-Wall.c +++ b/gcc/testsuite/gcc.dg/Wpointer-sign-Wall.c @@ -2,7 +2,7 @@ /* { dg-options "-Wall" } */ -void foo(unsigned long* ulp); /* { dg-message "note: expected '\[^\n'\]*' but argument is of type '\[^\n'\]*'" "note: expected" { target *-*-* } } */ +void foo(unsigned long* ulp); /* { dg-message "note: expected '\[^\n'\]*' but argument is of type '\[^\n'\]*'" "note: expected" } */ void bar(long* lp) { diff --git a/gcc/testsuite/gcc.dg/Wpointer-sign-pedantic.c b/gcc/testsuite/gcc.dg/Wpointer-sign-pedantic.c index aebfbdd..ab1130d 100644 --- a/gcc/testsuite/gcc.dg/Wpointer-sign-pedantic.c +++ b/gcc/testsuite/gcc.dg/Wpointer-sign-pedantic.c @@ -2,7 +2,7 @@ /* { dg-options "-pedantic" } */ -void foo(unsigned long* ulp);/* { dg-message "note: expected '\[^'\n\]*' but argument is of type '\[^'\n\]*'" "note: expected" { target *-*-* } } */ +void foo(unsigned long* ulp);/* { dg-message "note: expected '\[^'\n\]*' but argument is of type '\[^'\n\]*'" "note: expected" } */ void bar(long* lp) { foo(lp); /* { dg-warning "differ in signedness" } */ diff --git a/gcc/testsuite/gcc.dg/cpp/19990413-1.c b/gcc/testsuite/gcc.dg/cpp/19990413-1.c index bcb7e52..00f62c8 100644 --- a/gcc/testsuite/gcc.dg/cpp/19990413-1.c +++ b/gcc/testsuite/gcc.dg/cpp/19990413-1.c @@ -9,5 +9,5 @@ func(void) { FOO(i = 4) - else; /* { dg-error "'else' without a previous 'if'" "error on this line" { target *-*-* } } */ + else; /* { dg-error "'else' without a previous 'if'" "error on this line" } */ } diff --git a/gcc/testsuite/gcc.dg/dg-test-1.c b/gcc/testsuite/gcc.dg/dg-test-1.c index b4e22e2..c0e672a 100644 --- a/gcc/testsuite/gcc.dg/dg-test-1.c +++ b/gcc/testsuite/gcc.dg/dg-test-1.c @@ -5,7 +5,7 @@ void foo (void) { /* { dg-error "'a' undeclared" "err1" { target *-*-* } .+1 } */ - int z = a + b + c + d;/* { dg-error "'b' undeclared" "err2" { target *-*-* } } */ + int z = a + b + c + d;/* { dg-error "'b' undeclared" "err2" } */ } /* { dg-error "'c' undeclared" "err3" { target *-*-* } .-1 } */ @@ -13,7 +13,7 @@ foo (void) /* { dg-warning "unused parameter 'e'" "warn1" { target *-*-* } .+3 } */ void /* { dg-warning "unused parameter 'f'" "warn2" { target *-*-* } .+1 } */ -bar (int e, int f, int g, int h)/* { dg-warning "unused parameter 'g'" "warn3" { target *-*-* } } */ +bar (int e, int f, int g, int h)/* { dg-warning "unused parameter 'g'" "warn3" } */ { /* { dg-warning "unused parameter 'h'" "warn4" { target *-*-* } .-1 } */ } diff --git a/gcc/testsuite/gcc.dg/empty-source-2.c b/gcc/testsuite/gcc.dg/empty-source-2.c index e0f1e20..ae36159 100644 --- a/gcc/testsuite/gcc.dg/empty-source-2.c +++ b/gcc/testsuite/gcc.dg/empty-source-2.c @@ -3,4 +3,4 @@ /* { dg-do compile } */ /* { dg-options "-pedantic" } */ -/* { dg-warning "ISO C forbids an empty translation unit" "empty" { target *-*-* } } */ +/* { dg-warning "ISO C forbids an empty translation unit" "empty" } */ diff --git a/gcc/testsuite/gcc.dg/empty-source-3.c b/gcc/testsuite/gcc.dg/empty-source-3.c index a1e1d2c..bcd76ac 100644 --- a/gcc/testsuite/gcc.dg/empty-source-3.c +++ b/gcc/testsuite/gcc.dg/empty-source-3.c @@ -4,4 +4,4 @@ /* { dg-do compile } */ /* { dg-options "-pedantic-errors" } */ -/* { dg-error "ISO C forbids an empty translation unit" "empty" { target *-*-* } } */ +/* { dg-error "ISO C forbids an empty translation unit" "empty" } */ diff --git a/gcc/testsuite/gcc.dg/format/c99-printf-1.c b/gcc/testsuite/gcc.dg/format/c99-printf-1.c index 729e41c..408ad49 100644 --- a/gcc/testsuite/gcc.dg/format/c99-printf-1.c +++ b/gcc/testsuite/gcc.dg/format/c99-printf-1.c @@ -62,8 +62,8 @@ foo (int i, unsigned int u, double d, char *s, void *p, int *n, printf ("%llc", i); /* { dg-warning "length" "bad use of %ll" } */ printf ("%lls", s); /* { dg-warning "length" "bad use of %ll" } */ printf ("%llp", p); /* { dg-warning "length" "bad use of %ll" } */ - printf ("%jd%ji%jo%ju%jx%jX", j, j, uj, uj, uj, uj); /* { dg-bogus "length" "bogus %j warning" { target *-*-* } } */ - printf ("%jn", jn); /* { dg-bogus "length" "bogus %j warning" { target *-*-* } } */ + printf ("%jd%ji%jo%ju%jx%jX", j, j, uj, uj, uj, uj); /* { dg-bogus "length" "bogus %j warning" } */ + printf ("%jn", jn); /* { dg-bogus "length" "bogus %j warning" } */ printf ("%jf", d); /* { dg-warning "length" "bad use of %j" } */ printf ("%jF", d); /* { dg-warning "length" "bad use of %j" } */ printf ("%je", d); /* { dg-warning "length" "bad use of %j" } */ diff --git a/gcc/testsuite/gcc.dg/format/c99-scanf-1.c b/gcc/testsuite/gcc.dg/format/c99-scanf-1.c index 7a8b3e2..521ef1d 100644 --- a/gcc/testsuite/gcc.dg/format/c99-scanf-1.c +++ b/gcc/testsuite/gcc.dg/format/c99-scanf-1.c @@ -82,7 +82,7 @@ foo (int *ip, unsigned int *uip, short int *hp, unsigned short int *uhp, scanf ("%ll[ac]", s); /* { dg-warning "length" "bad use of %ll" } */ scanf ("%llc", s); /* { dg-warning "length" "bad use of %ll" } */ scanf ("%llp", pp); /* { dg-warning "length" "bad use of %ll" } */ - scanf ("%jd%ji%jo%ju%jx%jX%jn", jp, jp, ujp, ujp, ujp, ujp, jn); /* { dg-bogus "length" "bogus %j warning" { target *-*-* } } */ + scanf ("%jd%ji%jo%ju%jx%jX%jn", jp, jp, ujp, ujp, ujp, ujp, jn); /* { dg-bogus "length" "bogus %j warning" } */ scanf ("%ja", fp); /* { dg-warning "length" "bad use of %j" } */ scanf ("%jA", fp); /* { dg-warning "length" "bad use of %j" } */ scanf ("%je", fp); /* { dg-warning "length" "bad use of %j" } */ diff --git a/gcc/testsuite/gcc.dg/label-decl-2.c b/gcc/testsuite/gcc.dg/label-decl-2.c index 2ad4272..3ebe290 100644 --- a/gcc/testsuite/gcc.dg/label-decl-2.c +++ b/gcc/testsuite/gcc.dg/label-decl-2.c @@ -8,7 +8,7 @@ typedef int b; void f (void) { - __label__ a, b, c, d; /* { dg-warning "ISO C forbids label declarations" "label decls" { target *-*-* } } */ + __label__ a, b, c, d; /* { dg-warning "ISO C forbids label declarations" "label decls" } */ __extension__ (void)&&d; /* { dg-error "label 'd' used but not defined" } */ goto c; /* { dg-error "label 'c' used but not defined" } */ a: (void)0; diff --git a/gcc/testsuite/gcc.dg/m-un-2.c b/gcc/testsuite/gcc.dg/m-un-2.c index 345b9ff..b12c7cb 100644 --- a/gcc/testsuite/gcc.dg/m-un-2.c +++ b/gcc/testsuite/gcc.dg/m-un-2.c @@ -15,7 +15,7 @@ struct vtable { struct vtable mtable = { malloc, free -}; /* { dg-warning "missing initializer" "warning regression" { target *-*-* } } */ +}; /* { dg-warning "missing initializer" "warning regression" } */ /* { dg-message "declared here" "warning regression 2" { target *-*-* } 12 } */ /* With designated initializers, we assume you meant to leave out the diff --git a/gcc/testsuite/gcc.dg/uninit-pr20644-O0.c b/gcc/testsuite/gcc.dg/uninit-pr20644-O0.c index 14bd0e2..8ae697a 100644 --- a/gcc/testsuite/gcc.dg/uninit-pr20644-O0.c +++ b/gcc/testsuite/gcc.dg/uninit-pr20644-O0.c @@ -18,7 +18,7 @@ int bar () int j; if (1 == i) - return j; /* { dg-warning "uninitialized" "uninitialized" { target *-*-* } } */ + return j; /* { dg-warning "uninitialized" "uninitialized" } */ return 0; } diff --git a/gcc/testsuite/gfortran.dg/pr70006.f90 b/gcc/testsuite/gfortran.dg/pr70006.f90 index a98d3da..97b4170 100644 --- a/gcc/testsuite/gfortran.dg/pr70006.f90 +++ b/gcc/testsuite/gfortran.dg/pr70006.f90 @@ -1,9 +1,9 @@ ! { dg-do compile } program test - print 1, 'string 1' ! { dg-error "FORMAT label 1" " " { target *-*-* } } - print 1, 'string 2' ! { dg-error "FORMAT label 1" " " { target *-*-* } } + print 1, 'string 1' ! { dg-error "FORMAT label 1" " " } + print 1, 'string 2' ! { dg-error "FORMAT label 1" " " } !1 format(a) - goto 2 ! { dg-error "Label 2 referenced" " " { target *-*-* } } - goto 2 ! { dg-error "Label 2 referenced" " " { target *-*-* } } + goto 2 ! { dg-error "Label 2 referenced" " " } + goto 2 ! { dg-error "Label 2 referenced" " " } !2 continue end program diff --git a/gcc/testsuite/obj-c++.dg/fsf-package-0.m b/gcc/testsuite/obj-c++.dg/fsf-package-0.m index c2fc0cf..942c1f4 100644 --- a/gcc/testsuite/obj-c++.dg/fsf-package-0.m +++ b/gcc/testsuite/obj-c++.dg/fsf-package-0.m @@ -32,5 +32,5 @@ void foo (void) a->v2 = 1; a->v3 = [a value] - a->v2; /* { dg-warning ".v3. is @protected" } */ a->v4 = a->v3 - 1; /* { dg-warning ".v4. is @private" } */ - /* { dg-warning ".v3. is @protected" "" { target *-*-* } } */ + /* { dg-warning ".v3. is @protected" "" } */ } diff --git a/libstdc++-v3/testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc b/libstdc++-v3/testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc index 76999c4..c16ac6f 100644 --- a/libstdc++-v3/testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc +++ b/libstdc++-v3/testsuite/17_intro/headers/c++1998/stdc++_assert_neg.cc @@ -31,5 +31,5 @@ void foo() { - assert(true); // { dg-error "not declared" "" { target *-*-* } } + assert(true); // { dg-error "not declared" "" } }