aboutsummaryrefslogtreecommitdiff
path: root/gcc/cpplib.h
diff options
context:
space:
mode:
authorNeil Booth <neil@daikokuya.demon.co.uk>2001-01-28 11:22:23 +0000
committerNeil Booth <neil@gcc.gnu.org>2001-01-28 11:22:23 +0000
commit26ec42ee4d266cf25be73a29888abf906b2d10ef (patch)
tree1d89d6c0190e47c079ba3aba7080beb23ee2e05a /gcc/cpplib.h
parent6001735ea0da3d5d89a8f249a79fc8198ff28513 (diff)
downloadgcc-26ec42ee4d266cf25be73a29888abf906b2d10ef.zip
gcc-26ec42ee4d266cf25be73a29888abf906b2d10ef.tar.gz
gcc-26ec42ee4d266cf25be73a29888abf906b2d10ef.tar.bz2
cpphash.c (_cpp_cleanup_hashtable, [...]): Don't set fe_value.
* 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. From-SVN: r39318
Diffstat (limited to 'gcc/cpplib.h')
-rw-r--r--gcc/cpplib.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cpplib.h b/gcc/cpplib.h
index c109a0f..9d0b8e2 100644
--- a/gcc/cpplib.h
+++ b/gcc/cpplib.h
@@ -166,6 +166,7 @@ struct cpp_string
#define PASTE_LEFT (1 << 3) /* If on LHS of a ## operator. */
#define NAMED_OP (1 << 4) /* C++ named operators. */
#define NO_EXPAND (1 << 5) /* Do not macro-expand this token. */
+#define AVOID_LPASTE (1 << 6) /* Check left for accidental pastes. */
/* A preprocessing token. This has been carefully packed and should
occupy 12 bytes on 32-bit hosts and 16 bytes on 64-bit hosts. */
@@ -487,8 +488,6 @@ struct cpp_hashnode
enum cpp_ttype operator; /* Code for a named operator. */
enum builtin_type builtin; /* Code for a builtin macro. */
} value;
-
- union tree_node *fe_value; /* Front end value. */
};
/* Call this first to get a handle to pass to other functions. */