summaryrefslogtreecommitdiff
path: root/gcc/loop.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-09 20:58:12 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2002-10-09 20:58:12 +0000
commit4b6dfc3780723c5e933bd64087548d5288611158 (patch)
treee8ab6448a4498366d96fccbde4b0559abf84e9b9 /gcc/loop.c
parent4da4eda7beeba98283efeda124448decd66ef645 (diff)
downloadgcc-4b6dfc3780723c5e933bd64087548d5288611158.tar.gz
* loop.c: Revert 2002-08-15 change.
(LOOP_REGNO_NREGS): Ensure type is int. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@57992 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/loop.c')
-rw-r--r--gcc/loop.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/loop.c b/gcc/loop.c
index 5db9677ffeb..d6b3a809183 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,