aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2011-07-27 19:01:23 +0000
committerUlrich Weigand <uweigand@gcc.gnu.org>2011-07-27 19:01:23 +0000
commita5f9523c7c8e1ccfc49a1dbea47029216f85fc95 (patch)
tree4abb9eb2cdd6bef04fd8e7e7af6431455a5fa203
parentce77c22f1bf5674d60710fba3cf8c43d502db01b (diff)
downloadgcc-a5f9523c7c8e1ccfc49a1dbea47029216f85fc95.zip
gcc-a5f9523c7c8e1ccfc49a1dbea47029216f85fc95.tar.gz
gcc-a5f9523c7c8e1ccfc49a1dbea47029216f85fc95.tar.bz2
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
-rw-r--r--gcc/testsuite/ChangeLog5
-rw-r--r--gcc/testsuite/lib/target-supports.exp4
2 files changed, 6 insertions, 3 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index 952c3ca..dedc264 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+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.
diff --git a/gcc/testsuite/lib/target-supports.exp b/gcc/testsuite/lib/target-supports.exp
index f7027bd..28dedc9 100644
--- a/gcc/testsuite/lib/target-supports.exp
+++ b/gcc/testsuite/lib/target-supports.exp
@@ -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