From: Rainer Orth Date: Thu, 14 Nov 2013 09:34:16 +0000 (+0000) Subject: Fix gcc.dg/atomic/c11-atomic-exec-[45].c tests on Solaris 10+ X-Git-Tag: upstream/12.2.0~66628 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=575897ccc37b322c0bfa58713be5914a6348fa75;p=platform%2Fupstream%2Fgcc.git Fix gcc.dg/atomic/c11-atomic-exec-[45].c tests on Solaris 10+ * gcc.dg/atomic/c11-atomic-exec-4.c: Define _XOPEN_SOURCE=600 on *-*-solaris2.1[0-9]*. * gcc.dg/atomic/c11-atomic-exec-5.c: Likewise. From-SVN: r204780 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 6d8e43a..76ddd28 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2013-11-14 Rainer Orth + + * gcc.dg/atomic/c11-atomic-exec-4.c: Define _XOPEN_SOURCE=600 on + *-*-solaris2.1[0-9]*. + * gcc.dg/atomic/c11-atomic-exec-5.c: Likewise. + 2013-11-14 Joey Ye * gcc.dg/tree-ssa/forwprop-28.c: Disable for cortex_m. diff --git a/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-4.c b/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-4.c index 02bb3cb..1558200 100644 --- a/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-4.c +++ b/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-4.c @@ -3,6 +3,7 @@ out in two threads. */ /* { dg-do run } */ /* { dg-options "-std=c11 -pedantic-errors -pthread -D_POSIX_C_SOURCE=200809L" } */ +/* { dg-additional-options "-D_XOPEN_SOURCE=600" { target *-*-solaris2.1[0-9]* } } /* { dg-require-effective-target pthread } */ #include diff --git a/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-5.c b/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-5.c index 9e6977b..bc87de4 100644 --- a/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-5.c +++ b/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-5.c @@ -4,6 +4,7 @@ get properly cleared). */ /* { dg-do run } */ /* { dg-options "-std=c11 -pedantic-errors -pthread -D_POSIX_C_SOURCE=200809L" } */ +/* { dg-additional-options "-D_XOPEN_SOURCE=600" { target *-*-solaris2.1[0-9]* } } /* { dg-require-effective-target fenv_exceptions } */ /* { dg-require-effective-target pthread } */