From bbeb7b6556c304085c8e2b4b1a600e0805e76936 Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Thu, 7 May 1998 20:49:41 +0000 Subject: Fix specs file problem reported by Nathan Myers. * gcc.c (read_specs): Handle missing blank line at end of specs file. From-SVN: r19622 --- gcc/ChangeLog | 2 ++ gcc/gcc.c | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index edb021d..6b2d975 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ Thu May 7 19:26:34 1998 Jim Wilson + * 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. diff --git a/gcc/gcc.c b/gcc/gcc.c index 1941aed..f2efe56 100644 --- a/gcc/gcc.c +++ b/gcc/gcc.c @@ -1557,8 +1557,8 @@ read_specs (filename, main_p) 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. */ -- cgit v1.1