diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2001-09-10 10:55:20 +0000 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2001-09-10 06:55:20 -0400 |
commit | 5197bd5062d27d1299ca63c3e252dc7b75bc1e1f (patch) | |
tree | 71dad6a024a9276781b0e5afd4cd53f3d06901cf /gcc/resource.c | |
parent | 2e547b13f124ca29dd676bd57ece27888eee5cf1 (diff) | |
download | gcc-5197bd5062d27d1299ca63c3e252dc7b75bc1e1f.tar.gz |
alias.c (clear_reg_alias_info): Use K&R format definition.
* alias.c (clear_reg_alias_info): Use K&R format definition.
Avoid unsigned warning.
* builtins.c: Use "unsigned int", not "unsigned".
(target_char_cast): Use host_integerp and tree_low_cst.
(expand_builtin_args_info, expand_builtin_frame_address): Likewise.
(c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
(c_getstr): Likewise.
(std_expand_builtin_va_arg): Use int_size_in_bytes.
(builtin_memcpy_read_str): Avoid unsigned warning.
(expand_builtin_memcpy): Alignments are unsigned.
(expand_builtin_strncpy, expand_builtin_memset): Likewise.
(expand_builtin_expect_jump): Use integer_zerop and integer_onep.
* predict.c (expensive_function_p): LIMIT now unsigned.
* resource.c (mark_target_live_regs): Make some vars unsigned.
* sdbout.c: Use "unsigned int", not "unsigned".
(MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
(sdbout_source_line): Likewise.
(sdbout_record_type_name): Remove "const" for NAME declaration.
* config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
From-SVN: r45503
Diffstat (limited to 'gcc/resource.c')
-rw-r--r-- | gcc/resource.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/resource.c b/gcc/resource.c index 5fec0534ad7..10b0d34c3a7 100644 --- a/gcc/resource.c +++ b/gcc/resource.c @@ -891,7 +891,7 @@ mark_target_live_regs (insns, target, res) struct resources *res; { int b = -1; - int i; + unsigned int i; struct target_info *tinfo = NULL; rtx insn; rtx jump_insn = 0; @@ -949,7 +949,8 @@ mark_target_live_regs (insns, target, res) tinfo = (struct target_info *) xmalloc (sizeof (struct target_info)); tinfo->uid = INSN_UID (target); tinfo->block = b; - tinfo->next = target_hash_table[INSN_UID (target) % TARGET_HASH_PRIME]; + tinfo->next + = target_hash_table[INSN_UID (target) % TARGET_HASH_PRIME]; target_hash_table[INSN_UID (target) % TARGET_HASH_PRIME] = tinfo; } } @@ -1061,8 +1062,8 @@ mark_target_live_regs (insns, target, res) && GET_CODE (XEXP (link, 0)) == REG && REGNO (XEXP (link, 0)) < FIRST_PSEUDO_REGISTER) { - int first_regno = REGNO (XEXP (link, 0)); - int last_regno + unsigned int first_regno = REGNO (XEXP (link, 0)); + unsigned int last_regno = (first_regno + HARD_REGNO_NREGS (first_regno, GET_MODE (XEXP (link, 0)))); @@ -1080,8 +1081,8 @@ mark_target_live_regs (insns, target, res) && GET_CODE (XEXP (link, 0)) == REG && REGNO (XEXP (link, 0)) < FIRST_PSEUDO_REGISTER) { - int first_regno = REGNO (XEXP (link, 0)); - int last_regno + unsigned int first_regno = REGNO (XEXP (link, 0)); + unsigned int last_regno = (first_regno + HARD_REGNO_NREGS (first_regno, GET_MODE (XEXP (link, 0)))); |