diff options
author | Kaveh R. Ghazi <ghazi@caip.rutgers.edu> | 2002-08-15 17:44:10 +0000 |
---|---|---|
committer | Kaveh Ghazi <ghazi@gcc.gnu.org> | 2002-08-15 17:44:10 +0000 |
commit | f7043461dbdc6ffc526ab4fa14c420c182599c02 (patch) | |
tree | b82f35c9dd856cddc3f7abd452619cec5c479ad2 /gcc/reload.c | |
parent | b4d330e1630264a6ced3d637344ee1a708527799 (diff) | |
download | gcc-f7043461dbdc6ffc526ab4fa14c420c182599c02.zip gcc-f7043461dbdc6ffc526ab4fa14c420c182599c02.tar.gz gcc-f7043461dbdc6ffc526ab4fa14c420c182599c02.tar.bz2 |
loop.c (scan_loop, [...]): Cast to avoid signed/unsigned warnings.
* loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
signed/unsigned warnings.
* regclass.c (init_reg_sets_1, choose_hard_reg_mode,
record_reg_classes): Likewise.
* reload.c (reload_inner_reg_of_subreg, push_reload,
find_reloads_address_1): Likewise.
From-SVN: r56350
Diffstat (limited to 'gcc/reload.c')
-rw-r--r-- | gcc/reload.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/reload.c b/gcc/reload.c index 67f411b..e195ea2 100644 --- a/gcc/reload.c +++ b/gcc/reload.c @@ -826,7 +826,7 @@ reload_inner_reg_of_subreg (x, mode) return (GET_MODE_SIZE (mode) <= UNITS_PER_WORD && GET_MODE_SIZE (GET_MODE (inner)) > UNITS_PER_WORD && ((GET_MODE_SIZE (GET_MODE (inner)) / UNITS_PER_WORD) - != HARD_REGNO_NREGS (REGNO (inner), GET_MODE (inner)))); + != (int) HARD_REGNO_NREGS (REGNO (inner), GET_MODE (inner)))); } /* Record one reload that needs to be performed. @@ -1003,8 +1003,8 @@ push_reload (in, out, inloc, outloc, class, > UNITS_PER_WORD) && ((GET_MODE_SIZE (GET_MODE (SUBREG_REG (in))) / UNITS_PER_WORD) - != HARD_REGNO_NREGS (REGNO (SUBREG_REG (in)), - GET_MODE (SUBREG_REG (in))))) + != (int) HARD_REGNO_NREGS (REGNO (SUBREG_REG (in)), + GET_MODE (SUBREG_REG (in))))) || ! HARD_REGNO_MODE_OK (subreg_regno (in), inmode))) #ifdef SECONDARY_INPUT_RELOAD_CLASS || (SECONDARY_INPUT_RELOAD_CLASS (class, inmode, in) != NO_REGS @@ -1105,8 +1105,8 @@ push_reload (in, out, inloc, outloc, class, > UNITS_PER_WORD) && ((GET_MODE_SIZE (GET_MODE (SUBREG_REG (out))) / UNITS_PER_WORD) - != HARD_REGNO_NREGS (REGNO (SUBREG_REG (out)), - GET_MODE (SUBREG_REG (out))))) + != (int) HARD_REGNO_NREGS (REGNO (SUBREG_REG (out)), + GET_MODE (SUBREG_REG (out))))) || ! HARD_REGNO_MODE_OK (subreg_regno (out), outmode))) #ifdef SECONDARY_OUTPUT_RELOAD_CLASS || (SECONDARY_OUTPUT_RELOAD_CLASS (class, outmode, out) != NO_REGS @@ -5639,7 +5639,7 @@ find_reloads_address_1 (mode, x, context, loc, opnum, type, ind_levels, insn) { enum reg_class class = (context ? INDEX_REG_CLASS : MODE_BASE_REG_CLASS (mode)); - if (CLASS_MAX_NREGS (class, GET_MODE (SUBREG_REG (x))) + if ((unsigned) CLASS_MAX_NREGS (class, GET_MODE (SUBREG_REG (x))) > reg_class_size[class]) { x = find_reloads_subreg_address (x, 0, opnum, type, |