Commit 7c314719 by Richard Kenner

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

From-SVN: r5835
parent c2b6b9a1
......@@ -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)));
......
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