From: Ben Elliston Date: Thu, 18 Jan 2007 03:12:27 +0000 (+0000) Subject: genautomata.c (write_automata): Include xstrerror output in the error message if... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=19b8c2d9763e896df1fc96c278d7d0dde58cf700;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3cc70a12829..81ffc51e3b4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2007-01-18 Ben Elliston + + * genautomata.c (write_automata): Include xstrerror output in the + error message if writing the DFA description file fails. + 2007-01-17 H.J. Lu * config/mips/mips-protos.h (mips_output_external): Make it diff --git a/gcc/genautomata.c b/gcc/genautomata.c index e63df33e952..d4b94ca05c4 100644 --- a/gcc/genautomata.c +++ b/gcc/genautomata.c @@ -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 ();