This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
patch for 2.19 sgi ncc
- From: Jay <jay dot krell at cornell dot edu>
- To: binutils <binutils at sourceware dot org>
- Date: Wed, 29 Oct 2008 22:55:25 +0000
- Subject: patch for 2.19 sgi ncc
cache_bread (struct bfd *abfd, void *buf, file_ptr nbytes)
D:\src\binutils-2.19\bfd\cache.c(320): chunk_nread = cache_bread_1 (abfd, buf + nread, chunk_size);
is not valid C -- math on a void* -- and is rejected by Irix /usr/WorkShop/usr/bin/ncc.
It should be:
D:\src\binutils-2.19\bfd\cache.c(320): chunk_nread = cache_bread_1 (abfd, (char*) buf + nread, chunk_size);
or
D:\src\binutils-2.19\bfd\cache.c(320): chunk_nread = cache_bread_1 (abfd, ((char*) buf) + nread, chunk_size);
or
D:\src\binutils-2.19\bfd\cache.c(320): chunk_nread = cache_bread_1 (abfd, nread + (char*) buf, chunk_size);
or such.
The first one gets past this for me (still building).
- Jay