From: Richard Kenner Date: Thu, 4 Jul 1996 15:44:14 +0000 (-0400) Subject: (get_inner_reference): Delete using alternate mode for bitfield; we X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d8c9ba91becaf0c51be4668a7184afab15dfc02;p=gcc.git (get_inner_reference): Delete using alternate mode for bitfield; we don't make bitfields anymore if not needed. From-SVN: r12398 --- diff --git a/gcc/expr.c b/gcc/expr.c index 09eff9072b4..09fc824c092 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -4240,11 +4240,9 @@ get_inner_reference (exp, pbitsize, pbitpos, poffset, pmode, constant = pos, var = integer_zero_node; *pbitpos += TREE_INT_CST_LOW (constant); - - if (var) - offset = size_binop (PLUS_EXPR, offset, - size_binop (EXACT_DIV_EXPR, var, - size_int (BITS_PER_UNIT))); + offset = size_binop (PLUS_EXPR, offset, + size_binop (EXACT_DIV_EXPR, var, + size_int (BITS_PER_UNIT))); } else if (TREE_CODE (exp) == ARRAY_REF) @@ -4296,20 +4294,6 @@ get_inner_reference (exp, pbitsize, pbitpos, poffset, pmode, exp = TREE_OPERAND (exp, 0); } - /* If this was a bit-field, see if there is a mode that allows direct - access in case EXP is in memory. */ - if (mode == VOIDmode && *pbitsize != 0 && *pbitpos % *pbitsize == 0) - { - mode = mode_for_size (*pbitsize, - (TYPE_MODE (TREE_TYPE (orig_exp)) == BLKmode - ? MODE_INT - : GET_MODE_CLASS (TYPE_MODE - (TREE_TYPE (orig_exp)))), - 0); - if (mode == BLKmode) - mode = VOIDmode; - } - if (integer_zerop (offset)) offset = 0;