Eric Botcazou ebotca...@adacore.com writes:
The new gcc.dg/torture/pr47917.c test currently fails the execution test
on IRIX 6.5. To get a C99-conformant snprintf, one needs to include
stdio.h with _XOPEN_SOURCE defined as 500. The following patch does
this.
Likewise on Solaris 8 (It's
2011-04-05 Eric Botcazou ebotca...@adacore.com
* gcc.dg/torture/pr47917.c: Add -D_XOPEN_SOURCE=500 to dg-options for
Solaris 8 as well.
I somehow missed that the same change is needed on Solaris 9... Adjusted.
--
Eric Botcazou
On Fri, Mar 25, 2011 at 4:27 PM, Rainer Orth wrote:
The new gcc.dg/torture/pr47917.c test currently fails the execution test
on IRIX 6.5. To get a C99-conformant snprintf, one needs to include
stdio.h with _XOPEN_SOURCE defined as 500. The following patch does
this.
Rainer,
This patch
Steve,
This patch re-broke pr47917.c on HP-UX because it doesn't see the
snprintf prototype in stdio.h when using -std=c99. I do see it if I use
sorry for that. I noticed later that this standards-conformant snprintf
business is a total mess on several platforms (e.g. it also fails on
Tru64
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
On Fri, Mar 25, 2011 at 4:27 PM, Rainer Orth
r...@cebitec.uni-bielefeld.de wrote:
The new gcc.dg/torture/pr47917.c test currently fails the execution test
on IRIX 6.5. To get a C99-conformant snprintf, one needs to include
stdio.h with _XOPEN_SOURCE defined as 500. The following patch does