summaryrefslogtreecommitdiff
path: root/gcc/read-rtl.c
diff options
context:
space:
mode:
authorbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-06 04:11:54 +0000
committerbje <bje@138bc75d-0d04-0410-961f-82ee72b054a4>2006-02-06 04:11:54 +0000
commite08825b460643d800cd534d88786994c7d06e639 (patch)
treeea86b4e51315a9083eeeac1519a796c12d31d518 /gcc/read-rtl.c
parentb8453809b31d989fba20e49aa30b5dc7031c411a (diff)
downloadlinaro-gcc-e08825b460643d800cd534d88786994c7d06e639.tar.gz
linaro-gcc-e08825b460643d800cd534d88786994c7d06e639.tar.bz2
linaro-gcc-e08825b460643d800cd534d88786994c7d06e639.zip
* read-rtl.c (read_name): Terminate reading on EOF.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110636 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/read-rtl.c')
-rw-r--r--gcc/read-rtl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/read-rtl.c b/gcc/read-rtl.c
index 5eb642ee0a2..89a7c972283 100644
--- a/gcc/read-rtl.c
+++ b/gcc/read-rtl.c
@@ -886,7 +886,7 @@ read_name (char *str, FILE *infile)
p = str;
while (1)
{
- if (c == ' ' || c == '\n' || c == '\t' || c == '\f' || c == '\r')
+ if (c == ' ' || c == '\n' || c == '\t' || c == '\f' || c == '\r' || c == EOF)
break;
if (c == ':' || c == ')' || c == ']' || c == '"' || c == '/'
|| c == '(' || c == '[')