Re: [testsuite] Provide and use mmap effective-target keyword

2011-07-27 Thread Rainer Orth
Ulrich, > ChangeLog: > > * lib/target-supports.exp (check_effective_target_mmap): Use > check_function_available. Ok, thanks. Rainer -- - Rainer Orth, Center for Biotechnology, Bielefeld University

Re: [testsuite] Provide and use mmap effective-target keyword

2011-07-26 Thread Ulrich Weigand
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/tar

Re: [testsuite] Provide and use mmap effective-target keyword

2011-07-26 Thread Rainer Orth
Ulrich, > Rainer Orth wrote: > >> +proc check_effective_target_mmap {} { >> +return [check_no_compiler_messages mmap assembly { >> +#include >> +}] >> +} > > Unfortunately, this test breaks spu-elf; a lot of tests now fail with: > loop-2f.c:(.text+0x100): undefined reference to `mmap'

Re: [testsuite] Provide and use mmap effective-target keyword

2011-07-26 Thread Ulrich Weigand
Rainer Orth wrote: > +proc check_effective_target_mmap {} { > +return [check_no_compiler_messages mmap assembly { > + #include > +}] > +} Unfortunately, this test breaks spu-elf; a lot of tests now fail with: loop-2f.c:(.text+0x100): undefined reference to `mmap' The problem is that

Re: [testsuite] Provide and use mmap effective-target keyword

2011-07-26 Thread Rainer Orth
Ira, > Could this patch be also backported to 4.6? gcc.dg/vect/pr49038.c fails on > 4.6 as well (on SPU). I guess so. I'd like to give it two weeks soak time on mainline before doing so. Rainer -- - Rainer Ort

Re: [testsuite] Provide and use mmap effective-target keyword

2011-07-26 Thread Ira Rosen
> When last week a testcase using mmap was posted with a copy of some old > (and wrong) list of targets supporting mmap, I noticed what mess we have > here. To fix this, I've introduced a new effective-target keyword mmap > and use it in all testcases. > > Two minor changes to the tests were requ

[testsuite] Provide and use mmap effective-target keyword

2011-07-25 Thread Rainer Orth
When last week a testcase using mmap was posted with a copy of some old (and wrong) list of targets supporting mmap, I noticed what mess we have here. To fix this, I've introduced a new effective-target keyword mmap and use it in all testcases. Two minor changes to the tests were required: * gcc