aboutsummaryrefslogtreecommitdiff
path: root/gcc/read-rtl.c
diff options
context:
space:
mode:
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 5eb642ee..89a7c97 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 == '[')