Commit d33da5cd by Joseph Myers Committed by Joseph Myers

read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.

	* read-rtl.c (read_rtx_1): Give an error for EOF while looking for
	']'.

From-SVN: r157943
parent 2e5505a4
2010-04-02 Joseph Myers <joseph@codesourcery.com>
* read-rtl.c (read_rtx_1): Give an error for EOF while looking for
']'.
2010-04-02 Richard Earnshaw <rearnsha@arm.com>
PR target/43469
......
......@@ -1595,6 +1595,8 @@ read_rtx_1 (FILE *infile, struct map_value **mode_maps)
obstack_init (&vector_stack);
while ((c = read_skip_spaces (infile)) && c != ']')
{
if (c == EOF)
fatal_expected_char (infile, ']', c);
ungetc (c, infile);
list_counter++;
obstack_ptr_grow (&vector_stack, read_rtx_1 (infile, mode_maps));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment