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/loop.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/loop.c')
-rw-r--r-- | gcc/loop.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -896,7 +896,7 @@ scan_loop (loop, flags) SET_DEST (set), copy_rtx (SET_SRC (set))); delete_insn (p); - for (i = 0; i < LOOP_REGNO_NREGS (regno, SET_DEST (set)); i++) + for (i = 0; i < (int) LOOP_REGNO_NREGS (regno, SET_DEST (set)); i++) regs->array[regno+i].set_in_loop = 0; continue; } @@ -927,7 +927,7 @@ scan_loop (loop, flags) m->savings = regs->array[regno].n_times_set; if (find_reg_note (p, REG_RETVAL, NULL_RTX)) m->savings += libcall_benefit (p); - for (i = 0; i < LOOP_REGNO_NREGS (regno, SET_DEST (set)); i++) + for (i = 0; i < (int) LOOP_REGNO_NREGS (regno, SET_DEST (set)); i++) regs->array[regno+i].set_in_loop = move_insn ? -2 : -1; /* Add M to the end of the chain MOVABLES. */ loop_movables_add (movables, m); @@ -1029,7 +1029,7 @@ scan_loop (loop, flags) m->match = 0; m->lifetime = LOOP_REG_LIFETIME (loop, regno); m->savings = 1; - for (i = 0; i < LOOP_REGNO_NREGS (regno, SET_DEST (set)); i++) + for (i = 0; i < (int) LOOP_REGNO_NREGS (regno, SET_DEST (set)); i++) regs->array[regno+i].set_in_loop = -1; /* Add M to the end of the chain MOVABLES. */ loop_movables_add (movables, m); @@ -2170,7 +2170,7 @@ move_movables (loop, movables, threshold, insn_count) if (! m->partial) { int i; - for (i = 0; i < LOOP_REGNO_NREGS (regno, m->set_dest); i++) + for (i = 0; i < (int) LOOP_REGNO_NREGS (regno, m->set_dest); i++) regs->array[regno+i].set_in_loop = 0; } @@ -2235,7 +2235,7 @@ move_movables (loop, movables, threshold, insn_count) { int i; for (i = 0; - i < LOOP_REGNO_NREGS (regno, m1->set_dest); + i < (int) LOOP_REGNO_NREGS (regno, m1->set_dest); i++) regs->array[m1->regno+i].set_in_loop = 0; } @@ -3495,7 +3495,7 @@ count_one_set (regs, insn, x, last_set) { int i; int regno = REGNO (dest); - for (i = 0; i < LOOP_REGNO_NREGS (regno, dest); i++) + for (i = 0; i < (int) LOOP_REGNO_NREGS (regno, dest); i++) { /* If this is the first setting of this reg in current basic block, and it was set before, |