mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-03-08 19:37:43 +08:00
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
This commit is contained in:
parent
89a68bb98d
commit
b90f141a9d
@ -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
|
||||
|
18
gcc/expr.c
18
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;
|
||||
}
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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;
|
||||
|
@ -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 ();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user