This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[committed] Fix pr70307.c testcase (PR middle-end/70307)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Marek Polacek <polacek at redhat dot com>
- Cc: Jeff Law <law at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, Joseph Myers <joseph at codesourcery dot com>
- Date: Mon, 4 Apr 2016 19:23:03 +0200
- Subject: [committed] Fix pr70307.c testcase (PR middle-end/70307)
- Authentication-results: sourceware.org; auth=none
- References: <20160401150333 dot GF13362 at redhat dot com> <56FE99BF dot 1020003 at redhat dot com> <20160401160224 dot GB3017 at tucnak dot redhat dot com> <20160401161400 dot GG13362 at redhat dot com> <20160401161757 dot GC3017 at tucnak dot redhat dot com> <20160401171006 dot GH13362 at redhat dot com> <20160401172224 dot GE3017 at tucnak dot redhat dot com> <20160401173511 dot GI13362 at redhat dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
I've noticed the new testcase FAILs on i?86-linux and powerpc-linux.
As this is a compile time testcase rather than runtime, I chose to prune
the rs6000 ABI warnings instead of using -w which is otherwise the only way
to disable them :(.
Fixed thusly, committed to trunk.
2016-04-04 Jakub Jelinek <jakub@redhat.com>
PR middle-end/70307
* gcc.dg/torture/pr70307.c: Add -Wno-psabi to dg-options. Prune
rs6000 ABI warnings.
--- gcc/testsuite/gcc.dg/torture/pr70307.c.jj 2016-04-04 12:28:39.000000000 +0200
+++ gcc/testsuite/gcc.dg/torture/pr70307.c 2016-04-04 19:17:13.103432985 +0200
@@ -1,5 +1,6 @@
/* PR c/70307 */
/* { dg-do compile } */
+/* { dg-options "-Wno-psabi" } */
typedef int v4si __attribute__ ((vector_size (16)));
@@ -60,3 +61,7 @@ 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\]*" } */
Jakub