summaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authorkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-14 21:07:12 +0000
committerkenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4>2003-04-14 21:07:12 +0000
commit84130727aea4448f59c052726e81dc56024e5a81 (patch)
tree652df28dade21191f3be003ebe664b78678e4891 /gcc/emit-rtl.c
parent6248e34545032ef1f4810a6ffbcb77fd0bfb3f34 (diff)
downloadgcc-84130727aea4448f59c052726e81dc56024e5a81.tar.gz
* expr.c (highest_pow2_factor): Return unsigned.
* expr.h (offset_address): Likewise. * emit-rtl.c (offset_address): POW2 argument now unsigned. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65589 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r--gcc/emit-rtl.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c
index 7b1d2ba7fb8..058100c0772 100644
--- a/gcc/emit-rtl.c
+++ b/gcc/emit-rtl.c
@@ -2314,7 +2314,7 @@ rtx
offset_address (memref, offset, pow2)
rtx memref;
rtx offset;
- HOST_WIDE_INT pow2;
+ unsigned HOST_WIDE_INT pow2;
{
rtx new, addr = XEXP (memref, 0);
@@ -2342,8 +2342,7 @@ offset_address (memref, offset, pow2)
we don't know. */
MEM_ATTRS (new)
= get_mem_attrs (MEM_ALIAS_SET (memref), MEM_EXPR (memref), 0, 0,
- MIN (MEM_ALIGN (memref),
- (unsigned HOST_WIDE_INT) pow2 * BITS_PER_UNIT),
+ MIN (MEM_ALIGN (memref), pow2 * BITS_PER_UNIT),
GET_MODE (new));
return new;
}