From 8d8c9ba91becaf0c51be4668a7184afab15dfc02 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Thu, 4 Jul 1996 11:44:14 -0400 Subject: [PATCH] (get_inner_reference): Delete using alternate mode for bitfield; we don't make bitfields anymore if not needed. From-SVN: r12398 --- gcc/expr.c | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) 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; -- 2.30.2