]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c11-atomic-exec-4.c: Undefine _POSIX_C_SOURCE before defining in dg-options.
authorJohn David Anglin <danglin@gcc.gnu.org>
Thu, 7 Aug 2014 19:21:50 +0000 (19:21 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Thu, 7 Aug 2014 19:21:50 +0000 (19:21 +0000)
* 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

gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-4.c
gcc/testsuite/gcc.dg/atomic/c11-atomic-exec-5.c

index edd5d8db02cad2bf9385aa5d6998bcc6aaf02d7d..7f1be38d154d185c42c4b59ccc99a9821fcae712 100644 (file)
@@ -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*.
index 49fe5dd3b17d78b62bad7ed353663ef489a898a8..344f9947e867db5863f806ec4a60ffb51c34be13 100644 (file)
@@ -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 } */
 
index b47a228ef43318c0fdbc55d40bb6f381637293cc..2b2b1be4af744ae9c42428174655fd0e5aea158b 100644 (file)
@@ -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]* } } */