[testsuite] Fix gcc.dg/torture/pr47917.c on IRIX 6.5
Eric Botcazou
ebotcazou@adacore.com
Tue Apr 5 22:44:00 GMT 2011
> 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 deprecated, I know, but I have access to a quite
fast SPARC/Solaris 8 machine).
Tested on sparc-sun-solaris2.8, applied on the mainline.
2011-04-05 Eric Botcazou <ebotcazou@adacore.com>
* gcc.dg/torture/pr47917.c: Add -D_XOPEN_SOURCE=500 to dg-options for
Solaris 8 as well.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: p.diff
Type: text/x-diff
Size: 639 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20110405/6ebee941/attachment.bin>
More information about the Gcc-patches
mailing list