Skip to content
Snippets Groups Projects
Commit a5f9523c authored by Ulrich Weigand's avatar Ulrich Weigand Committed by Ulrich Weigand
Browse files

target-supports.exp (check_effective_target_mmap): Use check_function_available.

	* lib/target-supports.exp (check_effective_target_mmap): Use
	check_function_available.

From-SVN: r176846
parent ce77c22f
No related branches found
No related tags found
No related merge requests found
2011-07-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
* lib/target-supports.exp (check_effective_target_mmap): Use
check_function_available.
2011-07-27 Jeffrey Yasskin <jyasskin@google.com>
* g++.old-deja/g++.pt/crash60.C: Updated.
......
......@@ -700,9 +700,7 @@ proc check_effective_target_fopenmp {} {
# Return 1 if the target supports mmap, 0 otherwise.
proc check_effective_target_mmap {} {
return [check_no_compiler_messages mmap assembly {
#include <sys/mman.h>
}]
return [check_function_available "mmap"]
}
# Return 1 if compilation with -pthread is error-free for trivial
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment