Rainer Orth wrote: > sure, that's one of the reasons to centralize the mmap test. Simply > replacing the body of the proc with > > return [check_function_available "mmap"] > > should work. Could you give it a try?
Yes, this does work for me. Thanks, Ulrich ChangeLog: * lib/target-supports.exp (check_effective_target_mmap): Use check_function_available. Index: gcc/testsuite/lib/target-supports.exp =================================================================== *** gcc/testsuite/lib/target-supports.exp (revision 176798) --- gcc/testsuite/lib/target-supports.exp (working copy) *************** proc check_effective_target_fopenmp {} { *** 700,708 **** # 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 1 if compilation with -pthread is error-free for trivial --- 700,706 ---- # Return 1 if the target supports mmap, 0 otherwise. proc check_effective_target_mmap {} { ! return [check_function_available "mmap"] } # Return 1 if compilation with -pthread is error-free for trivial -- Dr. Ulrich Weigand GNU Toolchain for Linux on System z and Cell BE ulrich.weig...@de.ibm.com