On 15 July 2011 15:56, Ulrich Weigand <uweig...@de.ibm.com> wrote:
> Ira Rosen wrote:
>
>>       * gcc.dg/vect/pr49038.c: New test.
>
>> Index: testsuite/gcc.dg/vect/pr49038.c
>> ===================================================================
>> --- testsuite/gcc.dg/vect/pr49038.c   (revision 0)
>> +++ testsuite/gcc.dg/vect/pr49038.c   (revision 0)
>> @@ -0,0 +1,38 @@
>> +#include <sys/mman.h>
>> +#include <stdio.h>
>> +
>> +#define COUNT 320
>> +#define MMAP_SIZE 0x10000
>> +#define ADDRESS 0x1122000000
>> +#define TYPE unsigned short
>
> 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.

Tested on x86_64-suse-linux.
OK to apply?

Thanks,
Ira


ChangeLog:

   * gcc.dg/vect/pr49038.c: Run only on targets that support mmap.


Index: gcc.dg/vect/pr49038.c
===================================================================
--- gcc.dg/vect/pr49038.c       (revision 175681)
+++ gcc.dg/vect/pr49038.c       (working copy)
@@ -1,3 +1,5 @@
+/* { dg-do run { target i?86-*-linux* x86_64-*-linux* ia64-*-linux*
alpha*-*-linux* powerpc*-*-linux* s390*-*-linux* sparc*-*-linux*
*-*-darwin* } } */
+
 #include <sys/mman.h>
 #include <stdio.h>




>
> Thanks,
> Ulrich
>
> --
>  Dr. Ulrich Weigand
>  GNU Toolchain for Linux on System z and Cell BE
>  ulrich.weig...@de.ibm.com
>

Reply via email to