aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/search.c
diff options
context:
space:
mode:
authorMark Mitchell <mmitchel@gcc.gnu.org>1999-09-09 06:17:13 +0000
committerMark Mitchell <mmitchel@gcc.gnu.org>1999-09-09 06:17:13 +0000
commite1b3e07d15a82f07afc3ebd6ecf4ee0334a90d65 (patch)
tree5953ca2b981b4fba376c0372f43a13e5ce7fa27d /gcc/cp/search.c
parentfc009f966c98317401b51127f59de4ad37bb7d19 (diff)
downloadgcc-e1b3e07d15a82f07afc3ebd6ecf4ee0334a90d65.zip
gcc-e1b3e07d15a82f07afc3ebd6ecf4ee0334a90d65.tar.gz
gcc-e1b3e07d15a82f07afc3ebd6ecf4ee0334a90d65.tar.bz2
cp-tree.h (scratch_tree_cons): Remove.
* cp-tree.h (scratch_tree_cons): Remove. * call.c: Replace all uses of expr_tree_cons, saveable_tree_cons, and perm_tree_cons with plain tree_cons. * class.c: Likewise. * decl.c: Likewise. * decl2.c: Likewise. * except.c: Likewise. * expr.c: Likewise. * init.c: Likewise. * lex.c: Likewise. * method.c: Likewise. * parse.y: Likewise. * pt.c: Likewise. * repo.c: Likewise. * rtti.c: Likewise. * search.c: Likewise. * typeck.c: Likewise. * parse.c: Regenerated. * tree.c (build_srcloc): Simplify. From-SVN: r29225
Diffstat (limited to 'gcc/cp/search.c')
-rw-r--r--gcc/cp/search.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/gcc/cp/search.c b/gcc/cp/search.c
index 6ce8494..818ab14 100644
--- a/gcc/cp/search.c
+++ b/gcc/cp/search.c
@@ -1333,14 +1333,12 @@ lookup_field_r (binfo, data)
/* This is the first time we noticed an ambiguity. Add
what we previously thought was a reasonable candidate
to the list. */
- lfi->ambiguous = scratch_tree_cons (NULL_TREE, lfi->rval,
- NULL_TREE);
+ lfi->ambiguous = tree_cons (NULL_TREE, lfi->rval, NULL_TREE);
TREE_TYPE (lfi->ambiguous) = error_mark_node;
}
/* Add the new value. */
- lfi->ambiguous = scratch_tree_cons (NULL_TREE, nval,
- lfi->ambiguous);
+ lfi->ambiguous = tree_cons (NULL_TREE, nval, lfi->ambiguous);
TREE_TYPE (lfi->ambiguous) = error_mark_node;
lfi->errstr = "request for member `%D' is ambiguous";
}
@@ -1484,7 +1482,7 @@ lookup_member (xbasetype, name, protect, want_type)
if (rval && is_overloaded_fn (rval))
{
- rval = scratch_tree_cons (basetype_path, rval, NULL_TREE);
+ rval = tree_cons (basetype_path, rval, NULL_TREE);
SET_BASELINK_P (rval);
}
@@ -1774,10 +1772,9 @@ get_virtuals_named_this_r (binfo, data)
idx = lookup_fnfields_here (BINFO_TYPE (binfo), gvnti->name);
if (idx >= 0)
gvnti->fields
- = scratch_tree_cons (binfo,
- TREE_VEC_ELT (CLASSTYPE_METHOD_VEC (type),
- idx),
- gvnti->fields);
+ = tree_cons (binfo,
+ TREE_VEC_ELT (CLASSTYPE_METHOD_VEC (type), idx),
+ gvnti->fields);
return NULL_TREE;
}
@@ -3150,8 +3147,6 @@ reinit_search_statistics ()
#endif /* GATHER_STATISTICS */
}
-#define scratch_tree_cons expr_tree_cons
-
static tree
add_conversions (binfo, data)
tree binfo;
@@ -3178,7 +3173,7 @@ add_conversions (binfo, data)
/* Make sure we don't already have this conversion. */
if (! IDENTIFIER_MARKED (name))
{
- *conversions = scratch_tree_cons (binfo, tmp, *conversions);
+ *conversions = tree_cons (binfo, tmp, *conversions);
IDENTIFIER_MARKED (name) = 1;
}
}