diff options
author | John David Anglin <danglin@gcc.gnu.org> | 2014-08-07 19:21:50 +0000 |
---|---|---|
committer | John David Anglin <danglin@gcc.gnu.org> | 2014-08-07 19:21:50 +0000 |
commit | 34c1359ee150a881d2d3df46687a975aef5538ad (patch) | |
tree | 671a04ac6d1cd08c1efd7cd4b9c8898629c8d5d2 /gcc | |
parent | 3bce9ea72de5fba1156698f2d9cd1587d7527fbc (diff) | |
download | gcc-34c1359ee150a881d2d3df46687a975aef5538ad.zip gcc-34c1359ee150a881d2d3df46687a975aef5538ad.tar.gz gcc-34c1359ee150a881d2d3df46687a975aef5538ad.tar.bz2 |
c11-atomic-exec-4.c: Undefine _POSIX_C_SOURCE before defining in dg-options.
* gcc.dg/atomic/c11-atomic-exec-4.c: Undefine _POSIX_C_SOURCE before
defining in dg-options.
* gcc.dg/atomic/c11-atomic-exec-5.c: Likewise.
From-SVN: r213729
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-4.c | 2 | ||||
-rw-r--r-- | gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-5.c | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index edd5d8d..7f1be38 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,9 @@ 2014-08-07 John David Anglin <danglin@gcc.gnu.org> + * gcc.dg/atomic/c11-atomic-exec-4.c: Undefine _POSIX_C_SOURCE before + defining in dg-options. + * gcc.dg/atomic/c11-atomic-exec-5.c: Likewise. + * gcc.dg/atomic/stdatomic-flag.c: Add xfail comment. * gcc.dg/memcpy-5.c: Add -fno-common option on hppa*-*-hpux*. 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 49fe5dd..344f994 100644 --- a/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-4.c +++ b/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-4.c @@ -2,7 +2,7 @@ operating properly when operations on the same variable are carried out in two threads. */ /* { dg-do run } */ -/* { dg-options "-std=c11 -pedantic-errors -pthread -D_POSIX_C_SOURCE=200809L" } */ +/* { dg-options "-std=c11 -pedantic-errors -pthread -U_POSIX_C_SOURCE -D_POSIX_C_SOURCE=200809L" } */ /* { dg-additional-options "-D_XOPEN_SOURCE=600" { target *-*-solaris2.1[0-9]* } } */ /* { dg-require-effective-target pthread } */ 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 b47a228..2b2b1be 100644 --- a/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-5.c +++ b/gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-5.c @@ -3,7 +3,7 @@ iterations of the compare-and-exchange loop are needed, exceptions get properly cleared). */ /* { dg-do run } */ -/* { dg-options "-std=c11 -pedantic-errors -pthread -D_POSIX_C_SOURCE=200809L" } */ +/* { dg-options "-std=c11 -pedantic-errors -pthread -U_POSIX_C_SOURCE -D_POSIX_C_SOURCE=200809L" } */ /* { dg-add-options ieee } */ /* { dg-additional-options "-mfp-trap-mode=sui" { target alpha*-*-* } } */ /* { dg-additional-options "-D_XOPEN_SOURCE=600" { target *-*-solaris2.1[0-9]* } } */ |