From 2cc2d4bbcd024031ac779e12cb6b51a3c821d8a6 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Tue, 1 Jan 2002 22:22:25 +0000 Subject: attribs.c (handle_vector_size_attribute): Use host_integerp and tree_int_cst; remove warnings. * attribs.c (handle_vector_size_attribute): Use host_integerp and tree_int_cst; remove warnings. * caller-save.c (insert_restore): Add cast to get rid of warning. (insert_save): Likewise. * emit-rtl.c (adjust_address_1, offset_address): Likewise. * regmove.c (find_matches): Add temporary var to kill a warning. From-SVN: r48452 --- gcc/emit-rtl.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'gcc/emit-rtl.c') diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index 8faef45..6efdad7 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -1,6 +1,6 @@ /* Emit RTL for the GNU C-Compiler expander. Copyright (C) 1987, 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998, - 1999, 2000, 2001 Free Software Foundation, Inc. + 1999, 2000, 2001, 2002 Free Software Foundation, Inc. This file is part of GCC. @@ -1996,7 +1996,8 @@ adjust_address_1 (memref, mode, offset, validate, adjust) lowest-order set bit in OFFSET, but don't change the alignment if OFFSET if zero. */ if (offset != 0) - memalign = MIN (memalign, (offset & -offset) * BITS_PER_UNIT); + memalign = MIN (memalign, + (unsigned int) (offset & -offset) * BITS_PER_UNIT); /* We can compute the size in a number of ways. */ if (GET_MODE (new) != BLKmode) @@ -2045,10 +2046,11 @@ offset_address (memref, offset, pow2) /* Update the alignment to reflect the offset. Reset the offset, which we don't know. */ - MEM_ATTRS (new) = get_mem_attrs (MEM_ALIAS_SET (memref), MEM_EXPR (memref), - 0, 0, MIN (MEM_ALIGN (memref), - pow2 * BITS_PER_UNIT), - GET_MODE (new)); + MEM_ATTRS (new) + = get_mem_attrs (MEM_ALIAS_SET (memref), MEM_EXPR (memref), 0, 0, + MIN (MEM_ALIGN (memref), + (unsigned int) pow2 * BITS_PER_UNIT), + GET_MODE (new)); return new; } -- cgit v1.1