summaryrefslogtreecommitdiff
path: root/gcc/cpphash.c
diff options
context:
space:
mode:
authorneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-28 11:22:23 +0000
committerneil <neil@138bc75d-0d04-0410-961f-82ee72b054a4>2001-01-28 11:22:23 +0000
commitefdcc728a5c77e8735654b3f379277dec5ccdfbe (patch)
tree1d89d6c0190e47c079ba3aba7080beb23ee2e05a /gcc/cpphash.c
parentd22ca19890cddec61267438cb886a177b179a66f (diff)
downloadgcc-efdcc728a5c77e8735654b3f379277dec5ccdfbe.tar.gz
* 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
Diffstat (limited to 'gcc/cpphash.c')
-rw-r--r--gcc/cpphash.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/gcc/cpphash.c b/gcc/cpphash.c
index 4804c8fec50..d4c9e376dd9 100644
--- a/gcc/cpphash.c
+++ b/gcc/cpphash.c
@@ -73,10 +73,7 @@ _cpp_cleanup_hashtable (pfile)
do
{
if (*p)
- {
- _cpp_free_definition (*p);
- (*p)->fe_value = 0; /* expose the node to GC */
- }
+ _cpp_free_definition (*p);
}
while (++p < limit);
@@ -169,7 +166,6 @@ _cpp_lookup_with_hash (pfile, len, hash)
entry = entries[index];
entry->type = NT_VOID;
entry->flags = 0;
- entry->fe_value = 0;
entry->directive_index = 0;
entry->arg_index = 0;
entry->length = len;