diff options
author | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-07-27 19:01:23 +0000 |
---|---|---|
committer | uweigand <uweigand@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-07-27 19:01:23 +0000 |
commit | 77c4e08983984642e51e631b5b3e5848ff22fafa (patch) | |
tree | 4abb9eb2cdd6bef04fd8e7e7af6431455a5fa203 /gcc | |
parent | 089ce69e0d754851ac0acd396fa91c8406c38538 (diff) | |
download | gcc-77c4e08983984642e51e631b5b3e5848ff22fafa.tar.gz |
* lib/target-supports.exp (check_effective_target_mmap): Use
check_function_available.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@176846 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc')
-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 952c3ca1136..dedc2645869 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 f7027bdb6ab..28dedc97d32 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 |