diff options
author | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-18 03:12:27 +0000 |
---|---|---|
committer | bje <bje@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-01-18 03:12:27 +0000 |
commit | 115875a1ce4e60ce6e2ee81ad45e15cf3ba45af0 (patch) | |
tree | c4f04bdb358527b23467210687587cfb1dcd62b1 /gcc/genautomata.c | |
parent | 52d5dacdb09ffb8a1386afad18769b16fee386dc (diff) | |
download | gcc-115875a1ce4e60ce6e2ee81ad45e15cf3ba45af0.tar.gz |
* genautomata.c (write_automata): Include xstrerror output in the
error message if writing the DFA description file fails.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120891 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genautomata.c')
-rw-r--r-- | gcc/genautomata.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 (); |