aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1994-04-28 16:03:41 -0700
committerJim Wilson <wilson@gcc.gnu.org>1994-04-28 16:03:41 -0700
commit3375e6626aac6c2b3cd434026b6930561d5ae11a (patch)
tree47df8af1e91d2e38b57d6ae84f5e828b8b04d818 /gcc
parentae526227778689d534167ba2b49ec23ae981aba0 (diff)
downloadgcc-3375e6626aac6c2b3cd434026b6930561d5ae11a.zip
gcc-3375e6626aac6c2b3cd434026b6930561d5ae11a.tar.gz
gcc-3375e6626aac6c2b3cd434026b6930561d5ae11a.tar.bz2
(macroexpand): Use start_line for line number of the new
instack level pushed at the end. From-SVN: r7174
Diffstat (limited to 'gcc')
-rw-r--r--gcc/cccp.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c
index 70a1687..a69829c 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;