Patchwork [testsuite] Fix gcc.dg/torture/pr47917.c on IRIX 6.5

login
register
mail settings
Submitter Steve Ellcey
Date March 29, 2011, 8:43 p.m.
Message ID <1301431418.17764.380.camel@hpsje.cup.hp.com>
Download mbox | patch
Permalink /patch/88864/
State New
Headers show

Comments

Steve Ellcey - March 29, 2011, 8:43 p.m.
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.




Steve Ellcey
sje@cup.hp.com

Patch

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]* } } */