OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
* read-rtl.c (read_rtx_1): Give an error for EOF while looking for
[pf3gnuchains/gcc-fork.git]
/
gcc
/
read-rtl.c
diff --git
a/gcc/read-rtl.c
b/gcc/read-rtl.c
index
9f922ae
..
1a0160d
100644
(file)
--- 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));