diff options
author | rask <rask@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-20 17:24:51 +0000 |
---|---|---|
committer | rask <rask@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-11-20 17:24:51 +0000 |
commit | 70a855c7f3e88340b380ed2fa860bd5b7c985d74 (patch) | |
tree | c6dd38ad4cc5731ba3700a4eedabd15df6877e13 /gcc/read-rtl.c | |
parent | 04a3504e617a1fe02e015a5cdc946715ed4d9050 (diff) | |
download | gcc-70a855c7f3e88340b380ed2fa860bd5b7c985d74.tar.gz |
* read-rtl.c (fatal_expected_char): Print EOF as text rather that
its binary representation.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@130318 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/read-rtl.c')
-rw-r--r-- | gcc/read-rtl.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/read-rtl.c b/gcc/read-rtl.c index fbb67b47785..cc8fd974a2f 100644 --- a/gcc/read-rtl.c +++ b/gcc/read-rtl.c @@ -218,8 +218,12 @@ fatal_with_file_and_line (FILE *infile, const char *msg, ...) static void fatal_expected_char (FILE *infile, int expected_c, int actual_c) { - fatal_with_file_and_line (infile, "expected character `%c', found `%c'", - expected_c, actual_c); + if (actual_c == EOF) + fatal_with_file_and_line (infile, "expected character `%c', found EOF", + expected_c); + else + fatal_with_file_and_line (infile, "expected character `%c', found `%c'", + expected_c, actual_c); } /* Implementations of the iterator_group callbacks for modes. */ |