]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
expr.c (expand_assignment): Remove an unused argument SUGGEST_REG.
authorKazu Hirata <kazu@cs.umass.edu>
Tue, 15 Jul 2003 05:31:44 +0000 (05:31 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Tue, 15 Jul 2003 05:31:44 +0000 (05:31 +0000)
* expr.c (expand_assignment): Remove an unused argument
SUGGEST_REG.
* expr.h: Update the prototype.
* function.c: Update the callers.
* stmt.c: Likewise.

From-SVN: r69379

gcc/ChangeLog
gcc/expr.c
gcc/expr.h
gcc/function.c
gcc/stmt.c

index 4f904fd24eb0a7cd4c4b5e20a171a31e5b83934c..5fc6fee46a177e28140acf1ae831ca88b8dd70a6 100644 (file)
@@ -1,3 +1,11 @@
+2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * expr.c (expand_assignment): Remove an unused argument
+       SUGGEST_REG.
+       * expr.h: Update the prototype.
+       * function.c: Update the callers.
+       * stmt.c: Likewise.
+
 2003-07-14  Mark Mitchell  <mark@codesourcery.com>
 
        PR debug/11098
index 80efb3f459d60b2305bd3c6e160cd9e30c40dd69..a7f3a1cc8a952b5395ea8a8df3cb1f68948d639d 100644 (file)
@@ -4128,16 +4128,10 @@ get_subtarget (rtx x)
    If WANT_VALUE is nonzero, return an rtx for the value of TO.
    (This may contain a QUEUED rtx;
    if the value is constant, this rtx is a constant.)
-   Otherwise, the returned value is NULL_RTX.
-
-   SUGGEST_REG is no longer actually used.
-   It used to mean, copy the value through a register
-   and return that register, if that is possible.
-   We now use WANT_VALUE to decide whether to do this.  */
+   Otherwise, the returned value is NULL_RTX.  */
 
 rtx
-expand_assignment (tree to, tree from, int want_value,
-                  int suggest_reg ATTRIBUTE_UNUSED)
+expand_assignment (tree to, tree from, int want_value)
 {
   rtx to_rtx = 0;
   rtx result;
@@ -9144,7 +9138,7 @@ expand_expr (tree exp, rtx target, enum machine_mode tmode, enum expand_modifier
        tree lhs = TREE_OPERAND (exp, 0);
        tree rhs = TREE_OPERAND (exp, 1);
 
-       temp = expand_assignment (lhs, rhs, ! ignore, original_target != 0);
+       temp = expand_assignment (lhs, rhs, ! ignore);
        return temp;
       }
 
@@ -9189,13 +9183,13 @@ expand_expr (tree exp, rtx target, enum machine_mode tmode, enum expand_modifier
                                             (TREE_CODE (rhs) == BIT_IOR_EXPR
                                              ? integer_one_node
                                              : integer_zero_node)),
-                              0, 0);
+                              0);
            do_pending_stack_adjust ();
            emit_label (label);
            return const0_rtx;
          }
 
-       temp = expand_assignment (lhs, rhs, ! ignore, original_target != 0);
+       temp = expand_assignment (lhs, rhs, ! ignore);
 
        return temp;
       }
@@ -9798,7 +9792,7 @@ expand_increment (tree exp, int post, int ignore)
          incremented = TREE_OPERAND (incremented, 0);
        }
 
-      temp = expand_assignment (incremented, newexp, ! post && ! ignore , 0);
+      temp = expand_assignment (incremented, newexp, ! post && ! ignore);
       return post ? op0 : temp;
     }
 
index ba84fd02ae816806a42b98ed176e4cb6df5460e4..9abea77872b90ceed289632a20c1b63efe7f445f 100644 (file)
@@ -493,7 +493,7 @@ extern void emit_push_insn (rtx, enum machine_mode, tree, rtx, unsigned int,
                            int, rtx, int, rtx, rtx, int, rtx);
 
 /* Expand an assignment that stores the value of FROM into TO.  */
-extern rtx expand_assignment (tree, tree, int, int);
+extern rtx expand_assignment (tree, tree, int);
 
 /* Generate code for computing expression EXP,
    and storing the value into TARGET.
index c3f4dc604d47bef434e82339d2be32033943c726..612499535739dd063fbca288057334a64d93e013 100644 (file)
@@ -4832,7 +4832,7 @@ assign_parms (tree fndecl)
              /* TREE_USED gets set erroneously during expand_assignment.  */
              save_tree_used = TREE_USED (parm);
              expand_assignment (parm,
-                                make_tree (nominal_type, tempreg), 0, 0);
+                                make_tree (nominal_type, tempreg), 0);
              TREE_USED (parm) = save_tree_used;
              conversion_insns = get_insns ();
              did_conversion = 1;
index a720691404fc670e89f20869af9635781ddb520f..e2b36b1aa64286dc907278d8faaf3c9bf4a1f586 100644 (file)
@@ -3984,13 +3984,13 @@ expand_decl_init (tree decl)
       if (code == INTEGER_TYPE || code == REAL_TYPE || code == ENUMERAL_TYPE
          || code == POINTER_TYPE || code == REFERENCE_TYPE)
        expand_assignment (decl, convert (TREE_TYPE (decl), integer_zero_node),
-                          0, 0);
+                          0);
       emit_queue ();
     }
   else if (DECL_INITIAL (decl) && TREE_CODE (DECL_INITIAL (decl)) != TREE_LIST)
     {
       emit_line_note (DECL_SOURCE_LOCATION (decl));
-      expand_assignment (decl, DECL_INITIAL (decl), 0, 0);
+      expand_assignment (decl, DECL_INITIAL (decl), 0);
       emit_queue ();
     }