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
This commit is contained in:
Rask Ingemann Lambertsen 2007-11-20 18:24:51 +01:00 committed by Rask Ingemann Lambertsen
parent 542f8eb989
commit 8c2123af69
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2007-11-20 Rask Ingemann Lambertsen <rask@sygehus.dk>
* read-rtl.c (fatal_expected_char): Print EOF as text rather that
its binary representation.
2007-11-20 Richard Guenther <rguenther@suse.de>
* tree-ssa-operands.c (add_virtual_operand): Consistently prune

View File

@ -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. */