aboutsummaryrefslogtreecommitdiff
path: root/gcc/emit-rtl.c
diff options
context:
space:
mode:
authorOlivier Hainque <hainque@act-europe.fr>2003-04-14 23:07:12 +0200
committerRichard Kenner <kenner@gcc.gnu.org>2003-04-14 17:07:12 -0400
commit9ceca3020a62d208756ff281a189ce9f955fbc80 (patch)
tree652df28dade21191f3be003ebe664b78678e4891 /gcc/emit-rtl.c
parent712b7a052fc05a2373ed40c1fd13b3cfb0e7df62 (diff)
downloadgcc-9ceca3020a62d208756ff281a189ce9f955fbc80.zip
gcc-9ceca3020a62d208756ff281a189ce9f955fbc80.tar.gz
gcc-9ceca3020a62d208756ff281a189ce9f955fbc80.tar.bz2
expr.c (highest_pow2_factor): Return unsigned.
* expr.c (highest_pow2_factor): Return unsigned. * expr.h (offset_address): Likewise. * emit-rtl.c (offset_address): POW2 argument now unsigned. From-SVN: r65589
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 7b1d2ba..058100c 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;
}