diff mbox series

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

Message ID or8s60zkff.fsf@lxoliva.fsfla.org
State New
Headers show
Series silence expected psabi warning in ipa-sra-19 on ppc-vxworks | expand

Commit Message

Alexandre Oliva April 2, 2021, 5:05 p.m. UTC
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.

Though other CPU defaults for this target might not require the warning
to be silenced, I suppose it doesn't really hurt if it's there.

Tested on x86_64-linux-gnu with a cross to powerpc-wrs-vxworks7r2,
configured for a CPU without altivec/vsx support.  Ok to install?


for  gcc/testsuite/ChangeLog

	* gcc.dg/ipa/ipa-sra-19.c: Extend -Wno-psabi to ppc-vx7r2.
---
 gcc/testsuite/gcc.dg/ipa/ipa-sra-19.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Segher Boessenkool April 3, 2021, 12:36 a.m. UTC | #1
On Fri, Apr 02, 2021 at 02:05:24PM -0300, Alexandre Oliva wrote:
> 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.

Okay for trunk.  Thanks!


Segher


> 	* gcc.dg/ipa/ipa-sra-19.c: Extend -Wno-psabi to ppc-vx7r2.
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.dg/ipa/ipa-sra-19.c b/gcc/testsuite/gcc.dg/ipa/ipa-sra-19.c
index 8f3bb5df21a1f..c34c89eeacad7 100644
--- a/gcc/testsuite/gcc.dg/ipa/ipa-sra-19.c
+++ b/gcc/testsuite/gcc.dg/ipa/ipa-sra-19.c
@@ -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;