silence expected psabi warning in ipa-sra-19 on ppc-vxworks

The default CPU for our ppc-vx7r2 toolchain has no support for altivec
or vsx, so an ABI without vector support is selected.  The selected
calling conventions do not cover passing or returning vector types, so
-Wpsabi warns about such uses.

powerpc-ibm-aix* already silences these warnings with -Wno-psabi;
this patch extends that to powerpc-wrs-vxworks* too.


for  gcc/testsuite/ChangeLog

	* gcc.dg/ipa/ipa-sra-19.c: Extend -Wno-psabi to ppc-vx7r2.
This commit is contained in:
Alexandre Oliva 2021-04-03 19:54:37 -03:00 committed by Alexandre Oliva
parent a809d8a737
commit 5bba3415ec

View File

@ -1,7 +1,7 @@
/* { dg-do compile } */
/* { dg-options "-O2" } */
/* { dg-additional-options "-msse2" { target ia32 } } */
/* { dg-additional-options "-Wno-psabi" { target powerpc-ibm-aix* } } */
/* { dg-additional-options "-Wno-psabi" { target powerpc-ibm-aix* powerpc-wrs-vxworks* } } */
typedef int __attribute__((__vector_size__(16))) vectype;