Commit 4c122404 by Eric Botcazou Committed by Eric Botcazou

target-supports.exp (check_effective_target_pthread): Add #include <pthread.h>…

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
parent 2dae2123
......@@ -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.
......
......@@ -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"]
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment