diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1994-12-14 19:01:13 -0500 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1994-12-14 19:01:13 -0500 |
commit | 1b604ae412a7041fd69a9f24f5f41aab33e1456a (patch) | |
tree | 1dc7bdd492fa0682f62b9c80bff864de1d897ff5 | |
parent | a1eb0286add4ea8e0783882a3a404987843aefcc (diff) | |
download | gcc-1b604ae412a7041fd69a9f24f5f41aab33e1456a.zip gcc-1b604ae412a7041fd69a9f24f5f41aab33e1456a.tar.gz gcc-1b604ae412a7041fd69a9f24f5f41aab33e1456a.tar.bz2 |
(get_inner_reference): Use EXACT_DIV_EXPR to compute byte offset from
bit offset.
From-SVN: r8654
-rw-r--r-- | gcc/expr.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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))); } } |