From: Iain Sandoe Date: Thu, 16 Aug 2018 10:40:04 +0000 (+0000) Subject: Darwin doesn't have pthread_barrier, at least up to Darwin18 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e56c021549301cfcd7995c08d10e1cdad2a3d349;p=gcc.git Darwin doesn't have pthread_barrier, at least up to Darwin18 so don't try to do tests with it. 2018-08-16 Iain Sandoe gcc/testsuite/ * c-c++-common/asan/pointer-subtract-3.c: Skip for Darwin. * c-c++-common/asan/pointer-subtract-4.c: Likewise. * g++.dg/torture/pr44295.C : Likewise. From-SVN: r263585 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 394c6c6f7ec..f3b2b1dd0f9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2018-08-16 Iain Sandoe + + * c-c++-common/asan/pointer-subtract-3.c: Skip for Darwin. + * c-c++-common/asan/pointer-subtract-4.c: Likewise. + * g++.dg/torture/pr44295.C : Likewise. + 2018-08-16 Iain Sandoe PR testsuite/78544 diff --git a/gcc/testsuite/c-c++-common/asan/pointer-subtract-3.c b/gcc/testsuite/c-c++-common/asan/pointer-subtract-3.c index 7cae91b6991..b434aaac097 100644 --- a/gcc/testsuite/c-c++-common/asan/pointer-subtract-3.c +++ b/gcc/testsuite/c-c++-common/asan/pointer-subtract-3.c @@ -1,4 +1,5 @@ /* { dg-do run { target pthread_h } } */ +/* { dg-skip-if "no pthread_barrier" { *-*-darwin* } } */ /* { dg-set-target-env-var ASAN_OPTIONS "detect_invalid_pointer_pairs=2:halt_on_error=1" } */ /* { dg-options "-fsanitize=address,pointer-subtract" } */ /* { dg-additional-options "-pthread" { target pthread } } */ diff --git a/gcc/testsuite/c-c++-common/asan/pointer-subtract-4.c b/gcc/testsuite/c-c++-common/asan/pointer-subtract-4.c index af65c59512b..4931c2147e7 100644 --- a/gcc/testsuite/c-c++-common/asan/pointer-subtract-4.c +++ b/gcc/testsuite/c-c++-common/asan/pointer-subtract-4.c @@ -1,4 +1,5 @@ /* { dg-do run { target pthread_h } } */ +/* { dg-skip-if "no pthread_barrier" { *-*-darwin* } } */ /* { dg-shouldfail "asan" } */ /* { dg-set-target-env-var ASAN_OPTIONS "detect_invalid_pointer_pairs=2:halt_on_error=1" } */ /* { dg-options "-fsanitize=address,pointer-subtract" } */ diff --git a/gcc/testsuite/g++.dg/torture/pr44295.C b/gcc/testsuite/g++.dg/torture/pr44295.C index 7525dc41a78..a2edf63cd0f 100644 --- a/gcc/testsuite/g++.dg/torture/pr44295.C +++ b/gcc/testsuite/g++.dg/torture/pr44295.C @@ -1,5 +1,6 @@ /* { dg-do compile } */ /* { dg-additional-options "-Wno-return-type" } */ +/* { dg-skip-if "no pthread_barrier" { *-*-darwin* } } */ extern "C" { typedef __SIZE_TYPE__ size_t;