--- Comment #4 from rob1weld at aol dot com 2009-07-17 06:43 ---
(In reply to comment #2)
> Confirmed. The proposed fix is not correct, though, as the type of the first
> argument to munmap _is_ void* according to POSIX.
Thanks for applying the patch. I've not looked at 'LTO' source in
--- Comment #3 from bje at gcc dot gnu dot org 2009-07-15 00:49 ---
Fixed by this patch:
2009-07-09 Rainer Orth
* lto.c (free_section_data): Cast computed_offset to caddr_t.
I felt this was not the right fix, but I won't argue.
--
bje at gcc dot gnu dot org changed:
--- Comment #2 from bje at gcc dot gnu dot org 2009-07-09 00:14 ---
Confirmed. The proposed fix is not correct, though, as the type of the first
argument to munmap _is_ void* according to POSIX.
--
bje at gcc dot gnu dot org changed:
What|Removed
--- Comment #1 from rob1weld at aol dot com 2009-03-09 06:40 ---
Fix:
/* munmap ((void *)computed_offset, computed_len); */
munmap ((caddr_t)computed_offset, computed_len);
Rob
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39279