aboutsummaryrefslogtreecommitdiff
path: root/gcc/integrate.c
diff options
context:
space:
mode:
authorRichard Sandiford <rsandifo@redhat.com>2005-05-08 09:16:47 +0000
committerRichard Sandiford <rsandifo@gcc.gnu.org>2005-05-08 09:16:47 +0000
commit6356b546458da84c63596f9a377593de262e06bf (patch)
tree74b9e7d7a7bbf094f20379a4523e53ba0f1fb873 /gcc/integrate.c
parent88877022e7d306101d9353f65fc5145046460cc7 (diff)
downloadgcc-6356b546458da84c63596f9a377593de262e06bf.zip
gcc-6356b546458da84c63596f9a377593de262e06bf.tar.gz
gcc-6356b546458da84c63596f9a377593de262e06bf.tar.bz2
integrate.h (get_hard_reg_initial_val): Change type of register parameter from int to unsigned int.
* 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. From-SVN: r99379
Diffstat (limited to 'gcc/integrate.c')
-rw-r--r--gcc/integrate.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/integrate.c b/gcc/integrate.c
index 6987fcc..86bb875 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;