* read-rtl.c (read_name): Terminate reading on EOF.

From-SVN: r110636
This commit is contained in:
Ben Elliston 2006-02-06 04:11:54 +00:00 committed by Ben Elliston
parent ad81b4ea3c
commit b84d6ae99d
2 changed files with 6 additions and 2 deletions

View File

@ -1,4 +1,8 @@
2006-02-04 Ben Elliston <bje@au.ibm.com>
2006-02-06 Ben Elliston <bje@au.ibm.com>
* read-rtl.c (read_name): Terminate reading on EOF.
2006-02-06 Ben Elliston <bje@au.ibm.com>
* dfp.c (decimal_real_arithmetic): Change second argument type
from int to enum tree_code. Do not always return true, but now

View File

@ -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 == '[')