From: Ben Elliston Date: Mon, 6 Feb 2006 04:11:54 +0000 (+0000) Subject: * read-rtl.c (read_name): Terminate reading on EOF. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b84d6ae99d9e9b0234ecb33a4185966ddba8b73e;p=gcc.git * read-rtl.c (read_name): Terminate reading on EOF. From-SVN: r110636 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4dce3b3b483..7534825de46 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,8 @@ -2006-02-04 Ben Elliston +2006-02-06 Ben Elliston + + * read-rtl.c (read_name): Terminate reading on EOF. + +2006-02-06 Ben Elliston * dfp.c (decimal_real_arithmetic): Change second argument type from int to enum tree_code. Do not always return true, but now 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 == '[')