Re: [jit] Error-handling within gcc::jit::dump

2014-10-20 Thread Joseph S. Myers
On Mon, 20 Oct 2014, David Malcolm wrote: > On Fri, 2014-10-17 at 21:52 +, Joseph S. Myers wrote: > [...snip static linkage discussion...] > > > The dump file handling appears to have no I/O error checking (no checking > > for error on fopen, nothing obvious to prevent fwrite to a NULL m_fil

[jit] Error-handling within gcc::jit::dump

2014-10-20 Thread David Malcolm
On Fri, 2014-10-17 at 21:52 +, Joseph S. Myers wrote: [...snip static linkage discussion...] > The dump file handling appears to have no I/O error checking (no checking > for error on fopen, nothing obvious to prevent fwrite to a NULL m_file if > fopen did have an error, no checking for erro