(store_constructor): Handle non-zero array lower bound.

From-SVN: r5835
This commit is contained in:
Richard Kenner 1993-10-20 17:39:45 -04:00
parent c2b6b9a1d9
commit 7c314719ba
1 changed files with 1 additions and 1 deletions

View File

@ -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)));