aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/parser.c
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2018-11-16 16:23:20 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2018-11-16 16:23:20 +0000
commit83044e4fcc7b3f7514eaa84b31f44608ae5fbaf1 (patch)
treea3f07d670b734365e15f1a42517b81d98d964cd6 /gcc/cp/parser.c
parent81292845971e30311b241bf63462f9bf8bfb23ad (diff)
downloadgcc-83044e4fcc7b3f7514eaa84b31f44608ae5fbaf1.zip
gcc-83044e4fcc7b3f7514eaa84b31f44608ae5fbaf1.tar.gz
gcc-83044e4fcc7b3f7514eaa84b31f44608ae5fbaf1.tar.bz2
Remove ovl_used, it is no longer needed
Remove ovl_used, it is no longer needed * cp-tree.h (OVL_USED_P): Delete. (lookup_keep): Delete. * friend.c (add_friend): Don't call it. * parser.c (lookup_literal_operator): Likewise. (cp_parser_primary_expression): Likewise. * semantics.c (perform_koenig_lookup): Likewise. * pt.c (tsubst_copy <OVERLOAD>): Don't assert OVL_USED_P. * tree.c (ovl_copy): Delete. (ovl_insert): Remove OVL_USED_P checks. (ovl_iterator::reveal_node): Likewise. (ovl_iterator::remove__node): Likewise. (ovl_used, lookup_keep): Delete. From-SVN: r266212
Diffstat (limited to 'gcc/cp/parser.c')
-rw-r--r--gcc/cp/parser.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/gcc/cp/parser.c b/gcc/cp/parser.c
index 99bd4dc..92a4f96 100644
--- a/gcc/cp/parser.c
+++ b/gcc/cp/parser.c
@@ -4294,11 +4294,7 @@ lookup_literal_operator (tree name, vec<tree, va_gc> *args)
work in presence of default arguments on the literal
operator parameters. */
&& parmtypes == void_list_node)
- {
- if (processing_template_decl)
- lookup_keep (decl);
- return decl;
- }
+ return decl;
}
}
@@ -5684,14 +5680,6 @@ cp_parser_primary_expression (cp_parser *parser,
}
}
- if (processing_template_decl)
- if (tree fns = maybe_get_fns (decl))
- /* It's too difficult to mark ths in all the places where
- we know for sure we need to keep the lookup, so do it
- now. The cost is extra GC to recycle the lookups
- resolved at parse time. */
- lookup_keep (fns);
-
decl = (finish_id_expression
(id_expression, decl, parser->scope,
idk,