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/regclass.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/regclass.c')
-rw-r--r-- | gcc/regclass.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/gcc/regclass.c b/gcc/regclass.c index 75335b1..4718d9e 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -483,7 +483,7 @@ init_reg_sets_1 () memset (allocatable_regs_of_mode, 0, sizeof (allocatable_regs_of_mode)); for (m = 0; m < (unsigned int) MAX_MACHINE_MODE; m++) for (i = 0; i < N_REG_CLASSES; i++) - if (CLASS_MAX_NREGS (i, m) <= reg_class_size[i]) + if ((unsigned) CLASS_MAX_NREGS (i, m) <= reg_class_size[i]) for (j = 0; j < FIRST_PSEUDO_REGISTER; j++) if (!fixed_regs [j] && TEST_HARD_REG_BIT (reg_class_contents[i], j) && HARD_REGNO_MODE_OK (j, m)) @@ -696,7 +696,7 @@ choose_hard_reg_mode (regno, nregs) for (mode = GET_CLASS_NARROWEST_MODE (MODE_INT); mode != VOIDmode; mode = GET_MODE_WIDER_MODE (mode)) - if (HARD_REGNO_NREGS (regno, mode) == nregs + if ((unsigned) HARD_REGNO_NREGS (regno, mode) == nregs && HARD_REGNO_MODE_OK (regno, mode)) found_mode = mode; @@ -706,7 +706,7 @@ choose_hard_reg_mode (regno, nregs) for (mode = GET_CLASS_NARROWEST_MODE (MODE_FLOAT); mode != VOIDmode; mode = GET_MODE_WIDER_MODE (mode)) - if (HARD_REGNO_NREGS (regno, mode) == nregs + if ((unsigned) HARD_REGNO_NREGS (regno, mode) == nregs && HARD_REGNO_MODE_OK (regno, mode)) found_mode = mode; @@ -716,7 +716,7 @@ choose_hard_reg_mode (regno, nregs) for (mode = GET_CLASS_NARROWEST_MODE (MODE_VECTOR_FLOAT); mode != VOIDmode; mode = GET_MODE_WIDER_MODE (mode)) - if (HARD_REGNO_NREGS (regno, mode) == nregs + if ((unsigned) HARD_REGNO_NREGS (regno, mode) == nregs && HARD_REGNO_MODE_OK (regno, mode)) found_mode = mode; @@ -726,7 +726,7 @@ choose_hard_reg_mode (regno, nregs) for (mode = GET_CLASS_NARROWEST_MODE (MODE_VECTOR_INT); mode != VOIDmode; mode = GET_MODE_WIDER_MODE (mode)) - if (HARD_REGNO_NREGS (regno, mode) == nregs + if ((unsigned) HARD_REGNO_NREGS (regno, mode) == nregs && HARD_REGNO_MODE_OK (regno, mode)) found_mode = mode; @@ -737,7 +737,7 @@ choose_hard_reg_mode (regno, nregs) for (m = (unsigned int) CCmode; m < (unsigned int) NUM_MACHINE_MODES; ++m) { mode = (enum machine_mode) m; - if (HARD_REGNO_NREGS (regno, mode) == nregs + if ((unsigned) HARD_REGNO_NREGS (regno, mode) == nregs && HARD_REGNO_MODE_OK (regno, mode)) return mode; } @@ -1877,27 +1877,27 @@ record_reg_classes (n_alts, n_ops, ops, modes, enum reg_class pref = reg_pref[regno].prefclass; if ((reg_class_size[(unsigned char) pref] - == CLASS_MAX_NREGS (pref, mode)) + == (unsigned) CLASS_MAX_NREGS (pref, mode)) && REGISTER_MOVE_COST (mode, pref, pref) < 10 * 2) op_costs[i].cost[(unsigned char) pref] = -1; } else if (regno < FIRST_PSEUDO_REGISTER) for (class = 0; class < N_REG_CLASSES; class++) if (TEST_HARD_REG_BIT (reg_class_contents[class], regno) - && reg_class_size[class] == CLASS_MAX_NREGS (class, mode)) + && reg_class_size[class] == (unsigned) CLASS_MAX_NREGS (class, mode)) { if (reg_class_size[class] == 1) op_costs[i].cost[class] = -1; else { - for (nr = 0; nr < HARD_REGNO_NREGS (regno, mode); nr++) + for (nr = 0; nr < (unsigned) HARD_REGNO_NREGS (regno, mode); nr++) { if (! TEST_HARD_REG_BIT (reg_class_contents[class], regno + nr)) break; } - if (nr == HARD_REGNO_NREGS (regno,mode)) + if (nr == (unsigned) HARD_REGNO_NREGS (regno,mode)) op_costs[i].cost[class] = -1; } } |