Ira Rosen <ira.ro...@linaro.org> writes: >> This test fails on spu-elf, and presumably all other targets that >> don't have mmap (or <sys/mman.h>) ... >> >> Can the test be restricted to those targets that actually support >> that OS feature? > > I copied the list of targets from gcc.dg/20050826-1.c.
Sorry, but this is a bad idea: having such a list once might be acceptable, but copying it around guarantees that the copies will diverge. Besided, this list already is way incomplete: e.g. *-*-solaris2*, alpha*-dec-osf* and mips-sgi-irix* are missing, and probably many more like the *BSDs. I'll change this into an effective-target keyword and replace the hardcoded list by a compile test for <sys/mman.h>. Rainer -- ----------------------------------------------------------------------------- Rainer Orth, Center for Biotechnology, Bielefeld University