From b90f141a9d681c533c209813a6aa3f6dfce01b90 Mon Sep 17 00:00:00 2001 From: Kazu Hirata Date: Tue, 15 Jul 2003 05:31:44 +0000 Subject: [PATCH] expr.c (expand_assignment): Remove an unused argument SUGGEST_REG. * 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 | 8 ++++++++ gcc/expr.c | 18 ++++++------------ gcc/expr.h | 2 +- gcc/function.c | 2 +- gcc/stmt.c | 4 ++-- 5 files changed, 18 insertions(+), 16 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4f904fd24eb..5fc6fee46a1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2003-07-15 Kazu Hirata + + * 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 PR debug/11098 diff --git a/gcc/expr.c b/gcc/expr.c index 80efb3f459d..a7f3a1cc8a9 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -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; } diff --git a/gcc/expr.h b/gcc/expr.h index ba84fd02ae8..9abea77872b 100644 --- a/gcc/expr.h +++ b/gcc/expr.h @@ -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. diff --git a/gcc/function.c b/gcc/function.c index c3f4dc604d4..61249953573 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -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; diff --git a/gcc/stmt.c b/gcc/stmt.c index a720691404f..e2b36b1aa64 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -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 (); } -- 2.30.2