summaryrefslogtreecommitdiff
path: root/gcc/read-rtl.c
diff options
context:
space:
mode:
authorjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-02 15:51:01 +0000
committerjsm28 <jsm28@138bc75d-0d04-0410-961f-82ee72b054a4>2010-04-02 15:51:01 +0000
commited99630c871368f8151f4de0a7bd0843fada4615 (patch)
treed73d63ec5cbbe670fc8874d0ea047ae1f7cd1a36 /gcc/read-rtl.c
parentae6c5ae5c9b3e2541c61cbebbb93f2d7a01e4000 (diff)
downloadgcc-ed99630c871368f8151f4de0a7bd0843fada4615.tar.gz
* read-rtl.c (read_rtx_1): Give an error for EOF while looking for
']'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@157943 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/read-rtl.c')
-rw-r--r--gcc/read-rtl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/read-rtl.c b/gcc/read-rtl.c
index 9f922ae8cd9..1a0160d3589 100644
--- a/gcc/read-rtl.c
+++ b/gcc/read-rtl.c
@@ -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));