From: Rainer Orth Date: Fri, 25 Mar 2011 15:38:27 +0000 (+0000) Subject: pr47917.c: Add -D_XOPEN_SOURCE=500 to dg-options for mips-sgi-irix6.5. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e560509f7b6ac8ff7fd72c198d0d814bf001be24;p=gcc.git pr47917.c: Add -D_XOPEN_SOURCE=500 to dg-options for mips-sgi-irix6.5. * gcc.dg/torture/pr47917.c: Add -D_XOPEN_SOURCE=500 to dg-options for mips-sgi-irix6.5. Replace snprintf prototype by . From-SVN: r171456 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 3fb4e0de285..20ac0df2d7f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2011-03-25 Rainer Orth + + * gcc.dg/torture/pr47917.c: Add -D_XOPEN_SOURCE=500 to dg-options + for mips-sgi-irix6.5. + Replace snprintf prototype by . + 2011-03-25 Rainer Orth PR testsuite/48283 diff --git a/gcc/testsuite/gcc.dg/torture/pr47917.c b/gcc/testsuite/gcc.dg/torture/pr47917.c index 4b56c04e80a..527cb37c8d9 100644 --- a/gcc/testsuite/gcc.dg/torture/pr47917.c +++ b/gcc/testsuite/gcc.dg/torture/pr47917.c @@ -1,11 +1,12 @@ /* { dg-do run } */ /* { dg-options "-std=c99" } */ +/* { dg-options "-std=c99 -D_XOPEN_SOURCE=500" { target mips-sgi-irix6.5 } } */ /* { dg-xfail-if "no C99 snprintf function" { *-*-hpux10* } } */ /* { dg-xfail-run-if "non-conforming C99 snprintf" { *-*-hpux11.[012]* } } */ /* PR middle-end/47917 */ -extern int snprintf (char *, __SIZE_TYPE__, const char *, ...); +#include extern int memcmp (const void *, const void *, __SIZE_TYPE__); extern void abort (void);