(store_constructor): Handle non-zero array lower bound.
From-SVN: r5835
This commit is contained in:
parent
c2b6b9a1d9
commit
7c314719ba
|
@ -2894,7 +2894,7 @@ store_constructor (exp, target)
|
|||
else
|
||||
{
|
||||
if (index != 0)
|
||||
bitpos = (TREE_INT_CST_LOW (index)
|
||||
bitpos = ((TREE_INT_CST_LOW (index) - minelt)
|
||||
* TREE_INT_CST_LOW (TYPE_SIZE (elttype)));
|
||||
else
|
||||
bitpos = (i * TREE_INT_CST_LOW (TYPE_SIZE (elttype)));
|
||||
|
|
Loading…
Reference in New Issue