diff options
| author | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-01 19:13:53 +0000 |
|---|---|---|
| committer | neil <neil@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-02-01 19:13:53 +0000 |
| commit | 8c2e2fc5143af87fb324348632d9841d57f368de (patch) | |
| tree | cb3461c1cc22fa95ff3bb51b1b2b2dbad2132830 /gcc/cppmain.c | |
| parent | c176c42da25295de27d18553934efebe3ad2de2b (diff) | |
| download | ppe42-gcc-8c2e2fc5143af87fb324348632d9841d57f368de.tar.gz ppe42-gcc-8c2e2fc5143af87fb324348632d9841d57f368de.zip | |
* cpphash.h (struct cpp_buffer): Move saved_flags from cpp_reader.
* cpplex.c (_cpp_lex_token): New token picks up the saved flags,
and AVOID_LPASTE is cleared on meeting an unescaped newline.
* cppmacro.c (builtin_macro): Set builtin flags here.
(paste_all_tokens): Preserve AVOID_LPASTE on pasted token.
(replace_args): Clarify intent.
(cpp_get_token): Macro expansion tokens get the saved flags.
Update.
* cppmain.c (scan_buffer): Remove now-redundant print.printed
check.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39393 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cppmain.c')
| -rw-r--r-- | gcc/cppmain.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cppmain.c b/gcc/cppmain.c index 13bbbdd3c4f..a68d19cf9db 100644 --- a/gcc/cppmain.c +++ b/gcc/cppmain.c @@ -234,8 +234,7 @@ scan_buffer (pfile) putc (' ', print.outf); } } - else if (print.printed - && (token->flags & (PREV_WHITE | AVOID_LPASTE)) + else if ((token->flags & (PREV_WHITE | AVOID_LPASTE)) == AVOID_LPASTE && cpp_avoid_paste (pfile, &tokens[1 - index], token)) token->flags |= PREV_WHITE; |

