read-rtl.c (read_quoted_string): Break if EOF.
authorPaul Brook <paul@codesourcery.com>
Thu, 4 Aug 2005 23:31:00 +0000 (23:31 +0000)
committerPaul Brook <pbrook@gcc.gnu.org>
Thu, 4 Aug 2005 23:31:00 +0000 (23:31 +0000)
2005-08-04  Paul Brook  <paul@codesourcery.com>

* read-rtl.c (read_quoted_string): Break if EOF.

From-SVN: r102749

gcc/ChangeLog
gcc/read-rtl.c

index d1a1cf3..f07a38e 100644 (file)
@@ -1,3 +1,7 @@
+2005-08-04  Paul Brook  <paul@codesourcery.com>
+
+       * read-rtl.c (read_quoted_string): Break if EOF.
+
 2005-08-04  Andrew Pinski  <pinskia@physics.uc.edu>
 
        * tree.h (fold_build1): Change to macro and call fold_build1_stat.
index 2835c26..79f4050 100644 (file)
@@ -991,7 +991,7 @@ read_quoted_string (FILE *infile)
          read_escape (infile);
          continue;
        }
-      else if (c == '"')
+      else if (c == '"' || c == EOF)
        break;
 
       obstack_1grow (&string_obstack, c);