Commit 6356b546 by Richard Sandiford Committed by Richard Sandiford

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
parent 88877022
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> 2005-05-08 Kazu Hirata <kazu@cs.umass.edu>
* except.c (eh_status): Change the type of ttype_data to * except.c (eh_status): Change the type of ttype_data to
......
...@@ -297,7 +297,7 @@ get_hard_reg_initial_reg (struct function *fun, rtx reg) ...@@ -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. */ initial value of hard register REGNO. Return an rtx for such a pseudo. */
rtx 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; struct initial_value_struct *ivs;
rtx rv; rtx rv;
...@@ -335,7 +335,7 @@ get_hard_reg_initial_val (enum machine_mode mode, int regno) ...@@ -335,7 +335,7 @@ get_hard_reg_initial_val (enum machine_mode mode, int regno)
the associated pseudo if so, otherwise return NULL. */ the associated pseudo if so, otherwise return NULL. */
rtx 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; struct initial_value_struct *ivs;
int i; int i;
...@@ -344,7 +344,7 @@ has_hard_reg_initial_val (enum machine_mode mode, int regno) ...@@ -344,7 +344,7 @@ has_hard_reg_initial_val (enum machine_mode mode, int regno)
if (ivs != 0) if (ivs != 0)
for (i = 0; i < ivs->num_entries; i++) for (i = 0; i < ivs->num_entries; i++)
if (GET_MODE (ivs->entries[i].hard_reg) == mode 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 ivs->entries[i].pseudo;
return NULL_RTX; return NULL_RTX;
......
...@@ -21,12 +21,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA ...@@ -21,12 +21,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#include "varray.h" #include "varray.h"
/* Return a pseudo that corresponds to the value in the specified hard extern rtx get_hard_reg_initial_val (enum machine_mode, unsigned int);
reg as of the start of the function (for inlined functions, the extern rtx has_hard_reg_initial_val (enum machine_mode, unsigned int);
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);
/* If a pseudo represents an initial hard reg (or expression), return /* If a pseudo represents an initial hard reg (or expression), return
it, else return NULL_RTX. */ it, else return NULL_RTX. */
extern rtx get_hard_reg_initial_reg (struct function *, rtx); extern rtx get_hard_reg_initial_reg (struct function *, rtx);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment