diff options
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/integrate.c | 6 | ||||
-rw-r--r-- | gcc/integrate.h | 8 |
3 files changed, 13 insertions, 9 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 688fb35a09d..110aecd8741 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,11 @@ +2005-05-08 Richard Sandiford <rsandifo@redhat.com> + + * integrate.h (get_hard_reg_initial_val): Change type of register + parameter from int to unsigned int. + (has_hard_reg_initial_val): Likewise. + * integrate.c (get_hard_reg_initial_val): Likewise. + (has_hard_reg_initial_val): Likewise. Remove cast to unsigned int. + 2005-05-08 Kazu Hirata <kazu@cs.umass.edu> * except.c (eh_status): Change the type of ttype_data to diff --git a/gcc/integrate.c b/gcc/integrate.c index 6987fcccec2..86bb875670f 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -297,7 +297,7 @@ get_hard_reg_initial_reg (struct function *fun, rtx reg) initial value of hard register REGNO. Return an rtx for such a pseudo. */ rtx -get_hard_reg_initial_val (enum machine_mode mode, int regno) +get_hard_reg_initial_val (enum machine_mode mode, unsigned int regno) { struct initial_value_struct *ivs; rtx rv; @@ -335,7 +335,7 @@ get_hard_reg_initial_val (enum machine_mode mode, int regno) the associated pseudo if so, otherwise return NULL. */ rtx -has_hard_reg_initial_val (enum machine_mode mode, int regno) +has_hard_reg_initial_val (enum machine_mode mode, unsigned int regno) { struct initial_value_struct *ivs; int i; @@ -344,7 +344,7 @@ has_hard_reg_initial_val (enum machine_mode mode, int regno) if (ivs != 0) for (i = 0; i < ivs->num_entries; i++) if (GET_MODE (ivs->entries[i].hard_reg) == mode - && REGNO (ivs->entries[i].hard_reg) == (unsigned int) regno) + && REGNO (ivs->entries[i].hard_reg) == regno) return ivs->entries[i].pseudo; return NULL_RTX; diff --git a/gcc/integrate.h b/gcc/integrate.h index 74d3f9d03dd..10174cb9cb2 100644 --- a/gcc/integrate.h +++ b/gcc/integrate.h @@ -21,12 +21,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include "varray.h" -/* Return a pseudo that corresponds to the value in the specified hard - reg as of the start of the function (for inlined functions, the - value at the start of the parent function). */ -extern rtx get_hard_reg_initial_val (enum machine_mode, int); -/* Likewise, but for common cases. */ -extern rtx has_hard_reg_initial_val (enum machine_mode, int); +extern rtx get_hard_reg_initial_val (enum machine_mode, unsigned int); +extern rtx has_hard_reg_initial_val (enum machine_mode, unsigned int); /* If a pseudo represents an initial hard reg (or expression), return it, else return NULL_RTX. */ extern rtx get_hard_reg_initial_reg (struct function *, rtx); |