diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2011-07-27 19:01:23 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@gcc.gnu.org> | 2011-07-27 19:01:23 +0000 |
commit | a5f9523c7c8e1ccfc49a1dbea47029216f85fc95 (patch) | |
tree | 4abb9eb2cdd6bef04fd8e7e7af6431455a5fa203 | |
parent | ce77c22f1bf5674d60710fba3cf8c43d502db01b (diff) | |
download | gcc-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/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/lib/target-supports.exp | 4 |
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 |