This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch] Fix gcc.dg/vect/pr49038.c (was Re: [patch] Fix PR tree-optimization/49038)
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: Ira Rosen <ira dot rosen at linaro dot org>
- Cc: Ulrich Weigand <uweigand at de dot ibm dot com>, gcc-patches at gcc dot gnu dot org, Patch Tracking <patches at linaro dot org>
- Date: Mon, 18 Jul 2011 12:58:23 +0200
- Subject: Re: [patch] Fix gcc.dg/vect/pr49038.c (was Re: [patch] Fix PR tree-optimization/49038)
- References: <CAKSNEw5+UjiORX2foyX-FsoN0PxcWHzczZjp3JA1SFANMg1q_A@mail.gmail.com>
Ira Rosen <ira.rosen@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