From 115875a1ce4e60ce6e2ee81ad45e15cf3ba45af0 Mon Sep 17 00:00:00 2001 From: bje Date: Thu, 18 Jan 2007 03:12:27 +0000 Subject: [PATCH] * 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 --- gcc/ChangeLog | 5 +++++ gcc/genautomata.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 3cc70a128299..81ffc51e3b47 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 e63df33e9529..d4b94ca05c4d 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 (); -- 2.47.2