From: Jim Wilson Date: Thu, 28 Apr 1994 23:03:41 +0000 (-0700) Subject: (macroexpand): Use start_line for line number of the new X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3375e6626aac6c2b3cd434026b6930561d5ae11a;p=gcc.git (macroexpand): Use start_line for line number of the new instack level pushed at the end. From-SVN: r7174 --- diff --git a/gcc/cccp.c b/gcc/cccp.c index 70a16870c95..a69829ca178 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -7895,7 +7895,9 @@ macroexpand (hp, op) ip2->fname = 0; ip2->nominal_fname = 0; - ip2->lineno = 0; + /* This may not be exactly correct, but will give much better error + messages for nested macro calls than using a line number of zero. */ + ip2->lineno = start_line; ip2->buf = xbuf; ip2->length = xbuf_len; ip2->bufp = xbuf;