Re: [PATCH 5/5] Add error checking to lto_section_read

2011-10-10 Thread Richard Guenther
On Sun, Oct 9, 2011 at 9:55 PM, Andi Kleen wrote: > From: Andi Kleen > > Various callers of lto_section_read segfault on a NULL return > when the mmap fails. Add some internal_errors to give a better > message to the user. Hm, shouldn't these be fatal_error () then? Ok with that change. Thanks

[PATCH 5/5] Add error checking to lto_section_read

2011-10-09 Thread Andi Kleen
From: Andi Kleen Various callers of lto_section_read segfault on a NULL return when the mmap fails. Add some internal_errors to give a better message to the user. gcc/lto/: 2011-10-09 Andi Kleen * lto.c (lto_section_read): Call internal_error on IO or mmap errors. --- gcc/lto/lto.c