genautomata.c (write_automata): Include xstrerror output in the error message if...
* genautomata.c (write_automata): Include xstrerror output in the error message if writing the DFA description file fails. From-SVN: r120891
This commit is contained in:
parent
be2cc2136d
commit
19b8c2d976
@ -1,3 +1,8 @@
|
||||
2007-01-18 Ben Elliston <bje@au.ibm.com>
|
||||
|
||||
* genautomata.c (write_automata): Include xstrerror output in the
|
||||
error message if writing the DFA description file fails.
|
||||
|
||||
2007-01-17 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* config/mips/mips-protos.h (mips_output_external): Make it
|
||||
|
@ -9234,8 +9234,8 @@ write_automata (void)
|
||||
{
|
||||
fflush (output_description_file);
|
||||
if (ferror (stdout) != 0)
|
||||
fatal ("Error in writing DFA description file %s",
|
||||
output_description_file_name);
|
||||
fatal ("Error in writing DFA description file %s: %s",
|
||||
output_description_file_name, xstrerror (errno));
|
||||
fclose (output_description_file);
|
||||
}
|
||||
finish_automaton_decl_table ();
|
||||
|
Loading…
Reference in New Issue
Block a user