Rainer Orth wrote:

> +proc check_effective_target_mmap {} {
> +    return [check_no_compiler_messages mmap assembly {
> +     #include <sys/mman.h>
> +    }]
> +}

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 we *do* have sys/mman.h on SPU, it just does not
contain a mmap prototype (and there is no mmap routine).  Instead,
sys/mman.h on SPU has prototypes and defines for "mmap_eaddr" and
the like, which allow SPU programs to manipulate PPU-side memory
mappings (to be accessed via DMA) ...

Can the test be extended to actually check for the mmap routine
itself?

Thanks,
Ulrich

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

Reply via email to