From efdcc728a5c77e8735654b3f379277dec5ccdfbe Mon Sep 17 00:00:00 2001 From: neil Date: Sun, 28 Jan 2001 11:22:23 +0000 Subject: * cpphash.c (_cpp_cleanup_hashtable, _cpp_lookup_with_hash) : Don't set fe_value. * cpplib.h (AVOID_LPASTE): New flag. (struct cpp_hashnode): Remove fe_value. * cpplex.c (cpp_avoid_paste): Don't paste '.' with a number. * cppmacro.c (builtin_macro): Don't set flags here. (replace_args): Set AVOID_LPASTE flag on first token of an argument, and the token following it. (cpp_get_token): Set AVOID_LPASTE flag on first token of a macro expansion, and on the token following it. Do it for builtins too. * cppmain.c (scan_buffer): Avoid pasting only flagged tokens. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39318 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/cppmain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gcc/cppmain.c') diff --git a/gcc/cppmain.c b/gcc/cppmain.c index ecc27e42d6b..13bbbdd3c4f 100644 --- a/gcc/cppmain.c +++ b/gcc/cppmain.c @@ -235,8 +235,8 @@ scan_buffer (pfile) } } else if (print.printed - && ! (token->flags & PREV_WHITE) - && options->lang != CLK_ASM + && (token->flags & (PREV_WHITE | AVOID_LPASTE)) + == AVOID_LPASTE && cpp_avoid_paste (pfile, &tokens[1 - index], token)) token->flags |= PREV_WHITE; -- cgit v1.2.3