]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c-common.c (c_estimate_num_insns_1): Don't handle METHOD_CALL_EXPR.
authorSteven Bosscher <steven@gcc.gnu.org>
Thu, 17 Jul 2003 13:25:21 +0000 (13:25 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Thu, 17 Jul 2003 13:25:21 +0000 (13:25 +0000)
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

gcc/ChangeLog
gcc/c-common.c
gcc/expr.c
gcc/gengtype.c
gcc/java/lang.c
gcc/stmt.c
gcc/tree.c
gcc/tree.def

index 0495a41c0b29622151b8d38e3e494da0bc19419c..5cdf4b67b2f77768e47673d0e5bd19d1a19505cd 100644 (file)
@@ -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
index ba0138db0bb9a3c9c38bb25f3561a36d69b24314..09caa0fb7fd6da447dbdbb7a18b40992ac3ad0dc 100644 (file)
@@ -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.  */
index 5dc424d0c61d02e5c5c7a23102392d65766a858a..ee181a83e71425de64af5f66070aa38268c51d0c 100644 (file)
@@ -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;
        }
index 79e763cc7e1775c113f79fbe44fac661191346fd..406aed319c9f04081faebf945b169608ca83c7b0 100644 (file)
@@ -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)
index 1f9470627fae995fc324f7bbd18fff27df0b05bc..6bddf38335d9d3bae9b47f282bde49f34791ba26 100644 (file)
@@ -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:
index e2b36b1aa64286dc907278d8faaf3c9bf4a1f586..09c282de6c6d778d41c03edfa1dd14f879c12291 100644 (file)
@@ -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:
index b497c39acf84a6828bd2ffac6aa4f40e5790714d..c9a7bcf72401ccbf2d42e2893ef4ddd1a7e3ccbd 100644 (file)
@@ -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);
     }
index a62206f33fbaca6f5495c062c0e64751497b31fa..056f5d095be453544aaaecbe5edf8eff2d3167e3 100644 (file)
@@ -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.