Commit 126e5b0d by Jim Wilson

(store_constructor_field): Only call change_address if

bitpos is nonzero.

From-SVN: r11258
parent 03075c13
......@@ -3275,12 +3275,11 @@ store_constructor_field (target, bitsize, bitpos,
if (TREE_CODE (exp) == CONSTRUCTOR
&& (bitpos % BITS_PER_UNIT) == 0)
{
bitpos /= BITS_PER_UNIT;
store_constructor (exp,
change_address (target, VOIDmode,
plus_constant (XEXP (target, 0),
bitpos)),
cleared);
if (bitpos != 0)
target = change_address (target, VOIDmode,
plus_constant (XEXP (target, 0),
bitpos / BITS_PER_UNIT));
store_constructor (exp, target, cleared);
}
else
store_field (target, bitsize, bitpos, mode, exp,
......
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