From 44a5565d43aa79ea9fa56e5d696b59d12db33191 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Wed, 9 Oct 2002 20:58:12 +0000 Subject: [PATCH] loop.c: Revert 2002-08-15 change. * loop.c: Revert 2002-08-15 change. (LOOP_REGNO_NREGS): Ensure type is int. From-SVN: r57992 --- gcc/ChangeLog | 5 +++++ gcc/loop.c | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4492c111c8ae..c2bdf92656c5 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-10-09 Kaveh R. Ghazi + + * loop.c: Revert 2002-08-15 change. + (LOOP_REGNO_NREGS): Ensure type is int. + 2002-10-09 David Edelsohn * config/rs6000/rs6000.md (extenddftf2): Change to define_insn diff --git a/gcc/loop.c b/gcc/loop.c index 5db9677ffeb9..d6b3a8091839 100644 --- a/gcc/loop.c +++ b/gcc/loop.c @@ -151,7 +151,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #define LOOP_REGNO_NREGS(REGNO, SET_DEST) \ ((REGNO) < FIRST_PSEUDO_REGISTER \ - ? HARD_REGNO_NREGS ((REGNO), GET_MODE (SET_DEST)) : 1) + ? (int) HARD_REGNO_NREGS ((REGNO), GET_MODE (SET_DEST)) : 1) /* Vector mapping INSN_UIDs to luids. @@ -946,7 +946,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 < (int) LOOP_REGNO_NREGS (regno, SET_DEST (set)); i++) + for (i = 0; i < 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); @@ -1050,7 +1050,7 @@ scan_loop (loop, flags) m->lifetime = LOOP_REG_LIFETIME (loop, regno); m->savings = 1; for (i = 0; - i < (int) LOOP_REGNO_NREGS (regno, SET_DEST (set)); + i < 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. */ @@ -2193,7 +2193,7 @@ move_movables (loop, movables, threshold, insn_count) if (! m->partial) { int i; - for (i = 0; i < (int) LOOP_REGNO_NREGS (regno, m->set_dest); i++) + for (i = 0; i < LOOP_REGNO_NREGS (regno, m->set_dest); i++) regs->array[regno+i].set_in_loop = 0; } @@ -2258,7 +2258,7 @@ move_movables (loop, movables, threshold, insn_count) { int i; for (i = 0; - i < (int) LOOP_REGNO_NREGS (regno, m1->set_dest); + i < LOOP_REGNO_NREGS (regno, m1->set_dest); i++) regs->array[m1->regno+i].set_in_loop = 0; } @@ -3519,7 +3519,7 @@ count_one_set (regs, insn, x, last_set) { int i; int regno = REGNO (dest); - for (i = 0; i < (int) LOOP_REGNO_NREGS (regno, dest); i++) + for (i = 0; i < LOOP_REGNO_NREGS (regno, dest); i++) { /* If this is the first setting of this reg in current basic block, and it was set before,