From: Jan van Male Date: Fri, 6 Jul 2001 21:30:44 +0000 (+0200) Subject: alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to avoid warnings. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8fa2140d42bf1fe983ca5f5fec9c107ee6fb57c3;p=gcc.git alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to avoid warnings. * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to avoid warnings. From-SVN: r43823 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fc7155a3905..f6d86660890 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-07-06 Jan van Male + + * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to + avoid warnings. + 2001-07-06 Richard Henderson * bitmap.c (bitmap_release_memory): Move adjacent to the diff --git a/gcc/alias.c b/gcc/alias.c index 83354257b75..cacbf628e6c 100644 --- a/gcc/alias.c +++ b/gcc/alias.c @@ -1307,11 +1307,11 @@ base_alias_check (x, y, x_mode, y_mode) return 1; if (GET_CODE (x) == AND && (GET_CODE (XEXP (x, 1)) != CONST_INT - || GET_MODE_UNIT_SIZE (y_mode) < -INTVAL (XEXP (x, 1)))) + || (int) GET_MODE_UNIT_SIZE (y_mode) < -INTVAL (XEXP (x, 1)))) return 1; if (GET_CODE (y) == AND && (GET_CODE (XEXP (y, 1)) != CONST_INT - || GET_MODE_UNIT_SIZE (x_mode) < -INTVAL (XEXP (y, 1)))) + || (int) GET_MODE_UNIT_SIZE (x_mode) < -INTVAL (XEXP (y, 1)))) return 1; /* Differing symbols never alias. */ return 0;