This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] testsuite: Prune "non-standard ABI extension" warnings
- From: Segher Boessenkool <segher at kernel dot crashing dot org>
- To: gcc-patches at gcc dot gnu dot org
- Cc: dje dot gcc at gmail dot com, Segher Boessenkool <segher at kernel dot crashing dot org>
- Date: Wed, 5 Oct 2016 17:47:30 +0000
- Subject: [PATCH] testsuite: Prune "non-standard ABI extension" warnings
- Authentication-results: sourceware.org; auth=none
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