projects
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae52622
)
(macroexpand): Use start_line for line number of the new
author
Jim Wilson
<wilson@gcc.gnu.org>
Thu, 28 Apr 1994 23:03:41 +0000
(16:03 -0700)
committer
Jim Wilson
<wilson@gcc.gnu.org>
Thu, 28 Apr 1994 23:03:41 +0000
(16:03 -0700)
instack level pushed at the end.
From-SVN: r7174
gcc/cccp.c
patch
|
blob
|
history
diff --git
a/gcc/cccp.c
b/gcc/cccp.c
index 70a16870c95a70459fb9e262f1a6ce4241002b13..a69829ca17883ddbbb769dc053a304f80930ebe8 100644
(file)
--- 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;