diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-11-05 13:29:23 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1994-11-05 13:29:23 +0000 |
commit | 099818a57ba0342e9db464c3dc7e69a14b5f181d (patch) | |
tree | 73ce496cb4c0ddd32a0971b8ad988173dade3316 /gcc/cccp.c | |
parent | 9b21124f5c960a1ae26984b694f747d62f634d39 (diff) | |
download | gcc-099818a57ba0342e9db464c3dc7e69a14b5f181d.tar.gz |
(rescan): Do not preserve newlines after macro name
if rescanning a macro expansion. Instead, preserve them if
not outputting marks.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8389 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cccp.c')
-rw-r--r-- | gcc/cccp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/cccp.c b/gcc/cccp.c index 0ad85b42803..889285b912b 100644 --- a/gcc/cccp.c +++ b/gcc/cccp.c @@ -3275,10 +3275,10 @@ startagain: /* This is now known to be a macro call. Discard the macro name from the output, along with any following whitespace just copied, - but preserve newlines at the top level since this + but preserve newlines if not outputting marks since this is more likely to do the right thing with line numbers. */ obp = op->buf + obufp_before_macroname; - if (ip->macro != 0) + if (output_marks) op->lineno = op_lineno_before_macroname; else { int newlines = op->lineno - op_lineno_before_macroname; |