[PATCH] Fix ICE with vector types in X % -Y pattern (PR middle-end/70050)

Andreas Schwab schwab@linux-m68k.org
Tue Mar 8 22:16:00 GMT 2016


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

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Gcc-patches mailing list