* lib/target-supports.exp (check_effective_target_mmap): Use
check_function_available.
From-SVN: r176846
+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.
# 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