diff options
author | Ben Elliston <bje@au.ibm.com> | 2007-01-18 03:12:27 +0000 |
---|---|---|
committer | Ben Elliston <bje@gcc.gnu.org> | 2007-01-18 14:12:27 +1100 |
commit | 19b8c2d9763e896df1fc96c278d7d0dde58cf700 (patch) | |
tree | c4f04bdb358527b23467210687587cfb1dcd62b1 /gcc | |
parent | be2cc2136dc80e6d277ef44010b874da051614dd (diff) | |
download | gcc-19b8c2d9763e896df1fc96c278d7d0dde58cf700.zip gcc-19b8c2d9763e896df1fc96c278d7d0dde58cf700.tar.gz gcc-19b8c2d9763e896df1fc96c278d7d0dde58cf700.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/genautomata.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3cc70a1..81ffc51 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/genautomata.c b/gcc/genautomata.c index e63df33..d4b94ca 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 (); |