This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH,testsuite] add powerpc*-*-eabi* exception for gcc.dg/pr34856.c


gcc.dg/pr34856.c on powerpc*-*-linux* uses -w to avoid:

gcc/testsuite/gcc.dg/pr34856.c: In function 'f1':
gcc/testsuite/gcc.dg/pr34856.c:26: warning: GCC vector passed by reference: non-standard ABI extension with no compatibility guarantee

This patch makes powerpc*-*-eabi* use -w too.

Tested on powerpc-eabi.  OK to commit?

-Nathan

2009-01-08  Nathan Froyd  <froydnj@codesourcery.com>

	* gcc.dg/pr34856.c: Add exception for powerpc*-*-eabi*.

Index: gcc.dg/pr34856.c
===================================================================
--- gcc.dg/pr34856.c	(revision 143188)
+++ gcc.dg/pr34856.c	(working copy)
@@ -1,7 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2" } */
 /* { dg-options "-O2 -msse2" { target { i?86-*-* x86_64-*-* } } } */
-/* { dg-options "-O2 -w" { target { powerpc*-*-linux* } } } */
+/* { dg-options "-O2 -w" { target { powerpc*-*-linux* powerpc*-*-eabi* } } } */
 /* { dg-options "-O2 -maltivec" { target { powerpc*-*-linux* && powerpc_altivec_ok } } } */
 
 typedef unsigned __attribute__ ((__mode__ (__pointer__))) uintptr_t;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]