From 7c314719ba9e1607b7638524184d1aad7fd85944 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 20 Oct 1993 17:39:45 -0400 Subject: [PATCH] (store_constructor): Handle non-zero array lower bound. From-SVN: r5835 --- gcc/expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/expr.c b/gcc/expr.c index 59ee991a5a6..6c54d65689a 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -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)));