aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@yorick.cygnus.com>1997-11-13 20:01:21 +0000
committerJason Merrill <jason@gcc.gnu.org>1997-11-13 15:01:21 -0500
commit9babbf20ae7c7c9cb574cfb803eaf0437a505930 (patch)
tree43c9fadeeef5787cd80f8ce1b91cdbfaa3fa1e71
parentfac138ead143cd41d51aa3f782c3bc6c104235cf (diff)
downloadgcc-9babbf20ae7c7c9cb574cfb803eaf0437a505930.zip
gcc-9babbf20ae7c7c9cb574cfb803eaf0437a505930.tar.gz
gcc-9babbf20ae7c7c9cb574cfb803eaf0437a505930.tar.bz2
removed unused parm to build_new_function_call
From-SVN: r16464
-rw-r--r--gcc/cp/ChangeLog3
-rw-r--r--gcc/cp/call.c10
-rw-r--r--gcc/cp/cp-tree.h2
-rw-r--r--gcc/cp/typeck.c2
4 files changed, 10 insertions, 7 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog
index 270602e..a94f587 100644
--- a/gcc/cp/ChangeLog
+++ b/gcc/cp/ChangeLog
@@ -1,5 +1,8 @@
Thu Nov 13 01:52:36 1997 Jason Merrill <jason@yorick.cygnus.com>
+ * call.c (build_new_function_call): Remove unused 'obj' parm.
+ * cp-tree.h, typeck.c: Adjust.
+
* init.c (build_new): Make the cleanup last longer.
(expand_vec_init): Call do_pending_stack_adjust.
diff --git a/gcc/cp/call.c b/gcc/cp/call.c
index a1f22f8..c0fdef1 100644
--- a/gcc/cp/call.c
+++ b/gcc/cp/call.c
@@ -4479,8 +4479,8 @@ resolve_args (args)
}
tree
-build_new_function_call (fn, args, obj)
- tree fn, args, obj;
+build_new_function_call (fn, args)
+ tree fn, args;
{
struct z_candidate *candidates = 0, *cand;
tree explicit_targs = NULL_TREE;
@@ -4493,7 +4493,7 @@ build_new_function_call (fn, args, obj)
template_only = 1;
}
- if (obj == NULL_TREE && really_overloaded_fn (fn))
+ if (really_overloaded_fn (fn))
{
tree t;
tree templates = NULL_TREE;
@@ -4721,7 +4721,7 @@ build_new_op (code, flags, arg1, arg2, arg3)
arglist = scratch_tree_cons (NULL_TREE, arg2, arg3);
if (flags & LOOKUP_GLOBAL)
return build_new_function_call
- (lookup_name_nonclass (fnname), arglist, NULL_TREE);
+ (lookup_name_nonclass (fnname), arglist);
/* FIXME */
rval = build_method_call
@@ -4746,7 +4746,7 @@ build_new_op (code, flags, arg1, arg2, arg3)
if (flags & LOOKUP_GLOBAL)
return build_new_function_call
(lookup_name_nonclass (fnname),
- build_scratch_list (NULL_TREE, arg1), NULL_TREE);
+ build_scratch_list (NULL_TREE, arg1));
arglist = scratch_tree_cons (NULL_TREE, arg1, build_scratch_list (NULL_TREE, arg2));
diff --git a/gcc/cp/cp-tree.h b/gcc/cp/cp-tree.h
index 06a8c64..b931a5c 100644
--- a/gcc/cp/cp-tree.h
+++ b/gcc/cp/cp-tree.h
@@ -1955,7 +1955,7 @@ extern tree build_overload_call PROTO((tree, tree, int));
extern int null_ptr_cst_p PROTO((tree));
extern tree type_decays_to PROTO((tree));
extern tree build_user_type_conversion PROTO((tree, tree, int));
-extern tree build_new_function_call PROTO((tree, tree, tree));
+extern tree build_new_function_call PROTO((tree, tree));
extern tree build_new_op PROTO((enum tree_code, int, tree, tree, tree));
extern int can_convert PROTO((tree, tree));
extern int can_convert_arg PROTO((tree, tree, tree));
diff --git a/gcc/cp/typeck.c b/gcc/cp/typeck.c
index 54f8c83..39a7120 100644
--- a/gcc/cp/typeck.c
+++ b/gcc/cp/typeck.c
@@ -2426,7 +2426,7 @@ build_x_function_call (function, params, decl)
/* Put back explicit template arguments, if any. */
if (template_id)
function = template_id;
- return build_new_function_call (function, params, NULL_TREE);
+ return build_new_function_call (function, params);
}
if (TREE_CODE (val) == TEMPLATE_DECL)