diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-15 17:44:10 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-08-15 17:44:10 +0000 |
commit | bb37f9719b82ee5913466f26d855f8af7640258b (patch) | |
tree | b82f35c9dd856cddc3f7abd452619cec5c479ad2 /gcc/loop.c | |
parent | b7f6aee4beb99ab97e90a0eb4f4c80c863b171ff (diff) | |
download | gcc-bb37f9719b82ee5913466f26d855f8af7640258b.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@56350 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop.c')
-rw-r--r-- | gcc/loop.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/loop.c b/gcc/loop.c index c0d20da398c..a777013de45 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -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, |