From: Richard Kenner Date: Thu, 15 Dec 1994 00:01:13 +0000 (-0500) Subject: (get_inner_reference): Use EXACT_DIV_EXPR to compute byte offset from X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b604ae412a7041fd69a9f24f5f41aab33e1456a;p=gcc.git (get_inner_reference): Use EXACT_DIV_EXPR to compute byte offset from bit offset. From-SVN: r8654 --- diff --git a/gcc/expr.c b/gcc/expr.c index fc6223e9a73..dbdbaab7897 100644 --- a/gcc/expr.c +++ b/gcc/expr.c @@ -3547,7 +3547,7 @@ get_inner_reference (exp, pbitsize, pbitpos, poffset, pmode, *pbitpos += TREE_INT_CST_LOW (constant); offset = size_binop (PLUS_EXPR, offset, - size_binop (FLOOR_DIV_EXPR, var, + size_binop (EXACT_DIV_EXPR, var, size_int (BITS_PER_UNIT))); } else if (TREE_CODE (pos) == INTEGER_CST) @@ -3557,7 +3557,7 @@ get_inner_reference (exp, pbitsize, pbitpos, poffset, pmode, /* Assume here that the offset is a multiple of a unit. If not, there should be an explicitly added constant. */ offset = size_binop (PLUS_EXPR, offset, - size_binop (FLOOR_DIV_EXPR, pos, + size_binop (EXACT_DIV_EXPR, pos, size_int (BITS_PER_UNIT))); } }