From 50f151047dbf2306a222ef2ff09d3d079e576efd Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Thu, 25 Mar 1993 21:51:47 +0000 Subject: [PATCH] (do_include): For "..." case, leave fend pointing at terminating 0. Distinct error msgs for empty file name and for bad syntax. From-SVN: r3880 --- gcc/cccp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/cccp.c b/gcc/cccp.c index dc420997f82..02a270495c4 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -3820,7 +3820,7 @@ get_filename: goto fail; } } - *fend++ = 0; + *fend = 0; /* We have "filename". Figure out directory this source file is coming from and put it on the front of the list. */ @@ -3877,8 +3877,8 @@ get_filename: default: fail: if (retried) { - fend = fbeg; - break; + error ("`#%s' expects \"FILENAME\" or ", keyword->name); + return 0; } else { trybuf = expand_to_temp_buffer (buf, limit, 0, 0); buf = (U_CHAR *) alloca (trybuf.bufp - trybuf.buf + 1); @@ -3908,7 +3908,7 @@ get_filename: if (flen == 0) { - error ("`#%s' expects \"fname\" or ", keyword->name); + error ("empty file name in `#%s'", keyword->name); return 0; }