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