Commit 3e073e72 by Richard Kenner

(expand_increment): If pre-incrementing a promoted variable, don't

adjust OP0 since the result won't be used.

From-SVN: r7655
parent e33477be
...@@ -8042,7 +8042,12 @@ expand_increment (exp, post) ...@@ -8042,7 +8042,12 @@ expand_increment (exp, post)
shared (it was made by the expand_expr call above). */ shared (it was made by the expand_expr call above). */
if (GET_CODE (op0) == SUBREG && SUBREG_PROMOTED_VAR_P (op0)) if (GET_CODE (op0) == SUBREG && SUBREG_PROMOTED_VAR_P (op0))
SUBREG_REG (op0) = copy_to_reg (SUBREG_REG (op0)); {
if (post)
SUBREG_REG (op0) = copy_to_reg (SUBREG_REG (op0));
else
bad_subreg = 1;
}
else if (GET_CODE (op0) == SUBREG else if (GET_CODE (op0) == SUBREG
&& GET_MODE_BITSIZE (GET_MODE (op0)) < BITS_PER_WORD) && GET_MODE_BITSIZE (GET_MODE (op0)) < BITS_PER_WORD)
{ {
......
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