It is much nicer to avoid a warning than to manually prune it from the compiler output. This patch adds -Wno-psabi to various testcases, and removes dg-prune-output, for the testcases where x86 and/or PowerPC had those (or did warn, so the testcase failed). It also removes -w whenever there is -Wno-psabi already.
Tested on powerpc64-linux {-m32,-m64}, and on x86_64-linux {-m64,-m32/-msse,-m32/-mno-sse}. No changes, except there are a few fewer FAILs with -m32/-mno-sse (because of the -Wno-psabi). Is this okay for trunk? 2016-10-11 Segher Boessenkool <seg...@kernel.crashing.org> gcc/testsuite/ * c-c++-common/Wbool-operation-1.c: Add -Wno-psabi and do not prune the messages printed by -Wpsabi. Do not use -w. * c-c++-common/Wunused-var-15.c: Ditto. * c-c++-common/convert-vec-1.c: Ditto. * c-c++-common/scal-to-vec2.c: Ditto. * c-c++-common/torture/vector-compare-2.c: Ditto. * c-c++-common/vector-compare-1.c: Ditto. * c-c++-common/vector-compare-2.c: Ditto. * c-c++-common/vector-compare-4.c: Ditto. * c-c++-common/vector-subscript-4.c: Ditto. * g++.dg/conversion/simd1.C: Ditto. * g++.dg/cpp0x/constexpr-53094-2.C: Ditto. * g++.dg/cpp0x/constexpr-53094-3.C: Ditto. * g++.dg/cpp0x/constexpr-55573.C: Ditto. * g++.dg/ext/attribute-test-1.C: Ditto. * g++.dg/ext/attribute-test-2.C: Ditto. * g++.dg/ext/attribute-test-3.C: Ditto. * g++.dg/ext/attribute-test-4.C: Ditto. * g++.dg/ext/pr56790-1.C: Ditto. * g++.dg/ext/pr70290.C: Ditto. * g++.dg/ext/vector14.C: Ditto. * g++.dg/ext/vector23.C: Ditto. * g++.dg/torture/pr38565.C: Ditto. * g++.dg/torture/pr63419.C: Ditto. * g++.dg/torture/pr70251.C: Ditto. * g++.dg/torture/pr70499.C: Ditto. * gcc.c-torture/compile/pr33617.c: Ditto. * gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c: Ditto. * gcc.dg/compat/vector-1_x.c: Ditto. * gcc.dg/compat/vector-1_y.c: Ditto. * gcc.dg/compat/vector-1a_x.c: Ditto. * gcc.dg/compat/vector-1a_y.c: Ditto. * gcc.dg/compat/vector-1b_x.c: Ditto. * gcc.dg/compat/vector-1b_y.c: Ditto. * gcc.dg/compat/vector-2_x.c: Ditto. * gcc.dg/compat/vector-2_y.c: Ditto. * gcc.dg/compat/vector-2a_x.c: Ditto. * gcc.dg/compat/vector-2a_y.c: Ditto. * gcc.dg/compat/vector-2b_x.c: Ditto. * gcc.dg/compat/vector-2b_y.c: Ditto. * gcc.dg/graphite/id-pr46845.c: Ditto. * gcc.dg/plugin/diagnostic-test-expressions-1.c: Ditto. * gcc.dg/pr34856.c: Ditto. * gcc.dg/pr35442.c: Ditto. * gcc.dg/pr43300.c: Ditto. * gcc.dg/pr44136.c: Ditto. * gcc.dg/pr53060.c: Ditto. * gcc.dg/pr63594-1.c: Ditto. * gcc.dg/pr63594-2.c: Ditto. * gcc.dg/pr63914.c: Ditto. * gcc.dg/pr69634.c: Ditto. * gcc.dg/pr70022.c: Ditto. * gcc.dg/pr70050.c: Ditto. * gcc.dg/pr70219.c: Ditto. * gcc.dg/pr70326.c: Ditto. * gcc.dg/pr71478.c: Ditto. * gcc.dg/pr76783.c: Ditto. * gcc.dg/simd-7.c: Ditto. * gcc.dg/simd-8.c: Ditto. * gcc.dg/torture/pr36891.c: Ditto. * gcc.dg/torture/pr47968.c: Ditto. * gcc.dg/torture/pr52402.c: Ditto. * gcc.dg/torture/pr69613.c: Ditto. * gcc.dg/torture/pr69886.c: Ditto. * gcc.dg/torture/pr70083.c: Ditto. * gcc.dg/torture/pr70307.c: Ditto. * gcc.dg/torture/pr70421.c: Ditto. * gcc.dg/torture/pr71428.c: Ditto. * gcc.dg/torture/pr71984.c: Ditto. * gcc.dg/tree-ssa/forwprop-35.c: Ditto. * gcc.dg/tree-ssa/pr68714.c: Ditto. * gcc.dg/tree-ssa/pr70372.c: Ditto. * gcc.dg/tree-ssa/pr71179.c: Ditto. * gcc.dg/tree-ssa/ssa-fre-55.c: Ditto. * gcc.dg/tree-ssa/vector-6.c: Ditto. * gcc.target/i386/vect-args.c: Ditto. --- gcc/testsuite/c-c++-common/Wbool-operation-1.c | 2 -- gcc/testsuite/c-c++-common/Wunused-var-15.c | 3 --- gcc/testsuite/c-c++-common/convert-vec-1.c | 3 ++- gcc/testsuite/c-c++-common/scal-to-vec2.c | 3 +-- gcc/testsuite/c-c++-common/torture/vector-compare-2.c | 2 +- gcc/testsuite/c-c++-common/vector-compare-1.c | 3 +-- gcc/testsuite/c-c++-common/vector-compare-2.c | 3 +-- gcc/testsuite/c-c++-common/vector-compare-4.c | 2 -- gcc/testsuite/c-c++-common/vector-subscript-4.c | 2 +- gcc/testsuite/g++.dg/conversion/simd1.C | 4 +--- gcc/testsuite/g++.dg/cpp0x/constexpr-53094-2.C | 4 +--- gcc/testsuite/g++.dg/cpp0x/constexpr-53094-3.C | 3 +-- gcc/testsuite/g++.dg/cpp0x/constexpr-55573.C | 3 +-- gcc/testsuite/g++.dg/ext/attribute-test-1.C | 6 +----- gcc/testsuite/g++.dg/ext/attribute-test-2.C | 6 +----- gcc/testsuite/g++.dg/ext/attribute-test-3.C | 5 +---- gcc/testsuite/g++.dg/ext/attribute-test-4.C | 5 +---- gcc/testsuite/g++.dg/ext/pr56790-1.C | 2 +- gcc/testsuite/g++.dg/ext/pr70290.C | 6 +----- gcc/testsuite/g++.dg/ext/vector14.C | 3 +-- gcc/testsuite/g++.dg/ext/vector23.C | 5 +---- gcc/testsuite/g++.dg/torture/pr38565.C | 5 ++--- gcc/testsuite/g++.dg/torture/pr63419.C | 2 -- gcc/testsuite/g++.dg/torture/pr70251.C | 2 +- gcc/testsuite/g++.dg/torture/pr70499.C | 2 +- gcc/testsuite/gcc.c-torture/compile/pr33617.c | 2 +- gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c | 4 +--- gcc/testsuite/gcc.dg/compat/vector-1_x.c | 3 +-- gcc/testsuite/gcc.dg/compat/vector-1_y.c | 3 +-- gcc/testsuite/gcc.dg/compat/vector-1a_x.c | 2 +- gcc/testsuite/gcc.dg/compat/vector-1a_y.c | 2 +- gcc/testsuite/gcc.dg/compat/vector-1b_x.c | 2 +- gcc/testsuite/gcc.dg/compat/vector-1b_y.c | 2 +- gcc/testsuite/gcc.dg/compat/vector-2_x.c | 4 ++-- gcc/testsuite/gcc.dg/compat/vector-2_y.c | 4 ++-- gcc/testsuite/gcc.dg/compat/vector-2a_x.c | 2 +- gcc/testsuite/gcc.dg/compat/vector-2a_y.c | 2 +- gcc/testsuite/gcc.dg/compat/vector-2b_x.c | 2 +- gcc/testsuite/gcc.dg/compat/vector-2b_y.c | 2 +- gcc/testsuite/gcc.dg/graphite/id-pr46845.c | 2 +- gcc/testsuite/gcc.dg/plugin/diagnostic-test-expressions-1.c | 1 + gcc/testsuite/gcc.dg/pr34856.c | 5 +---- gcc/testsuite/gcc.dg/pr35442.c | 4 +--- gcc/testsuite/gcc.dg/pr43300.c | 3 +-- gcc/testsuite/gcc.dg/pr44136.c | 4 ++-- gcc/testsuite/gcc.dg/pr53060.c | 5 +---- gcc/testsuite/gcc.dg/pr63594-1.c | 1 - gcc/testsuite/gcc.dg/pr63594-2.c | 1 - gcc/testsuite/gcc.dg/pr63914.c | 2 +- gcc/testsuite/gcc.dg/pr69634.c | 3 ++- gcc/testsuite/gcc.dg/pr70022.c | 2 +- gcc/testsuite/gcc.dg/pr70050.c | 2 +- gcc/testsuite/gcc.dg/pr70219.c | 2 +- gcc/testsuite/gcc.dg/pr70326.c | 2 +- gcc/testsuite/gcc.dg/pr71478.c | 2 +- gcc/testsuite/gcc.dg/pr76783.c | 2 +- gcc/testsuite/gcc.dg/simd-7.c | 2 +- gcc/testsuite/gcc.dg/simd-8.c | 2 +- gcc/testsuite/gcc.dg/torture/pr36891.c | 4 +--- gcc/testsuite/gcc.dg/torture/pr47968.c | 2 +- gcc/testsuite/gcc.dg/torture/pr52402.c | 2 +- gcc/testsuite/gcc.dg/torture/pr69613.c | 2 +- gcc/testsuite/gcc.dg/torture/pr69886.c | 2 +- gcc/testsuite/gcc.dg/torture/pr70083.c | 4 ---- gcc/testsuite/gcc.dg/torture/pr70307.c | 4 ---- gcc/testsuite/gcc.dg/torture/pr70421.c | 2 +- gcc/testsuite/gcc.dg/torture/pr71428.c | 2 +- gcc/testsuite/gcc.dg/torture/pr71984.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/forwprop-35.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/pr68714.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/pr70372.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/pr71179.c | 2 +- gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-55.c | 1 + gcc/testsuite/gcc.dg/tree-ssa/vector-6.c | 2 +- gcc/testsuite/gcc.target/i386/vect-args.c | 2 +- 75 files changed, 73 insertions(+), 134 deletions(-) diff --git a/gcc/testsuite/c-c++-common/Wbool-operation-1.c b/gcc/testsuite/c-c++-common/Wbool-operation-1.c index 552b044..9ed53aa 100644 --- a/gcc/testsuite/c-c++-common/Wbool-operation-1.c +++ b/gcc/testsuite/c-c++-common/Wbool-operation-1.c @@ -34,5 +34,3 @@ fn (bool b, bool b2, T b3, int n, v4si v) return r; } - -/* { dg-prune-output ".*GCC vector passed by reference.*" } */ diff --git a/gcc/testsuite/c-c++-common/Wunused-var-15.c b/gcc/testsuite/c-c++-common/Wunused-var-15.c index b0f680a..b52a436 100644 --- a/gcc/testsuite/c-c++-common/Wunused-var-15.c +++ b/gcc/testsuite/c-c++-common/Wunused-var-15.c @@ -15,6 +15,3 @@ foo (V v) /* { dg-bogus "set but not used" } */ V w = x; /* { dg-bogus "set but not used" } */ bar (w[1]); } - -/* Ignore a warning that is irrelevant to the purpose of this test. */ -/* { dg-prune-output ".*GCC vector passed by reference.*" } */ diff --git a/gcc/testsuite/c-c++-common/convert-vec-1.c b/gcc/testsuite/c-c++-common/convert-vec-1.c index 862190d..5717294 100644 --- a/gcc/testsuite/c-c++-common/convert-vec-1.c +++ b/gcc/testsuite/c-c++-common/convert-vec-1.c @@ -1,4 +1,5 @@ /* { dg-do compile } */ -/* { dg-prune-output "changes the ABI" } */ +/* { dg-additional-options "-Wno-psabi" } */ + typedef float v2sf __attribute__ ((vector_size (8))); v2sf sub (void) { return (v2sf) 0.0; } /* { dg-error "can't convert" } */ diff --git a/gcc/testsuite/c-c++-common/scal-to-vec2.c b/gcc/testsuite/c-c++-common/scal-to-vec2.c index e2c93ee..343acb0 100644 --- a/gcc/testsuite/c-c++-common/scal-to-vec2.c +++ b/gcc/testsuite/c-c++-common/scal-to-vec2.c @@ -2,8 +2,7 @@ /* { dg-options "-fno-common" { target hppa*-*-hpux* } } */ /* { dg-options "-mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */ /* { dg-options "-msse2" { target { i?86-*-* x86_64-*-* } } } */ -/* Ignore warning on some powerpc-ibm-aix configurations. */ -/* { dg-prune-output "non-standard ABI extension" } */ +/* { dg-additional-options "-Wno-psabi" } */ /* Test for C_MAYBE_CONST are folded correctly when expanding an expression to vector. */ diff --git a/gcc/testsuite/c-c++-common/torture/vector-compare-2.c b/gcc/testsuite/c-c++-common/torture/vector-compare-2.c index 628a699..45453e6b 100644 --- a/gcc/testsuite/c-c++-common/torture/vector-compare-2.c +++ b/gcc/testsuite/c-c++-common/torture/vector-compare-2.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-Wno-psabi -w" } */ +/* { dg-options "-Wno-psabi" } */ #define vector(elcount, type) \ __attribute__((vector_size((elcount)*sizeof(type)))) type diff --git a/gcc/testsuite/c-c++-common/vector-compare-1.c b/gcc/testsuite/c-c++-common/vector-compare-1.c index 8416c8d..bb2f8de 100644 --- a/gcc/testsuite/c-c++-common/vector-compare-1.c +++ b/gcc/testsuite/c-c++-common/vector-compare-1.c @@ -1,8 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */ /* { dg-prune-output "operand types are" } */ -/* Ignore warning on some powerpc-ibm-aix configurations. */ -/* { dg-prune-output "non-standard ABI extension" } */ +/* { dg-additional-options "-Wno-psabi" } */ #define vector(elcount, type) \ __attribute__((vector_size((elcount)*sizeof(type)))) type diff --git a/gcc/testsuite/c-c++-common/vector-compare-2.c b/gcc/testsuite/c-c++-common/vector-compare-2.c index 5ebe9e3..8f6a847 100644 --- a/gcc/testsuite/c-c++-common/vector-compare-2.c +++ b/gcc/testsuite/c-c++-common/vector-compare-2.c @@ -2,8 +2,7 @@ /* { dg-options "-fno-common" { target hppa*-*-hpux* } } */ /* { dg-options "-mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */ /* { dg-options "-msse2" { target { i?86-*-* x86_64-*-* } } } */ -/* Ignore warning on some powerpc-ibm-aix configurations. */ -/* { dg-prune-output "non-standard ABI extension" } */ +/* { dg-additional-options "-Wno-psabi" } */ /* Test if C_MAYBE_CONST are folded correctly when creating VEC_COND_EXPR. */ diff --git a/gcc/testsuite/c-c++-common/vector-compare-4.c b/gcc/testsuite/c-c++-common/vector-compare-4.c index e7d37eb..4af3724 100644 --- a/gcc/testsuite/c-c++-common/vector-compare-4.c +++ b/gcc/testsuite/c-c++-common/vector-compare-4.c @@ -1,8 +1,6 @@ /* PR c/68062 */ /* { dg-do compile } */ /* { dg-options "-Wsign-compare -Wno-psabi" } */ -/* Ignore warning on some powerpc configurations. */ -/* { dg-prune-output "non-standard ABI extension" } */ typedef signed char __attribute__ ((vector_size (4))) v4qi; typedef unsigned char __attribute__ ((vector_size (4))) uv4qi; diff --git a/gcc/testsuite/c-c++-common/vector-subscript-4.c b/gcc/testsuite/c-c++-common/vector-subscript-4.c index 2c2481f..e867943 100644 --- a/gcc/testsuite/c-c++-common/vector-subscript-4.c +++ b/gcc/testsuite/c-c++-common/vector-subscript-4.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-optimized -w -Wno-psabi" } */ +/* { dg-options "-O2 -fdump-tree-optimized -Wno-psabi" } */ #define foobar(n) \ typedef int v##n##si __attribute__ ((vector_size (4 * n))); \ diff --git a/gcc/testsuite/g++.dg/conversion/simd1.C b/gcc/testsuite/g++.dg/conversion/simd1.C index 7955f68..69eda08 100644 --- a/gcc/testsuite/g++.dg/conversion/simd1.C +++ b/gcc/testsuite/g++.dg/conversion/simd1.C @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-msse2" { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-additional-options "-Wno-psabi" } */ /* Test overload resolution of vector types. From Janis Johnson and Paolo Bonzini, based on PR/16882 */ @@ -21,6 +22,3 @@ void foo () vss = vld(i, vssp); vss = vld(i, cvssp); } - -/* Ignore a warning that is irrelevant to the purpose of this test. */ -/* { dg-prune-output ".*GCC vector returned by reference.*" } */ diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-53094-2.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-53094-2.C index f34619a..797b0ad 100644 --- a/gcc/testsuite/g++.dg/cpp0x/constexpr-53094-2.C +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-53094-2.C @@ -1,7 +1,5 @@ // { dg-do compile { target c++11 } } -// Ignore warning on some powerpc-ibm-aix configurations. -// { dg-prune-output "non-standard ABI extension" } -// { dg-prune-output "changes the ABI" } +// { dg-additional-options "-Wno-psabi" } typedef float __attribute__ ((vector_size (4 * sizeof (float)))) V4; constexpr V4 build (float x, float y, float z) { return __extension__ (V4){ x, y, z, 0 };} diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-53094-3.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-53094-3.C index 58c00ed..2b5766f 100644 --- a/gcc/testsuite/g++.dg/cpp0x/constexpr-53094-3.C +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-53094-3.C @@ -1,7 +1,6 @@ // { dg-do compile { target c++11 } } // { dg-options "" } -// Ignore warning on some powerpc-ibm-aix configurations. -// { dg-prune-output "non-standard ABI extension" } +// { dg-additional-options "-Wno-psabi" } typedef float __attribute__ ((vector_size (4 * sizeof (float)))) V4; diff --git a/gcc/testsuite/g++.dg/cpp0x/constexpr-55573.C b/gcc/testsuite/g++.dg/cpp0x/constexpr-55573.C index bec69c7..39b1130 100644 --- a/gcc/testsuite/g++.dg/cpp0x/constexpr-55573.C +++ b/gcc/testsuite/g++.dg/cpp0x/constexpr-55573.C @@ -1,8 +1,7 @@ // PR c++/55573 // { dg-do compile { target c++11 } } // { dg-options "" } -// Ignore warning on some powerpc-ibm-aix configurations. -// { dg-prune-output "non-standard ABI extension" } +// { dg-additional-options "-Wno-psabi" } template <typename T, int N> struct ExtVecTraits { diff --git a/gcc/testsuite/g++.dg/ext/attribute-test-1.C b/gcc/testsuite/g++.dg/ext/attribute-test-1.C index 93e08d7..a10f6c8 100644 --- a/gcc/testsuite/g++.dg/ext/attribute-test-1.C +++ b/gcc/testsuite/g++.dg/ext/attribute-test-1.C @@ -1,5 +1,5 @@ // { dg-do run } -// { dg-options "" } +// { dg-options "-Wno-psabi" } // PR c++/13989 extern "C" void abort(); @@ -33,7 +33,3 @@ int main() return 0; } - -/* Ignore a warning that is irrelevant to the purpose of this test. */ -/* { dg-prune-output ".*GCC vector returned by reference.*" } */ -/* { dg-prune-output "changes the ABI" } */ diff --git a/gcc/testsuite/g++.dg/ext/attribute-test-2.C b/gcc/testsuite/g++.dg/ext/attribute-test-2.C index d7c417d..8f80ad9 100644 --- a/gcc/testsuite/g++.dg/ext/attribute-test-2.C +++ b/gcc/testsuite/g++.dg/ext/attribute-test-2.C @@ -1,5 +1,5 @@ // { dg-do run } -// { dg-options "-Wno-abi" } +// { dg-options "-Wno-abi -Wno-psabi" } // PR c++/9844 extern "C" void abort(); @@ -47,7 +47,3 @@ int main() return 0; } - -/* Ignore a warning that is irrelevant to the purpose of this test. */ -/* { dg-prune-output ".*GCC vector returned by reference.*" } */ -/* { dg-prune-output "changes the ABI" } */ diff --git a/gcc/testsuite/g++.dg/ext/attribute-test-3.C b/gcc/testsuite/g++.dg/ext/attribute-test-3.C index 4b0939e..1590d62 100644 --- a/gcc/testsuite/g++.dg/ext/attribute-test-3.C +++ b/gcc/testsuite/g++.dg/ext/attribute-test-3.C @@ -1,4 +1,5 @@ // { dg-do run } +// { dg-additional-options "-Wno-psabi" } #define vector __attribute__((vector_size(16))) @@ -49,7 +50,3 @@ int main() { abort(); return 0; } - -/* Ignore a warning that is irrelevant to the purpose of this test. */ -/* { dg-prune-output ".*GCC vector returned by reference.*" } */ -/* { dg-prune-output "changes the ABI" } */ diff --git a/gcc/testsuite/g++.dg/ext/attribute-test-4.C b/gcc/testsuite/g++.dg/ext/attribute-test-4.C index c3e949a..968bb68 100644 --- a/gcc/testsuite/g++.dg/ext/attribute-test-4.C +++ b/gcc/testsuite/g++.dg/ext/attribute-test-4.C @@ -1,4 +1,5 @@ // { dg-do run } +// { dg-additional-options "-Wno-psabi" } #define vector __attribute__((vector_size(16))) @@ -46,7 +47,3 @@ int main() { abort(); return 0; } - -/* Ignore a warning that is irrelevant to the purpose of this test. */ -/* { dg-prune-output ".*GCC vector returned by reference.*" } */ -/* { dg-prune-output "changes the ABI" } */ diff --git a/gcc/testsuite/g++.dg/ext/pr56790-1.C b/gcc/testsuite/g++.dg/ext/pr56790-1.C index b413e8b..6eab355 100644 --- a/gcc/testsuite/g++.dg/ext/pr56790-1.C +++ b/gcc/testsuite/g++.dg/ext/pr56790-1.C @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fdump-tree-ccp1" } */ -/* { dg-prune-output "changes the ABI" } */ +/* { dg-additional-options "-Wno-psabi" } */ typedef long vec __attribute__ ((vector_size (2 * sizeof (long)))); diff --git a/gcc/testsuite/g++.dg/ext/pr70290.C b/gcc/testsuite/g++.dg/ext/pr70290.C index f524227..6adfde9 100644 --- a/gcc/testsuite/g++.dg/ext/pr70290.C +++ b/gcc/testsuite/g++.dg/ext/pr70290.C @@ -1,6 +1,6 @@ /* PR target/70290 */ /* { dg-do compile } */ -/* { dg-options "-Wno-psabi -w" } */ +/* { dg-options "-Wno-psabi" } */ /* { dg-additional-options "-mavx512vl" { target { i?86-*-* x86_64-*-* } } } */ typedef int vec __attribute__((vector_size(32))); @@ -18,7 +18,3 @@ test2 (vec x, vec y) vec one = zero + 1; return (x < y) ? one : zero; } - -/* Ignore a warning that is irrelevant to the purpose of this test. */ -/* { dg-prune-output ".*GCC vector passed by reference.*" } */ - diff --git a/gcc/testsuite/g++.dg/ext/vector14.C b/gcc/testsuite/g++.dg/ext/vector14.C index 8e79210..b07a9ff 100644 --- a/gcc/testsuite/g++.dg/ext/vector14.C +++ b/gcc/testsuite/g++.dg/ext/vector14.C @@ -2,8 +2,7 @@ // { dg-do compile } // { dg-options "-msse" { target { { i?86-*-* x86_64-*-* } && ilp32 } } } // { dg-require-effective-target sse } -// Ignore warning on some powerpc-linux configurations. -// { dg-prune-output "non-standard ABI extension" } +// { dg-additional-options "-Wno-psabi" } // { dg-prune-output "mangled name" } #define vector __attribute__((vector_size(16))) diff --git a/gcc/testsuite/g++.dg/ext/vector23.C b/gcc/testsuite/g++.dg/ext/vector23.C index a50b286..53cc729 100644 --- a/gcc/testsuite/g++.dg/ext/vector23.C +++ b/gcc/testsuite/g++.dg/ext/vector23.C @@ -1,9 +1,6 @@ /* { dg-do compile { target c++14 } } */ /* { dg-options "-Wsign-conversion" } */ -// Ignore warning on some powerpc-linux configurations. -// { dg-prune-output "non-standard ABI extension" } -// Ignore warning on Linux/x86 -// { dg-prune-output "changes the ABI" } +/* { dg-additional-options "-Wno-psabi" } */ typedef double vecd __attribute__((vector_size(4*sizeof(double)))); typedef float vecf __attribute__((vector_size(8*sizeof(float)))); diff --git a/gcc/testsuite/g++.dg/torture/pr38565.C b/gcc/testsuite/g++.dg/torture/pr38565.C index 7216b1c..412a7a1 100644 --- a/gcc/testsuite/g++.dg/torture/pr38565.C +++ b/gcc/testsuite/g++.dg/torture/pr38565.C @@ -1,7 +1,6 @@ // { dg-do compile } -// Ignore warning on some powerpc-linux configurations. -// { dg-prune-output "non-standard ABI extension" } -// { dg-prune-output "changes the ABI" } +// { dg-additional-options "-Wno-psabi" } + #define vector __attribute__((vector_size(16) )) vector unsigned int f(int a) { diff --git a/gcc/testsuite/g++.dg/torture/pr63419.C b/gcc/testsuite/g++.dg/torture/pr63419.C index 6d4c074..3f5c865 100644 --- a/gcc/testsuite/g++.dg/torture/pr63419.C +++ b/gcc/testsuite/g++.dg/torture/pr63419.C @@ -1,7 +1,5 @@ // { dg-do compile } // { dg-additional-options "-Wno-psabi" } -// Ignore warning on some powerpc-linux configurations. -// { dg-prune-output "non-standard ABI extension" } typedef float __m128 __attribute__ ((__vector_size__ (16))); const int a = 0; diff --git a/gcc/testsuite/g++.dg/torture/pr70251.C b/gcc/testsuite/g++.dg/torture/pr70251.C index 5af35b2..bba6ba9 100644 --- a/gcc/testsuite/g++.dg/torture/pr70251.C +++ b/gcc/testsuite/g++.dg/torture/pr70251.C @@ -1,5 +1,5 @@ // { dg-do compile } -// { dg-additional-options "-w -Wno-psabi" } +// { dg-additional-options "-Wno-psabi" } typedef int vec __attribute__((vector_size(64))); vec f(vec x,vec y,vec z) diff --git a/gcc/testsuite/g++.dg/torture/pr70499.C b/gcc/testsuite/g++.dg/torture/pr70499.C index 954fea5..8517267 100644 --- a/gcc/testsuite/g++.dg/torture/pr70499.C +++ b/gcc/testsuite/g++.dg/torture/pr70499.C @@ -1,5 +1,5 @@ // { dg-do compile } -// { dg-additional-options "-w -Wno-psabi" } +// { dg-additional-options "-Wno-psabi" } // { dg-additional-options "-mavx" { target x86_64-*-* i?86-*-* } } typedef double __m256d __attribute__ ((__vector_size__ (32), __may_alias__)); diff --git a/gcc/testsuite/gcc.c-torture/compile/pr33617.c b/gcc/testsuite/gcc.c-torture/compile/pr33617.c index 51c6f14..0af336c 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr33617.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr33617.c @@ -1,4 +1,4 @@ -/* { dg-options "-w -Wno-psabi" { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-options "-Wno-psabi" { target { i?86-*-* x86_64-*-* } } } */ typedef float V8SF __attribute__ ((vector_size (32))); void bar (V8SF); diff --git a/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c b/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c index b1bee33..1fa8a50 100644 --- a/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c +++ b/gcc/testsuite/gcc.dg/Wstrict-aliasing-bogus-ref-all-2.c @@ -2,6 +2,7 @@ /* { dg-options "-O2 -Wall" } */ /* { dg-options "-O2 -Wall -mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */ /* { dg-options "-O2 -Wall -msse2" { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-additional-options "-Wno-psabi" } */ typedef long long __m128i __attribute__ ((__vector_size__ (16), __may_alias__)); @@ -23,6 +24,3 @@ __m128i get_vec(void) return ret; } - -/* Ignore a warning that is irrelevant to the purpose of this test. */ -/* { dg-prune-output ".*GCC vector returned by reference.*" } */ diff --git a/gcc/testsuite/gcc.dg/compat/vector-1_x.c b/gcc/testsuite/gcc.dg/compat/vector-1_x.c index 29a8170..da95adf 100644 --- a/gcc/testsuite/gcc.dg/compat/vector-1_x.c +++ b/gcc/testsuite/gcc.dg/compat/vector-1_x.c @@ -1,5 +1,4 @@ -/* { dg-options "-w" } */ -/* { dg-options "-w -Wno-psabi" { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-options "-Wno-psabi" } */ #ifndef SKIP_ATTRIBUTE diff --git a/gcc/testsuite/gcc.dg/compat/vector-1_y.c b/gcc/testsuite/gcc.dg/compat/vector-1_y.c index 284b98c..34b8998 100644 --- a/gcc/testsuite/gcc.dg/compat/vector-1_y.c +++ b/gcc/testsuite/gcc.dg/compat/vector-1_y.c @@ -1,5 +1,4 @@ -/* { dg-options "-w" } */ -/* { dg-options "-w -Wno-psabi" { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-options "-Wno-psabi" } */ #ifndef SKIP_ATTRIBUTE diff --git a/gcc/testsuite/gcc.dg/compat/vector-1a_x.c b/gcc/testsuite/gcc.dg/compat/vector-1a_x.c index 1d39cec..a52c686 100644 --- a/gcc/testsuite/gcc.dg/compat/vector-1a_x.c +++ b/gcc/testsuite/gcc.dg/compat/vector-1a_x.c @@ -1,3 +1,3 @@ -/* { dg-options "-w -Wno-psabi -mno-mmx -msse2" } */ +/* { dg-options "-Wno-psabi -mno-mmx -msse2" } */ #include "vector-1_x.c" diff --git a/gcc/testsuite/gcc.dg/compat/vector-1a_y.c b/gcc/testsuite/gcc.dg/compat/vector-1a_y.c index 53b1a7f..cfe1b94 100644 --- a/gcc/testsuite/gcc.dg/compat/vector-1a_y.c +++ b/gcc/testsuite/gcc.dg/compat/vector-1a_y.c @@ -1,3 +1,3 @@ -/* { dg-options "-w -Wno-psabi -mno-mmx -msse2" } */ +/* { dg-options "-Wno-psabi -mno-mmx -msse2" } */ #include "vector-1_y.c" diff --git a/gcc/testsuite/gcc.dg/compat/vector-1b_x.c b/gcc/testsuite/gcc.dg/compat/vector-1b_x.c index f3f76ec..753624d 100644 --- a/gcc/testsuite/gcc.dg/compat/vector-1b_x.c +++ b/gcc/testsuite/gcc.dg/compat/vector-1b_x.c @@ -1,3 +1,3 @@ -/* { dg-options "-w -Wno-psabi -mno-mmx -mavx" } */ +/* { dg-options "-Wno-psabi -mno-mmx -mavx" } */ #include "vector-1_x.c" diff --git a/gcc/testsuite/gcc.dg/compat/vector-1b_y.c b/gcc/testsuite/gcc.dg/compat/vector-1b_y.c index 105282c..c6f46ab 100644 --- a/gcc/testsuite/gcc.dg/compat/vector-1b_y.c +++ b/gcc/testsuite/gcc.dg/compat/vector-1b_y.c @@ -1,3 +1,3 @@ -/* { dg-options "-w -Wno-psabi -mno-mmx -mavx" } */ +/* { dg-options "-Wno-psabi -mno-mmx -mavx" } */ #include "vector-1_y.c" diff --git a/gcc/testsuite/gcc.dg/compat/vector-2_x.c b/gcc/testsuite/gcc.dg/compat/vector-2_x.c index 899a3ab..b88a23e 100644 --- a/gcc/testsuite/gcc.dg/compat/vector-2_x.c +++ b/gcc/testsuite/gcc.dg/compat/vector-2_x.c @@ -1,5 +1,5 @@ -/* { dg-options "-w" } */ -/* { dg-options "-w -mno-mmx -Wno-psabi" { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-options "-Wno-psabi" } */ +/* { dg-options "-Wno-psabi -mno-mmx" { target { i?86-*-* x86_64-*-* } } } */ #ifndef SKIP_ATTRIBUTE diff --git a/gcc/testsuite/gcc.dg/compat/vector-2_y.c b/gcc/testsuite/gcc.dg/compat/vector-2_y.c index a5ab241..6ae8d61 100644 --- a/gcc/testsuite/gcc.dg/compat/vector-2_y.c +++ b/gcc/testsuite/gcc.dg/compat/vector-2_y.c @@ -1,5 +1,5 @@ -/* { dg-options "-w" } */ -/* { dg-options "-w -mno-mmx -Wno-psabi" { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-options "-Wno-psabi" } */ +/* { dg-options "-Wno-psabi -mno-mmx" { target { i?86-*-* x86_64-*-* } } } */ #ifndef SKIP_ATTRIBUTE diff --git a/gcc/testsuite/gcc.dg/compat/vector-2a_x.c b/gcc/testsuite/gcc.dg/compat/vector-2a_x.c index fb62bb8..c9059bf 100644 --- a/gcc/testsuite/gcc.dg/compat/vector-2a_x.c +++ b/gcc/testsuite/gcc.dg/compat/vector-2a_x.c @@ -1,3 +1,3 @@ -/* { dg-options "-w -Wno-psabi -mno-mmx -msse2" } */ +/* { dg-options "-Wno-psabi -mno-mmx -msse2" } */ #include "vector-2_x.c" diff --git a/gcc/testsuite/gcc.dg/compat/vector-2a_y.c b/gcc/testsuite/gcc.dg/compat/vector-2a_y.c index 7cdd195..b0de68f 100644 --- a/gcc/testsuite/gcc.dg/compat/vector-2a_y.c +++ b/gcc/testsuite/gcc.dg/compat/vector-2a_y.c @@ -1,3 +1,3 @@ -/* { dg-options "-w -Wno-psabi -mno-mmx -msse2" } */ +/* { dg-options "-Wno-psabi -mno-mmx -msse2" } */ #include "vector-2_y.c" diff --git a/gcc/testsuite/gcc.dg/compat/vector-2b_x.c b/gcc/testsuite/gcc.dg/compat/vector-2b_x.c index 71b36be..1974bd9 100644 --- a/gcc/testsuite/gcc.dg/compat/vector-2b_x.c +++ b/gcc/testsuite/gcc.dg/compat/vector-2b_x.c @@ -1,3 +1,3 @@ -/* { dg-options "-w -Wno-psabi -mno-mmx -mavx" } */ +/* { dg-options "-Wno-psabi -mno-mmx -mavx" } */ #include "vector-2_x.c" diff --git a/gcc/testsuite/gcc.dg/compat/vector-2b_y.c b/gcc/testsuite/gcc.dg/compat/vector-2b_y.c index 9c114bb..2c909b8 100644 --- a/gcc/testsuite/gcc.dg/compat/vector-2b_y.c +++ b/gcc/testsuite/gcc.dg/compat/vector-2b_y.c @@ -1,3 +1,3 @@ -/* { dg-options "-w -Wno-psabi -mno-mmx -mavx" } */ +/* { dg-options "-Wno-psabi -mno-mmx -mavx" } */ #include "vector-2_y.c" diff --git a/gcc/testsuite/gcc.dg/graphite/id-pr46845.c b/gcc/testsuite/gcc.dg/graphite/id-pr46845.c index 4580721..b74ee5a 100644 --- a/gcc/testsuite/gcc.dg/graphite/id-pr46845.c +++ b/gcc/testsuite/gcc.dg/graphite/id-pr46845.c @@ -1,4 +1,4 @@ -/* { dg-options "-O2 -ffast-math -fgraphite-identity -w -Wno-psabi" { target { i?86-*-* x86_64-*-* powerpc*-*-* } } } */ +/* { dg-options "-O2 -ffast-math -fgraphite-identity -Wno-psabi" { target { i?86-*-* x86_64-*-* powerpc*-*-* } } } */ typedef float V2SF __attribute__ ((vector_size (128))); diff --git a/gcc/testsuite/gcc.dg/plugin/diagnostic-test-expressions-1.c b/gcc/testsuite/gcc.dg/plugin/diagnostic-test-expressions-1.c index 9372936..9006b77 100644 --- a/gcc/testsuite/gcc.dg/plugin/diagnostic-test-expressions-1.c +++ b/gcc/testsuite/gcc.dg/plugin/diagnostic-test-expressions-1.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -fdiagnostics-show-caret" } */ +/* { dg-additional-options "-Wno-psabi" } */ /* This is a collection of unittests to verify that we're correctly capturing the source code ranges of various kinds of expression. diff --git a/gcc/testsuite/gcc.dg/pr34856.c b/gcc/testsuite/gcc.dg/pr34856.c index 62041e2..d2aefc2 100644 --- a/gcc/testsuite/gcc.dg/pr34856.c +++ b/gcc/testsuite/gcc.dg/pr34856.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O2" } */ +/* { dg-options "-O2 -Wno-psabi" } */ /* { dg-options "-O2 -msse2" { target { i?86-*-* x86_64-*-* } } } */ /* { dg-options "-O2 -maltivec" { target { powerpc*-*-linux* && powerpc_altivec_ok } } } */ @@ -27,6 +27,3 @@ void f1 (unsigned ctr) } while (ctr); } - -/* Ignore a warning that is irrelevant to the purpose of this test. */ -/* { dg-prune-output ".*GCC vector passed by reference.*" } */ diff --git a/gcc/testsuite/gcc.dg/pr35442.c b/gcc/testsuite/gcc.dg/pr35442.c index 6534ba4..17be0d0 100644 --- a/gcc/testsuite/gcc.dg/pr35442.c +++ b/gcc/testsuite/gcc.dg/pr35442.c @@ -1,6 +1,7 @@ /* PR c/35442 */ /* { dg-bogus "not supported by" "" { target *-*-* } 0 } */ /* { dg-options "-mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */ +/* { dg-additional-options "-Wno-psabi" } */ typedef char A __attribute__ ((vector_size (64))); typedef int B __attribute__ ((vector_size (64))); @@ -10,6 +11,3 @@ foo (A a) { ((B) a) (); /* { dg-error "is not a function" } */ } - -/* Ignore a warning that is irrelevant to the purpose of this test. */ -/* { dg-prune-output "(.*GCC vector passed by reference.*|.*ABI for * passing parameters with.*)" } */ diff --git a/gcc/testsuite/gcc.dg/pr43300.c b/gcc/testsuite/gcc.dg/pr43300.c index a3d66fe..f360582 100644 --- a/gcc/testsuite/gcc.dg/pr43300.c +++ b/gcc/testsuite/gcc.dg/pr43300.c @@ -1,6 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-Os -w" } */ -/* { dg-options "-Os -w -Wno-psabi" { target { i?86-*-* x86_64-*-* } } } */ +/* { dg-options "-Os -Wno-psabi" } */ typedef float V2SF __attribute__ ((vector_size (128))); diff --git a/gcc/testsuite/gcc.dg/pr44136.c b/gcc/testsuite/gcc.dg/pr44136.c index 31f1924..6b98914 100644 --- a/gcc/testsuite/gcc.dg/pr44136.c +++ b/gcc/testsuite/gcc.dg/pr44136.c @@ -1,7 +1,7 @@ /* PR debug/44136 */ /* { dg-do compile } */ -/* { dg-options "-w -O2 -g" } */ -/* { dg-options "-w -Wno-psabi -O2 -g -mno-sse" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ +/* { dg-options "-O2 -g -Wno-psabi" } */ +/* { dg-additional-options "-mno-sse" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ #define vector __attribute((vector_size(16))) vector float a; diff --git a/gcc/testsuite/gcc.dg/pr53060.c b/gcc/testsuite/gcc.dg/pr53060.c index 503f054..e515090 100644 --- a/gcc/testsuite/gcc.dg/pr53060.c +++ b/gcc/testsuite/gcc.dg/pr53060.c @@ -1,4 +1,5 @@ /* { dg-do run } */ +/* { dg-additional-options "-Wno-psabi" } */ extern void abort (void); @@ -22,7 +23,3 @@ int main() if (i[0] != 3) abort(); return 0; } - -/* Ignore a warning that is irrelevant to the purpose of this test. */ -/* { dg-prune-output ".*GCC vector returned by reference.*" } */ -/* { dg-prune-output "changes the ABI" } */ diff --git a/gcc/testsuite/gcc.dg/pr63594-1.c b/gcc/testsuite/gcc.dg/pr63594-1.c index b8cd201..8d0ad2e 100644 --- a/gcc/testsuite/gcc.dg/pr63594-1.c +++ b/gcc/testsuite/gcc.dg/pr63594-1.c @@ -2,7 +2,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -Wno-psabi" } */ /* { dg-additional-options "-mno-mmx" { target i?86-*-* x86_64-*-* } } */ -/* { dg-prune-output "non-standard ABI extension" } */ #define C1 c #define C2 C1, C1 diff --git a/gcc/testsuite/gcc.dg/pr63594-2.c b/gcc/testsuite/gcc.dg/pr63594-2.c index 5c6bb31..23c11b1 100644 --- a/gcc/testsuite/gcc.dg/pr63594-2.c +++ b/gcc/testsuite/gcc.dg/pr63594-2.c @@ -2,7 +2,6 @@ /* { dg-do run } */ /* { dg-options "-O2 -Wno-psabi" } */ /* { dg-additional-options "-mno-mmx" { target i?86-*-* x86_64-*-* } } */ -/* { dg-prune-output "non-standard ABI extension" } */ #define C1 c #define C2 C1, C1 diff --git a/gcc/testsuite/gcc.dg/pr63914.c b/gcc/testsuite/gcc.dg/pr63914.c index df8f537..3a4593e 100644 --- a/gcc/testsuite/gcc.dg/pr63914.c +++ b/gcc/testsuite/gcc.dg/pr63914.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O2 -ffast-math" } */ -/* { dg-prune-output "non-standard ABI extension" } */ +/* { dg-additional-options "-Wno-psabi" } */ /* { dg-additional-options "-fno-common" { target hppa*-*-hpux* } } */ /* { dg-additional-options "-msse" { target { i?86-*-* x86_64-*-* } } } */ /* { dg-require-effective-target int32plus } */ diff --git a/gcc/testsuite/gcc.dg/pr69634.c b/gcc/testsuite/gcc.dg/pr69634.c index e4032b6..7076452 100644 --- a/gcc/testsuite/gcc.dg/pr69634.c +++ b/gcc/testsuite/gcc.dg/pr69634.c @@ -1,6 +1,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -fno-dce -fschedule-insns -fno-tree-vrp -fcompare-debug" } */ -/* { dg-additional-options "-Wno-psabi -mno-sse" { target i?86-*-* x86_64-*-* } } */ +/* { dg-additional-options "-Wno-psabi" } */ +/* { dg-additional-options "-mno-sse" { target i?86-*-* x86_64-*-* } } */ /* { dg-require-effective-target scheduling } */ typedef unsigned short u16; diff --git a/gcc/testsuite/gcc.dg/pr70022.c b/gcc/testsuite/gcc.dg/pr70022.c index 30eb7ec..b7e63a9 100644 --- a/gcc/testsuite/gcc.dg/pr70022.c +++ b/gcc/testsuite/gcc.dg/pr70022.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-w -Wno-psabi" } */ +/* { dg-options "-Wno-psabi" } */ typedef int v4si __attribute__ ((vector_size (16))); diff --git a/gcc/testsuite/gcc.dg/pr70050.c b/gcc/testsuite/gcc.dg/pr70050.c index ec6834d..dc15aa6 100644 --- a/gcc/testsuite/gcc.dg/pr70050.c +++ b/gcc/testsuite/gcc.dg/pr70050.c @@ -1,6 +1,6 @@ /* PR middle-end/70050 */ /* { dg-do compile } */ -/* { dg-options "-w -Wno-psabi" } */ +/* { dg-options "-Wno-psabi" } */ typedef int v8si __attribute__ ((vector_size (32))); diff --git a/gcc/testsuite/gcc.dg/pr70219.c b/gcc/testsuite/gcc.dg/pr70219.c index bbdbe67..ced153a 100644 --- a/gcc/testsuite/gcc.dg/pr70219.c +++ b/gcc/testsuite/gcc.dg/pr70219.c @@ -1,6 +1,6 @@ /* PR middle-end/70219 */ /* { dg-do compile { target int128 } } */ -/* { dg-options "-O1 -w -Wno-psabi" } */ +/* { dg-options "-O1 -Wno-psabi" } */ typedef int B __attribute__ ((vector_size (32))); typedef int D __attribute__ ((vector_size (32))); diff --git a/gcc/testsuite/gcc.dg/pr70326.c b/gcc/testsuite/gcc.dg/pr70326.c index 8332899..f0ae56b 100644 --- a/gcc/testsuite/gcc.dg/pr70326.c +++ b/gcc/testsuite/gcc.dg/pr70326.c @@ -1,6 +1,6 @@ /* PR middle-end/70326 */ /* { dg-do compile { target int128 } } */ -/* { dg-options "-Og -fno-dce -fno-guess-branch-probability -fschedule-insns -fno-tree-coalesce-vars -fno-tree-dce -w -Wno-psabi" } */ +/* { dg-options "-Og -fno-dce -fno-guess-branch-probability -fschedule-insns -fno-tree-coalesce-vars -fno-tree-dce -Wno-psabi" } */ typedef unsigned int A __attribute__ ((vector_size (32))); typedef unsigned __int128 B; diff --git a/gcc/testsuite/gcc.dg/pr71478.c b/gcc/testsuite/gcc.dg/pr71478.c index 17ec7ec..9f5a3a1 100644 --- a/gcc/testsuite/gcc.dg/pr71478.c +++ b/gcc/testsuite/gcc.dg/pr71478.c @@ -1,6 +1,6 @@ /* PR middle-end/71478 */ /* { dg-do compile } */ -/* { dg-options "-O3 -Wno-psabi -w" } */ +/* { dg-options "-O3 -Wno-psabi" } */ typedef unsigned int __attribute__ ((vector_size (8))) uv2si; typedef int __attribute__ ((vector_size (8))) v2si; diff --git a/gcc/testsuite/gcc.dg/pr76783.c b/gcc/testsuite/gcc.dg/pr76783.c index 22aef56..7f12a95 100644 --- a/gcc/testsuite/gcc.dg/pr76783.c +++ b/gcc/testsuite/gcc.dg/pr76783.c @@ -1,6 +1,6 @@ /* { dg-do run } */ /* { dg-require-effective-target int128 } */ -/* { dg-options "-Og -w -Wno-psabi" } */ +/* { dg-options "-Og -Wno-psabi" } */ typedef unsigned __int128 u128; typedef unsigned __int128 v64u128 __attribute__ ((vector_size (64))); diff --git a/gcc/testsuite/gcc.dg/simd-7.c b/gcc/testsuite/gcc.dg/simd-7.c index 42feccb..7080a00 100644 --- a/gcc/testsuite/gcc.dg/simd-7.c +++ b/gcc/testsuite/gcc.dg/simd-7.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-w -Wno-psabi" } */ +/* { dg-options "-Wno-psabi" } */ #if __SIZEOF_LONG_DOUBLE__ == 16 || __SIZEOF_LONG_DOUBLE__ == 8 typedef long double a __attribute__((vector_size (16))); diff --git a/gcc/testsuite/gcc.dg/simd-8.c b/gcc/testsuite/gcc.dg/simd-8.c index 5bc8637..e7fdc23 100644 --- a/gcc/testsuite/gcc.dg/simd-8.c +++ b/gcc/testsuite/gcc.dg/simd-8.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-w -Wno-psabi" } */ +/* { dg-options "-Wno-psabi" } */ #if __SIZEOF_LONG_DOUBLE__ == 16 || __SIZEOF_LONG_DOUBLE__ == 8 typedef long double a __attribute__((vector_size (32))); diff --git a/gcc/testsuite/gcc.dg/torture/pr36891.c b/gcc/testsuite/gcc.dg/torture/pr36891.c index ab58e43..3f32cc5 100644 --- a/gcc/testsuite/gcc.dg/torture/pr36891.c +++ b/gcc/testsuite/gcc.dg/torture/pr36891.c @@ -3,6 +3,7 @@ /* { dg-options "-ffast-math -msse" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ /* { dg-require-effective-target sse { target { { i?86-*-* x86_64-*-* } && ia32 } } } */ /* { dg-options "-ffast-math -mabi=altivec" { target { { powerpc*-*-linux* } && ia32 } } } */ +/* { dg-additional-options "-Wno-psabi" } */ #define __vector __attribute__((vector_size(16) )) __vector float f(void); @@ -18,6 +19,3 @@ void RRB( __vector float vdist, __vector float vx) g(pullx); } } - -/* Ignore a warning that is irrelevant to the purpose of this test. */ -/* { dg-prune-output ".*GCC vector returned by reference.*" } */ diff --git a/gcc/testsuite/gcc.dg/torture/pr47968.c b/gcc/testsuite/gcc.dg/torture/pr47968.c index 4f33cf1..50d1d5d 100644 --- a/gcc/testsuite/gcc.dg/torture/pr47968.c +++ b/gcc/testsuite/gcc.dg/torture/pr47968.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-w -Wno-psabi" } */ +/* { dg-options "-Wno-psabi" } */ typedef __attribute__ ((vector_size (16))) float float4; typedef __attribute__ ((vector_size (16))) double double2; diff --git a/gcc/testsuite/gcc.dg/torture/pr52402.c b/gcc/testsuite/gcc.dg/torture/pr52402.c index ba7c5ae..5660683 100644 --- a/gcc/testsuite/gcc.dg/torture/pr52402.c +++ b/gcc/testsuite/gcc.dg/torture/pr52402.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-options "-w -Wno-psabi" } */ +/* { dg-options "-Wno-psabi" } */ /* { dg-require-effective-target int32plus } */ typedef int v4si __attribute__((vector_size(16))); diff --git a/gcc/testsuite/gcc.dg/torture/pr69613.c b/gcc/testsuite/gcc.dg/torture/pr69613.c index d903c85..03cc362 100644 --- a/gcc/testsuite/gcc.dg/torture/pr69613.c +++ b/gcc/testsuite/gcc.dg/torture/pr69613.c @@ -1,6 +1,6 @@ /* PR target/69613. */ /* { dg-do run { target int128 } } */ -/* { dg-options "-w -Wno-psabi" } */ +/* { dg-options "-Wno-psabi" } */ /* { dg-additional-options "-mavx" { target avx_runtime } } */ typedef unsigned short u16; diff --git a/gcc/testsuite/gcc.dg/torture/pr69886.c b/gcc/testsuite/gcc.dg/torture/pr69886.c index cc88a95..0537d91 100644 --- a/gcc/testsuite/gcc.dg/torture/pr69886.c +++ b/gcc/testsuite/gcc.dg/torture/pr69886.c @@ -1,6 +1,6 @@ /* PR rtl-optimization/69886. */ /* { dg-do compile } */ -/* { dg-options "--param=gcse-unrestricted-cost=0 -w -Wno-psabi" } */ +/* { dg-options "--param=gcse-unrestricted-cost=0 -Wno-psabi" } */ /* { dg-additional-options "-mavx" { target { i?86-*-* x86_64-*-* } } } */ typedef unsigned v32su __attribute__ ((vector_size (32))); diff --git a/gcc/testsuite/gcc.dg/torture/pr70083.c b/gcc/testsuite/gcc.dg/torture/pr70083.c index f33cb74..19a89ea 100644 --- a/gcc/testsuite/gcc.dg/torture/pr70083.c +++ b/gcc/testsuite/gcc.dg/torture/pr70083.c @@ -19,7 +19,3 @@ foo(int u32_0, int u64_0, int u64_1, v16hi v32u16_0, v8si v32u32_0, v4di v32u64_ v32u32_1 /= (v8si){0x1e7390, v32u16_0[12], ~v32u16_1[2], -u64_0}; return v32u16_0[4] + v32u16_0[5] + v32u32_0[5] + v32u32_1[6] + v32u64_1[3]; } - -/* Ignore a warning that is irrelevant to the purpose of this test. */ -/* { dg-prune-output ".*GCC vector passed by reference.*" } */ - diff --git a/gcc/testsuite/gcc.dg/torture/pr70307.c b/gcc/testsuite/gcc.dg/torture/pr70307.c index 0e0f146..a7aefb7 100644 --- a/gcc/testsuite/gcc.dg/torture/pr70307.c +++ b/gcc/testsuite/gcc.dg/torture/pr70307.c @@ -61,7 +61,3 @@ fn8 (int i) struct S s = { .v = (v4si){(1, i++)} == (v4si){(0, 0)} }; return s.v; } - -/* Ignore a warning that is irrelevant to the purpose of this test. */ -/* { dg-prune-output "\[^\n\r\]*GCC vector passed by reference\[^\n\r\]*" } */ -/* { dg-prune-output "\[^\n\r\]*GCC vector returned by reference\[^\n\r\]*" } */ diff --git a/gcc/testsuite/gcc.dg/torture/pr70421.c b/gcc/testsuite/gcc.dg/torture/pr70421.c index 1aa4d53..d585a7d 100644 --- a/gcc/testsuite/gcc.dg/torture/pr70421.c +++ b/gcc/testsuite/gcc.dg/torture/pr70421.c @@ -1,7 +1,7 @@ /* PR target/70421 */ /* { dg-do run } */ /* { dg-require-effective-target int32plus } */ -/* { dg-additional-options "-Wno-psabi -w" } */ +/* { dg-additional-options "-Wno-psabi" } */ typedef unsigned V __attribute__ ((vector_size (64))); diff --git a/gcc/testsuite/gcc.dg/torture/pr71428.c b/gcc/testsuite/gcc.dg/torture/pr71428.c index b951fcd..e86e1e1 100644 --- a/gcc/testsuite/gcc.dg/torture/pr71428.c +++ b/gcc/testsuite/gcc.dg/torture/pr71428.c @@ -1,5 +1,5 @@ /* { dg-do run } */ -/* { dg-additional-options "-fno-tree-forwprop -Wno-psabi -w" } */ +/* { dg-additional-options "-fno-tree-forwprop -Wno-psabi" } */ typedef unsigned short v64u16 __attribute__ ((vector_size (64))); diff --git a/gcc/testsuite/gcc.dg/torture/pr71984.c b/gcc/testsuite/gcc.dg/torture/pr71984.c index 7afdd77..97504c4 100644 --- a/gcc/testsuite/gcc.dg/torture/pr71984.c +++ b/gcc/testsuite/gcc.dg/torture/pr71984.c @@ -1,5 +1,5 @@ /* { dg-do run { target lp64 } } */ -/* { dg-additional-options "-w -Wno-psabi" } */ +/* { dg-additional-options "-Wno-psabi" } */ typedef unsigned char v64u8 __attribute__((vector_size(64))); typedef unsigned long v64u64 __attribute__((vector_size(64))); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-35.c b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-35.c index 79053a2..b34f8fd 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-35.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-35.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -fdump-tree-cddce1" } */ +/* { dg-additional-options "-Wno-psabi" } */ /* { dg-additional-options "-msse2" { target { i?86-*-* x86_64-*-* } } } */ typedef int v4si __attribute__((vector_size(16))); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr68714.c b/gcc/testsuite/gcc.dg/tree-ssa/pr68714.c index 8cd7c14..d0c99b9 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr68714.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr68714.c @@ -1,6 +1,6 @@ /* PR tree-optimization/68714 */ /* { dg-do compile } */ -/* { dg-options "-O2 -fdump-tree-reassoc1 -w -Wno-psabi" } */ +/* { dg-options "-O2 -fdump-tree-reassoc1 -Wno-psabi" } */ typedef int vec __attribute__((vector_size(16))); vec f(vec x,vec y){ diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr70372.c b/gcc/testsuite/gcc.dg/tree-ssa/pr70372.c index a6d18d2..ad51fb0 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr70372.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr70372.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fno-tree-fre -w -Wno-psabi" } */ +/* { dg-options "-O -fno-tree-fre -Wno-psabi" } */ typedef unsigned v2ti __attribute__ ((vector_size (32))); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr71179.c b/gcc/testsuite/gcc.dg/tree-ssa/pr71179.c index 885c643..cc497b5 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/pr71179.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/pr71179.c @@ -1,6 +1,6 @@ - /* { dg-do compile } */ /* { dg-options "-O3 -ffast-math" } */ +/* { dg-additional-options "-Wno-psabi" } */ typedef float __m128 __attribute__ ((__vector_size__ (16), __may_alias__)); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-55.c b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-55.c index 7bfa284..b0c5af6 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-55.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-55.c @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-options "-O -fdump-tree-optimized" } */ +/* { dg-additional-options "-Wno-psabi" } */ typedef int v4si __attribute__((vector_size(16))); diff --git a/gcc/testsuite/gcc.dg/tree-ssa/vector-6.c b/gcc/testsuite/gcc.dg/tree-ssa/vector-6.c index 785e5df..ccaec7b 100644 --- a/gcc/testsuite/gcc.dg/tree-ssa/vector-6.c +++ b/gcc/testsuite/gcc.dg/tree-ssa/vector-6.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-O -fdump-tree-ccp1 -Wno-psabi -w" } */ +/* { dg-options "-O -fdump-tree-ccp1 -Wno-psabi" } */ /* { dg-additional-options "-msse2" { target i?86-*-* x86_64-*-* } } */ /* { dg-additional-options "-maltivec" { target powerpc_altivec_ok } } */ diff --git a/gcc/testsuite/gcc.target/i386/vect-args.c b/gcc/testsuite/gcc.target/i386/vect-args.c index 02cf3f5..f8cbc7e 100644 --- a/gcc/testsuite/gcc.target/i386/vect-args.c +++ b/gcc/testsuite/gcc.target/i386/vect-args.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-w -Wno-psabi" } */ +/* { dg-options "-Wno-psabi" } */ /* AVX512F and AVX512BW modes. */ typedef unsigned char V64QImode __attribute__((vector_size(64))); -- 1.9.3