This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]