summaryrefslogtreecommitdiff
path: root/gcc/integrate.c
diff options
context:
space:
mode:
authorrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-08 09:16:47 +0000
committerrsandifo <rsandifo@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-08 09:16:47 +0000
commit932fa0c92c38c5ff6e6583a02dcbd6e9880679a0 (patch)
tree74b9e7d7a7bbf094f20379a4523e53ba0f1fb873 /gcc/integrate.c
parent8c75d88749cedee81eabbcddbab4498ac2844e7d (diff)
downloadgcc-932fa0c92c38c5ff6e6583a02dcbd6e9880679a0.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99379 138bc75d-0d04-0410-961f-82ee72b054a4
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 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;