[PATCH] testsuite: Prune "non-standard ABI extension" warnings

Segher Boessenkool segher@kernel.crashing.org
Wed Oct 5 17:47:00 GMT 2016


Various testcases fail with "excess errors" for 32-bit PowerPC, for
the warnings about vectors without -mabi=altivec.  This patch adds
dg-prune-output directives to ignore those warnings.

Is there a better way to handle this?  dg-prune-output does not allow
a "target" condition, even.


Segher


2016-10-05  Segher Boessenkool  <segher@kernel.crashing.org>

gcc/testsuite/
	* gcc.dg/plugin/diagnostic-test-expressions-1.c: Add dg-prune-output
	"non-standard ABI extension".
	* gcc/testsuite/gcc.dg/pr69634.c: Ditto.
	* gcc/testsuite/gcc.dg/tree-ssa/forwprop-35.c: Ditto.
	* gcc/testsuite/gcc.dg/tree-ssa/pr71179.c: Ditto.
	* gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-55.c: Ditto.

---
 gcc/testsuite/gcc.dg/plugin/diagnostic-test-expressions-1.c | 1 +
 gcc/testsuite/gcc.dg/pr69634.c                              | 1 +
 gcc/testsuite/gcc.dg/tree-ssa/forwprop-35.c                 | 1 +
 gcc/testsuite/gcc.dg/tree-ssa/pr71179.c                     | 2 +-
 gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-55.c                  | 1 +
 5 files changed, 5 insertions(+), 1 deletion(-)

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..e25a6ef 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-prune-output "non-standard ABI extension" } */
 
 /* 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/pr69634.c b/gcc/testsuite/gcc.dg/pr69634.c
index e4032b6..9b3d915 100644
--- a/gcc/testsuite/gcc.dg/pr69634.c
+++ b/gcc/testsuite/gcc.dg/pr69634.c
@@ -2,6 +2,7 @@
 /* { 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-require-effective-target scheduling } */
+/* { dg-prune-output "non-standard ABI extension" } */
 
 typedef unsigned short u16;
 typedef short v16u16 __attribute__ ((vector_size (16)));
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-35.c b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-35.c
index 79053a2..7c4225f 100644
--- a/gcc/testsuite/gcc.dg/tree-ssa/forwprop-35.c
+++ b/gcc/testsuite/gcc.dg/tree-ssa/forwprop-35.c
@@ -1,6 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O -fdump-tree-cddce1" } */
 /* { dg-additional-options "-msse2" { target { i?86-*-* x86_64-*-* } } } */
+/* { dg-prune-output "non-standard ABI extension" } */
 
 typedef int v4si __attribute__((vector_size(16)));
 typedef float v4sf __attribute__((vector_size(16)));
diff --git a/gcc/testsuite/gcc.dg/tree-ssa/pr71179.c b/gcc/testsuite/gcc.dg/tree-ssa/pr71179.c
index 885c643..7e18db6 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-prune-output "non-standard ABI extension" } */
 
 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..3e29c24 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-prune-output "non-standard ABI extension" } */
 
 typedef int v4si __attribute__((vector_size(16)));
 
-- 
1.9.3



More information about the Gcc-patches mailing list