Patchwork [testsuite] suppress warnings for powerpc for graphite vector test

login
register
mail settings
Submitter Janis Johnson
Date Oct. 7, 2011, 7:50 p.m.
Message ID <4E8F57F8.6040707@mentor.com>
Download mbox | patch
Permalink /patch/118366/
State New
Headers show

Comments

Janis Johnson - Oct. 7, 2011, 7:50 p.m.
Test gcc.dg/graphite/id-pr46845.c turns off warnings for x86 targets.
powerpc targets warn about ABI issues with vector arguments for this
test, so this patch includes powerpc*-*-* in the list of targets to
turn off warnings.  OK for trunk?

2011-10-07  Janis Johnson  <janisjo@codesourcery.com>

        * gcc.dg/graphite/id-pr46845.c: Include powerpc for warning options.
Mike Stump - Oct. 7, 2011, 8:34 p.m.
On Oct 7, 2011, at 12:50 PM, Janis Johnson wrote:
> Test gcc.dg/graphite/id-pr46845.c turns off warnings for x86 targets.
> powerpc targets warn about ABI issues with vector arguments for this
> test, so this patch includes powerpc*-*-* in the list of targets to
> turn off warnings.  OK for trunk?

I'm hoping the graphite people have an even a better idea...  If not, Ok.

Patch

Index: gcc/testsuite/gcc.dg/graphite/id-pr46845.c
===================================================================
--- gcc/testsuite/gcc.dg/graphite/id-pr46845.c  (revision 179667)
+++ gcc/testsuite/gcc.dg/graphite/id-pr46845.c  (working copy)
@@ -1,4 +1,4 @@ 
-/* { dg-options "-O2 -ffast-math -fgraphite-identity -w -Wno-psabi" { target { i?86-*-* x86_64-*-* } } } */
+/* { dg-options "-O2 -ffast-math -fgraphite-identity -w -Wno-psabi" { target { i?86-*-* x86_64-*-* powerpc*-*-* } } } */

 typedef float V2SF __attribute__ ((vector_size (128)));