Commit 3ac1a319 by Steve Ellcey Committed by Steve Ellcey

* expr.c (expand_expr): Call promote_mode to set unsignedp.

From-SVN: r63796
parent 23cae84f
2003-03-04 Steve Ellcey <sje@cup.hp.com>
* expr.c (expand_expr): Call promote_mode to set unsignedp.
2003-03-04 Daniel Jacobowitz <drow@mvista.com> 2003-03-04 Daniel Jacobowitz <drow@mvista.com>
* configure.in: Don't always define TARGET_SYSTEM_ROOT. * configure.in: Don't always define TARGET_SYSTEM_ROOT.
......
...@@ -6883,12 +6883,12 @@ expand_expr (exp, target, tmode, modifier) ...@@ -6883,12 +6883,12 @@ expand_expr (exp, target, tmode, modifier)
/* If the mode of TEMP does not match that of the expression, it /* If the mode of TEMP does not match that of the expression, it
must be a promoted value. We pass store_expr a SUBREG of the must be a promoted value. We pass store_expr a SUBREG of the
wanted mode but mark it so that we know that it was already wanted mode but mark it so that we know that it was already
extended. Note that `unsignedp' was modified above in extended. */
this case. */
if (GET_CODE (temp) == REG && GET_MODE (temp) != mode) if (GET_CODE (temp) == REG && GET_MODE (temp) != mode)
{ {
temp = gen_lowpart_SUBREG (mode, SAVE_EXPR_RTL (exp)); temp = gen_lowpart_SUBREG (mode, SAVE_EXPR_RTL (exp));
promote_mode (type, mode, &unsignedp, 0);
SUBREG_PROMOTED_VAR_P (temp) = 1; SUBREG_PROMOTED_VAR_P (temp) = 1;
SUBREG_PROMOTED_UNSIGNED_SET (temp, unsignedp); SUBREG_PROMOTED_UNSIGNED_SET (temp, unsignedp);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment