Commit a5f9523c by Ulrich Weigand Committed by Ulrich Weigand

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
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> 2011-07-27 Jeffrey Yasskin <jyasskin@google.com>
* g++.old-deja/g++.pt/crash60.C: Updated. * g++.old-deja/g++.pt/crash60.C: Updated.
......
...@@ -700,9 +700,7 @@ proc check_effective_target_fopenmp {} { ...@@ -700,9 +700,7 @@ proc check_effective_target_fopenmp {} {
# Return 1 if the target supports mmap, 0 otherwise. # Return 1 if the target supports mmap, 0 otherwise.
proc check_effective_target_mmap {} { proc check_effective_target_mmap {} {
return [check_no_compiler_messages mmap assembly { return [check_function_available "mmap"]
#include <sys/mman.h>
}]
} }
# Return 1 if compilation with -pthread is error-free for trivial # Return 1 if compilation with -pthread is error-free for trivial
......
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