diff options
author | Steven Bosscher <steven@gcc.gnu.org> | 2003-07-17 13:25:21 +0000 |
---|---|---|
committer | Steven Bosscher <steven@gcc.gnu.org> | 2003-07-17 13:25:21 +0000 |
commit | d944c82dce5b0d8848078c95f2be0a45b6909ed9 (patch) | |
tree | 5f3f6a8759b6ccdf197cdaa3fee3d777aa69cbe7 | |
parent | d424f7ff66c44c4c2ed5a41e0af6294c2640bd69 (diff) | |
download | gcc-d944c82dce5b0d8848078c95f2be0a45b6909ed9.zip gcc-d944c82dce5b0d8848078c95f2be0a45b6909ed9.tar.gz gcc-d944c82dce5b0d8848078c95f2be0a45b6909ed9.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 12 | ||||
-rw-r--r-- | gcc/c-common.c | 1 | ||||
-rw-r--r-- | gcc/expr.c | 4 | ||||
-rw-r--r-- | gcc/gengtype.c | 1 | ||||
-rw-r--r-- | gcc/java/lang.c | 1 | ||||
-rw-r--r-- | gcc/stmt.c | 1 | ||||
-rw-r--r-- | gcc/tree.c | 2 | ||||
-rw-r--r-- | gcc/tree.def | 5 |
8 files changed, 12 insertions, 15 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 0495a41..5cdf4b6 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,15 @@ +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 diff --git a/gcc/c-common.c b/gcc/c-common.c index ba0138d..09caa0fb 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -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; } diff --git a/gcc/gengtype.c b/gcc/gengtype.c index 79e763c..406aed3 100644 --- a/gcc/gengtype.c +++ b/gcc/gengtype.c @@ -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) diff --git a/gcc/java/lang.c b/gcc/java/lang.c index 1f94706..6bddf38 100644 --- a/gcc/java/lang.c +++ b/gcc/java/lang.c @@ -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); } diff --git a/gcc/tree.def b/gcc/tree.def index a62206f..056f5d0 100644 --- a/gcc/tree.def +++ b/gcc/tree.def @@ -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. |