diff options
author | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-09-09 06:17:13 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-09-09 06:17:13 +0000 |
commit | e1b3e07d15a82f07afc3ebd6ecf4ee0334a90d65 (patch) | |
tree | 5953ca2b981b4fba376c0372f43a13e5ce7fa27d /gcc/cp/class.c | |
parent | fc009f966c98317401b51127f59de4ad37bb7d19 (diff) | |
download | gcc-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/class.c')
-rw-r--r-- | gcc/cp/class.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c index ab417f5..2c6a03f 100644 --- a/gcc/cp/class.c +++ b/gcc/cp/class.c @@ -399,8 +399,8 @@ build_vtable_entry (delta, pfn) else { extern int flag_huge_objects; - tree elems = expr_tree_cons (NULL_TREE, delta, - expr_tree_cons (NULL_TREE, integer_zero_node, + tree elems = tree_cons (NULL_TREE, delta, + tree_cons (NULL_TREE, integer_zero_node, build_expr_list (NULL_TREE, pfn))); tree entry = build (CONSTRUCTOR, vtable_entry_type, NULL_TREE, elems); @@ -3358,7 +3358,7 @@ finish_struct_1 (t) else fields = TREE_CHAIN (x); - access_decls = scratch_tree_cons (NULL_TREE, x, access_decls); + access_decls = tree_cons (NULL_TREE, x, access_decls); continue; } @@ -4820,7 +4820,7 @@ resolve_address_of_overloaded_function (target_type, fntype = build_pointer_type (fntype); if (can_convert_arg (target_type, fntype, fn)) - matches = scratch_tree_cons (fn, NULL_TREE, matches); + matches = tree_cons (fn, NULL_TREE, matches); } } @@ -4879,7 +4879,7 @@ resolve_address_of_overloaded_function (target_type, else if (!is_reference) instantiation_type = build_pointer_type (instantiation_type); if (can_convert_arg (target_type, instantiation_type, instantiation)) - matches = scratch_tree_cons (instantiation, fn, matches); + matches = tree_cons (instantiation, fn, matches); } /* Now, remove all but the most specialized of the matches. */ @@ -4889,7 +4889,7 @@ resolve_address_of_overloaded_function (target_type, explicit_targs); if (match != error_mark_node) - matches = scratch_tree_cons (match, NULL_TREE, NULL_TREE); + matches = tree_cons (match, NULL_TREE, NULL_TREE); } } @@ -4907,8 +4907,8 @@ resolve_address_of_overloaded_function (target_type, TREE_VALUE slots, so we cons one up here (we're losing anyway, so why be clever?). */ for (; overload; overload = OVL_NEXT (overload)) - matches = scratch_tree_cons (NULL_TREE, OVL_CURRENT (overload), - matches); + matches = tree_cons (NULL_TREE, OVL_CURRENT (overload), + matches); print_candidates (matches); } |