From 126e5b0d250c6955ae27a0f8c65e1f0e254215df Mon Sep 17 00:00:00 2001 From: Jim Wilson Date: Tue, 13 Feb 1996 10:28:57 -0800 Subject: [PATCH] (store_constructor_field): Only call change_address if bitpos is nonzero. From-SVN: r11258 --- gcc/expr.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/gcc/expr.c b/gcc/expr.c index 342fa375135..79fb387afc0 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -3275,12 +3275,11 @@ store_constructor_field (target, bitsize, bitpos, if (TREE_CODE (exp) == CONSTRUCTOR && (bitpos % BITS_PER_UNIT) == 0) { - bitpos /= BITS_PER_UNIT; - store_constructor (exp, - change_address (target, VOIDmode, - plus_constant (XEXP (target, 0), - bitpos)), - cleared); + if (bitpos != 0) + target = change_address (target, VOIDmode, + plus_constant (XEXP (target, 0), + bitpos / BITS_PER_UNIT)); + store_constructor (exp, target, cleared); } else store_field (target, bitsize, bitpos, mode, exp, -- 2.30.2