diff options
author | Jan van Male <jan.vanmale@fenk.wau.nl> | 2001-07-06 23:30:44 +0200 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-07-06 14:30:44 -0700 |
commit | 8fa2140d42bf1fe983ca5f5fec9c107ee6fb57c3 (patch) | |
tree | dde07ae6078edbae3bc5627ad576f38a893d4613 | |
parent | 87e08c698d7deb8560658f251d82eb4b02fb4b9e (diff) | |
download | gcc-8fa2140d42bf1fe983ca5f5fec9c107ee6fb57c3.zip gcc-8fa2140d42bf1fe983ca5f5fec9c107ee6fb57c3.tar.gz gcc-8fa2140d42bf1fe983ca5f5fec9c107ee6fb57c3.tar.bz2 |
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
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/alias.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index fc7155a..f6d8666 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2001-07-06 Jan van Male <jan.vanmale@fenk.wau.nl> + + * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to + avoid warnings. + 2001-07-06 Richard Henderson <rth@redhat.com> * bitmap.c (bitmap_release_memory): Move adjacent to the diff --git a/gcc/alias.c b/gcc/alias.c index 8335425..cacbf62 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; |