aboutsummaryrefslogtreecommitdiff
path: root/gcc/read-rtl.c
diff options
context:
space:
mode:
authorRask Ingemann Lambertsen <rask@sygehus.dk>2007-11-20 18:24:51 +0100
committerRask Ingemann Lambertsen <rask@gcc.gnu.org>2007-11-20 17:24:51 +0000
commit8c2123af692c7ea554b8b92c16fc2a49f46872e6 (patch)
treec6dd38ad4cc5731ba3700a4eedabd15df6877e13 /gcc/read-rtl.c
parent542f8eb9890fbd94f1ce22b0b1291669ec91ce8c (diff)
downloadgcc-8c2123af692c7ea554b8b92c16fc2a49f46872e6.zip
gcc-8c2123af692c7ea554b8b92c16fc2a49f46872e6.tar.gz
gcc-8c2123af692c7ea554b8b92c16fc2a49f46872e6.tar.bz2
read-rtl.c (fatal_expected_char): Print EOF as text rather that its binary representation.
* read-rtl.c (fatal_expected_char): Print EOF as text rather that its binary representation. From-SVN: r130318
Diffstat (limited to 'gcc/read-rtl.c')
-rw-r--r--gcc/read-rtl.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gcc/read-rtl.c b/gcc/read-rtl.c
index fbb67b4..cc8fd97 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. */