diff options
Diffstat (limited to 'gcc')
-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 0495a41c0b2..5cdf4b67b2f 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 ba0138db0bb..09caa0fb7fd 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. */ diff --git a/gcc/expr.c b/gcc/expr.c index 5dc424d0c61..ee181a83e71 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -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 79e763cc7e1..406aed319c9 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 1f9470627fa..6bddf38335d 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: diff --git a/gcc/stmt.c b/gcc/stmt.c index e2b36b1aa64..09c282de6c6 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -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: diff --git a/gcc/tree.c b/gcc/tree.c index b497c39acf8..c9a7bcf7240 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -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 a62206f33fb..056f5d095be 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. |