This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [testsuite] Fix gcc.dg/torture/pr47917.c on IRIX 6.5
On Tue, 2011-03-29 at 19:50 +0200, Rainer Orth wrote:
> /* { dg-options "-std=gnu99" { target *-*-hpux* } } */
>
> Alternatively, the mips-sgi-irix6.5 variant might work, too. Either
> patch is preapproved if this works for you.
>
> Thanks.
> Rainer
I went with the -std=gnu99 option. Here is the final patch that I
tested and checked in:
2011-03-29 Steve Ellcey <sje@cup.hp.com>
* gcc.dg/torture/pr47917.c: Use -std=gnu99 on HP-UX.
Index: gcc.dg/torture/pr47917.c
===================================================================
--- gcc.dg/torture/pr47917.c (revision 171649)
+++ gcc.dg/torture/pr47917.c (working copy)
@@ -1,6 +1,7 @@
/* { dg-do run } */
/* { dg-options "-std=c99" } */
/* { dg-options "-std=c99 -D_XOPEN_SOURCE=500" { target mips-sgi-irix6.5 } } */
+/* { dg-options "-std=gnu99" { target *-*-hpux* } } */
/* { dg-xfail-if "no C99 snprintf function" { *-*-hpux10* } } */
/* { dg-xfail-run-if "non-conforming C99 snprintf" { *-*-hpux11.[012]* } } */
Steve Ellcey
sje@cup.hp.com