* gcc.c (read_specs): Handle missing blank line at end of specs file.
From-SVN: r19622
Thu May 7 19:26:34 1998 Jim Wilson <wilson@cygnus.com>
+ * gcc.c (read_specs): Handle missing blank line at end of specs file.
+
* i386.md (movsicc, movhicc, movsicc_1, movhicc_1, movsfcc_1,
movdfcc_1): Disable.
fatal ("specs file malformed after %d characters", p - buffer);
p1 = p;
- /* Find next blank line. */
- while (*p1 && !(*p1 == '\n' && p1[1] == '\n'))
+ /* Find next blank line or end of string. */
+ while (*p1 && !(*p1 == '\n' && (p1[1] == '\n' || p1[1] == '\0')))
p1++;
/* Specs end at the blank line and do not include the newline. */