diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2019-09-01 12:55:58 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2019-09-01 12:55:58 +0000 |
commit | 4c122404fabbd651dab4c6a1217257ff5fe03ae9 (patch) | |
tree | 1be1d65da44049c4bc08745f87b834aa84a23051 /gcc | |
parent | 2dae2123477fb0c04b62b313a60ba83254ba27e1 (diff) | |
download | gcc-4c122404fabbd651dab4c6a1217257ff5fe03ae9.zip gcc-4c122404fabbd651dab4c6a1217257ff5fe03ae9.tar.gz gcc-4c122404fabbd651dab4c6a1217257ff5fe03ae9.tar.bz2 |
target-supports.exp (check_effective_target_pthread): Add #include <pthread.h> directive to the test.
* lib/target-supports.exp (check_effective_target_pthread): Add
#include <pthread.h> directive to the test.
From-SVN: r275271
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 5 |
2 files changed, 5 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 72c0abb..a84a8b9 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -2,6 +2,9 @@ * gcc.c-torture/execute/20190901-1.c: New test. + * lib/target-supports.exp (check_effective_target_pthread): Add + #include <pthread.h> directive to the test. + 2019-09-01 Paul Thomas <pault@gcc.gnu.org> * gfortran.dg/select_rank_1.f90 : New test. diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp index 300d22a..739321a 100644 --- a/gcc/testsuite/lib/target-supports.exp +++ b/gcc/testsuite/lib/target-supports.exp @@ -1052,11 +1052,10 @@ proc check_effective_target_swapcontext {} { }] } -# Return 1 if compilation with -pthread is error-free for trivial -# code, 0 otherwise. - +# Return 1 if the target supports POSIX threads, 0 otherwise. proc check_effective_target_pthread {} { return [check_no_compiler_messages pthread object { + #include <pthread.h> void foo (void) { } } "-pthread"] } |