diff options
author | Jason Merrill <jason@gcc.gnu.org> | 1997-10-14 14:59:03 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 1997-10-14 14:59:03 -0400 |
commit | e66d884e7b29d16a098c881bc8b577f2b39d3ca6 (patch) | |
tree | e3025732f5c9bd1333870ea5379c4beaab725a30 /gcc/cp/method.c | |
parent | 22ef8a131aff4c58840adca891b573f9023b57ea (diff) | |
download | gcc-e66d884e7b29d16a098c881bc8b577f2b39d3ca6.zip gcc-e66d884e7b29d16a098c881bc8b577f2b39d3ca6.tar.gz gcc-e66d884e7b29d16a098c881bc8b577f2b39d3ca6.tar.bz2 |
cp-tree.h (scratchalloc, [...]): Define as macros for now.
* cp-tree.h (scratchalloc, build_scratch_list, make_scratch_vec,
scratch_tree_cons): Define as macros for now.
* call.c, class.c, cvt.c, decl.c, decl2.c, except.c, expr.c, init.c,
lex.c, method.c, parse.y, pt.c, rtti.c, search.c, tree.c, typeck.c,
typeck2.c: Use them and the expression_obstack variants.
From-SVN: r15900
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r-- | gcc/cp/method.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 6b77e78..3dc46d0 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -1375,7 +1375,7 @@ build_opfncall (code, flags, xarg1, xarg2, arg3) case VEC_NEW_EXPR: case NEW_EXPR: { - tree args = tree_cons (NULL_TREE, xarg2, arg3); + tree args = expr_tree_cons (NULL_TREE, xarg2, arg3); fnname = ansi_opname[(int) code]; if (flags & LOOKUP_GLOBAL) return build_overload_call (fnname, args, flags & LOOKUP_COMPLAIN); @@ -1401,7 +1401,7 @@ build_opfncall (code, flags, xarg1, xarg2, arg3) fnname = ansi_opname[(int) code]; if (flags & LOOKUP_GLOBAL) return build_overload_call (fnname, - build_tree_list (NULL_TREE, xarg1), + build_expr_list (NULL_TREE, xarg1), flags & LOOKUP_COMPLAIN); arg1 = TREE_TYPE (xarg1); @@ -1425,8 +1425,8 @@ build_opfncall (code, flags, xarg1, xarg2, arg3) (build_indirect_ref (build1 (NOP_EXPR, arg1, error_mark_node), NULL_PTR), - fnname, tree_cons (NULL_TREE, xarg1, - build_tree_list (NULL_TREE, xarg2)), + fnname, expr_tree_cons (NULL_TREE, xarg1, + build_expr_list (NULL_TREE, xarg2)), NULL_TREE, flags); #if 0 /* This can happen when operator delete is protected. */ @@ -1604,25 +1604,25 @@ build_opfncall (code, flags, xarg1, xarg2, arg3) } else if (code == COND_EXPR) { - parms = tree_cons (NULL_TREE, xarg2, build_tree_list (NULL_TREE, arg3)); + parms = expr_tree_cons (NULL_TREE, xarg2, build_expr_list (NULL_TREE, arg3)); rval = build_method_call (xarg1, fnname, parms, NULL_TREE, flags); } else if (code == METHOD_CALL_EXPR) { /* must be a member function. */ - parms = tree_cons (NULL_TREE, xarg2, arg3); + parms = expr_tree_cons (NULL_TREE, xarg2, arg3); return build_method_call (xarg1, fnname, parms, NULL_TREE, LOOKUP_NORMAL); } else if (fields1) { - parms = build_tree_list (NULL_TREE, xarg2); + parms = build_expr_list (NULL_TREE, xarg2); rval = build_method_call (xarg1, fnname, parms, NULL_TREE, flags); } else { - parms = tree_cons (NULL_TREE, xarg1, - build_tree_list (NULL_TREE, xarg2)); + parms = expr_tree_cons (NULL_TREE, xarg1, + build_expr_list (NULL_TREE, xarg2)); rval = build_overload_call (fnname, parms, flags); } @@ -1919,9 +1919,9 @@ emit_thunk (thunk_fndecl) t = build_int_2 (delta, -1 * (delta < 0)); TREE_TYPE (t) = signed_type (sizetype); t = fold (build (PLUS_EXPR, TREE_TYPE (a), a, t)); - t = tree_cons (NULL_TREE, t, NULL_TREE); + t = expr_tree_cons (NULL_TREE, t, NULL_TREE); for (a = TREE_CHAIN (a); a; a = TREE_CHAIN (a)) - t = tree_cons (NULL_TREE, a, t); + t = expr_tree_cons (NULL_TREE, a, t); t = nreverse (t); t = build_call (function, TREE_TYPE (TREE_TYPE (function)), t); c_expand_return (t); @@ -2102,7 +2102,7 @@ do_build_assign_ref (fndecl) CONV_IMPLICIT|CONV_CONST, LOOKUP_COMPLAIN, NULL_TREE); p = convert_from_reference (p); p = build_member_call (basetype, ansi_opname [MODIFY_EXPR], - build_tree_list (NULL_TREE, p)); + build_expr_list (NULL_TREE, p)); expand_expr_stmt (p); } for (; fields; fields = TREE_CHAIN (fields)) |