This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix ICE with vector types in X % -Y pattern (PR middle-end/70050)
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Andreas Schwab <schwab at linux-m68k dot org>
- Cc: Marek Polacek <polacek at redhat dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 9 Mar 2016 10:21:02 +0100
- Subject: Re: [PATCH] Fix ICE with vector types in X % -Y pattern (PR middle-end/70050)
- Authentication-results: sourceware.org; auth=none
- References: <20160303110431 dot GB10006 at redhat dot com> <87k2lcfweb dot fsf at linux-m68k dot org>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Tue, Mar 08, 2016 at 11:16:28PM +0100, Andreas Schwab wrote:
> Marek Polacek <polacek@redhat.com> writes:
>
> > diff --git gcc/testsuite/gcc.dg/pr70050.c gcc/testsuite/gcc.dg/pr70050.c
> > index e69de29..610456f 100644
> > --- gcc/testsuite/gcc.dg/pr70050.c
> > +++ gcc/testsuite/gcc.dg/pr70050.c
> > @@ -0,0 +1,11 @@
> > +/* PR middle-end/70025 */
> > +/* { dg-do compile } */
> > +/* { dg-options "-Wno-psabi" } */
> > +
> > +typedef int v8si __attribute__ ((vector_size (32)));
> > +
> > +v8si
> > +foo (v8si v)
>
> On powerpc:
>
> FAIL: gcc.dg/pr70050.c (test for excess errors)
> Excess errors:
> /daten/gcc/gcc-20160307/gcc/testsuite/gcc.dg/pr70050.c:9:1: warning: GCC vector returned by reference: non-standard ABI extension with no compatibility guarantee
> /daten/gcc/gcc-20160307/gcc/testsuite/gcc.dg/pr70050.c:8:1: warning: GCC vector passed by reference: non-standard ABI extension with no compatibility guarantee
Fixed thusly, committed as obvious:
2016-03-09 Jakub Jelinek <jakub@redhat.com>
PR target/67278
* gcc.dg/simd-8.c: Add -w -Wno-psabi to dg-options.
PR middle-end/70050
* gcc.dg/pr70050.c: Add -w to dg-options. Fix up PR number
in testcase comment.
--- gcc/testsuite/gcc.dg/simd-8.c.jj 2016-03-02 14:07:58.000000000 +0100
+++ gcc/testsuite/gcc.dg/simd-8.c 2016-03-09 10:11:15.726261498 +0100
@@ -1,4 +1,5 @@
/* { dg-do compile } */
+/* { dg-options "-w -Wno-psabi" } */
#if __SIZEOF_LONG_DOUBLE__ == 16 || __SIZEOF_LONG_DOUBLE__ == 8
typedef long double a __attribute__((vector_size (32)));
--- gcc/testsuite/gcc.dg/pr70050.c.jj 2016-03-03 15:28:40.000000000 +0100
+++ gcc/testsuite/gcc.dg/pr70050.c 2016-03-09 10:10:17.591060300 +0100
@@ -1,6 +1,6 @@
-/* PR middle-end/70025 */
+/* PR middle-end/70050 */
/* { dg-do compile } */
-/* { dg-options "-Wno-psabi" } */
+/* { dg-options "-w -Wno-psabi" } */
typedef int v8si __attribute__ ((vector_size (32)));
Jakub