diff options
author | Ben Elliston <bje@au.ibm.com> | 2006-02-06 04:11:54 +0000 |
---|---|---|
committer | Ben Elliston <bje@gcc.gnu.org> | 2006-02-06 15:11:54 +1100 |
commit | b84d6ae99d9e9b0234ecb33a4185966ddba8b73e (patch) | |
tree | ea86b4e51315a9083eeeac1519a796c12d31d518 /gcc/read-rtl.c | |
parent | ad81b4ea3c6b241c6dec68013bf68f203f69a800 (diff) | |
download | gcc-b84d6ae99d9e9b0234ecb33a4185966ddba8b73e.tar.gz |
* read-rtl.c (read_name): Terminate reading on EOF.
From-SVN: r110636
Diffstat (limited to 'gcc/read-rtl.c')
-rw-r--r-- | gcc/read-rtl.c | 2 |
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 == '[') |