This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] vector-compare-4.c
- 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: Tue, 2 Feb 2016 20:34:52 +0000
- Subject: [PATCH] vector-compare-4.c
- Authentication-results: sourceware.org; auth=none
This testcase fails on 32-bit powerpc-linux with
Excess errors:
/home/segher/src/gcc/gcc/testsuite/c-c++-common/vector-compare-4.c:31:1: warning: GCC vector returned by reference: non-standard ABI extension with no compatibility guarantee
Fix this as in vector-compare-2.c .
Tested on powerpc64-linux, -m32 and -m64; installing as obvious.
Segher
2016-02-02 Segher Boessenkool <segher@kernel.crashing.org>
testsuite/
* c-c++-common/vector-compare-4.c: Prune "non-standard ABI extension"
warning.
---
gcc/testsuite/c-c++-common/vector-compare-4.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/testsuite/c-c++-common/vector-compare-4.c b/gcc/testsuite/c-c++-common/vector-compare-4.c
index b44f474..b05decc 100644
--- a/gcc/testsuite/c-c++-common/vector-compare-4.c
+++ b/gcc/testsuite/c-c++-common/vector-compare-4.c
@@ -1,6 +1,8 @@
/* PR c/68062 */
/* { dg-do compile } */
/* { dg-options "-Wsign-compare" } */
+/* 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;
--
1.9.3