Commit d944c82d by Steven Bosscher

c-common.c (c_estimate_num_insns_1): Don't handle METHOD_CALL_EXPR.

2003-07-17  Steven Bosscher  <steven@gcc.gnu.org>

	* c-common.c (c_estimate_num_insns_1): Don't handle
	METHOD_CALL_EXPR.
	* expr.c (safe_from_p): Likewise.
	* gengtype.c (adjust_field_tree_exp): Likewise.
	* stmt.c (warn_if_unused_value): Likewise
	* tree.c (first_rtl_op): Likewise.
	* tree.def: Don't define METHOD_CALL_EXPR.
	* java/lang.c (java_estimate_num_insns_1): Don't handle
	METHOD_CALL_EXPR.

From-SVN: r69511
parent d424f7ff
2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
* c-common.c (c_estimate_num_insns_1): Don't handle
METHOD_CALL_EXPR.
* expr.c (safe_from_p): Likewise.
* gengtype.c (adjust_field_tree_exp): Likewise.
* stmt.c (warn_if_unused_value): Likewise
* tree.c (first_rtl_op): Likewise.
* tree.def: Don't define METHOD_CALL_EXPR.
* java/lang.c (java_estimate_num_insns_1): Don't handle
METHOD_CALL_EXPR.
2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
PR other/11466
......
......@@ -5996,7 +5996,6 @@ c_estimate_num_insns_1 (tree *tp, int *walk_subtrees, void *data)
case ROUND_MOD_EXPR:
case RDIV_EXPR:
case CALL_EXPR:
case METHOD_CALL_EXPR:
*count += 10;
break;
/* Various containers that will produce no code themselves. */
......
......@@ -6263,10 +6263,6 @@ safe_from_p (rtx x, tree exp, int top_p)
part of the expression. */
return safe_from_p (x, TREE_OPERAND (exp, 1), 0);
case METHOD_CALL_EXPR:
/* This takes an rtx argument, but shouldn't appear here. */
abort ();
default:
break;
}
......
......@@ -643,7 +643,6 @@ adjust_field_tree_exp (type_p t, options_p opt ATTRIBUTE_UNUSED)
{ "GOTO_SUBROUTINE_EXPR", 0, 2 },
{ "RTL_EXPR", 0, 2 },
{ "WITH_CLEANUP_EXPR", 2, 1 },
{ "METHOD_CALL_EXPR", 3, 1 }
};
if (t->kind != TYPE_ARRAY)
......
......@@ -1127,7 +1127,6 @@ java_estimate_num_insns_1 (tree *tp, int *walk_subtrees, void *data)
case ROUND_MOD_EXPR:
case RDIV_EXPR:
case CALL_EXPR:
case METHOD_CALL_EXPR:
case NEW_ARRAY_EXPR:
case NEW_ANONYMOUS_ARRAY_EXPR:
......
......@@ -2225,7 +2225,6 @@ warn_if_unused_value (tree exp)
case INIT_EXPR:
case TARGET_EXPR:
case CALL_EXPR:
case METHOD_CALL_EXPR:
case RTL_EXPR:
case TRY_CATCH_EXPR:
case WITH_CLEANUP_EXPR:
......
......@@ -1461,8 +1461,6 @@ first_rtl_op (enum tree_code code)
return 0;
case WITH_CLEANUP_EXPR:
return 2;
case METHOD_CALL_EXPR:
return 3;
default:
return TREE_CODE_LENGTH (code);
}
......
......@@ -474,11 +474,6 @@ DEFTREECODE (BIND_EXPR, "bind_expr", 'e', 3)
made out of a chain of TREE_LIST nodes. */
DEFTREECODE (CALL_EXPR, "call_expr", 'e', 2)
/* Call a method. Operand 0 is the method, whose type is a METHOD_TYPE.
Operand 1 is the expression for "self".
Operand 2 is the list of explicit arguments. */
DEFTREECODE (METHOD_CALL_EXPR, "method_call_expr", 'e', 4)
/* Specify a value to compute along with its corresponding cleanup.
Operand 0 argument is an expression whose value needs a cleanup.
Operand 1 is the cleanup expression for the object.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment