summaryrefslogtreecommitdiff
path: root/gcc/simplify-rtx.c
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-04 02:24:50 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-04-04 02:24:50 +0000
commit5e4319714768bb3e314e7653c4d71e73358c4ace (patch)
tree843fa327c4739c577ba1794ec00c5fe4dd814da2 /gcc/simplify-rtx.c
parent62b34490944086a5c2c4665191b02f4e418d27fe (diff)
downloadgcc-5e4319714768bb3e314e7653c4d71e73358c4ace.tar.gz
* sparc.c (output_restore_regs): Prototype.
(sparc_emit_float_lib_cmp): Constification. * emit-rtl.c (const_int_htab_hash, const_int_htab_eq): Likewise. * reload1.c (reload_cse_delete_noop_set, reload_cse_simplify): Prototype. * simplify-rtx.c (entry_and_rtx_equal_p): Constification. (get_value_hash, hash_rtx): Likewise. * ssa.c (compute_conservative_reg_partition): Prototype. * tree.c (mark_hash_entry): Prototype. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32896 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/simplify-rtx.c')
-rw-r--r--gcc/simplify-rtx.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/simplify-rtx.c b/gcc/simplify-rtx.c
index 22549b4fe69..9e2674304ba 100644
--- a/gcc/simplify-rtx.c
+++ b/gcc/simplify-rtx.c
@@ -2141,7 +2141,7 @@ entry_and_rtx_equal_p (entry, x_arg)
const void *entry, *x_arg;
{
struct elt_loc_list *l;
- cselib_val *v = (cselib_val *)entry;
+ const cselib_val *v = (const cselib_val *)entry;
rtx x = (rtx)x_arg;
/* We don't guarantee that distinct rtx's have different hash values,
@@ -2159,7 +2159,7 @@ static unsigned int
get_value_hash (entry)
const void *entry;
{
- cselib_val *v = (cselib_val *) entry;
+ const cselib_val *v = (const cselib_val *) entry;
return v->value;
}
@@ -2543,7 +2543,7 @@ hash_rtx (x, mode, create)
}
else if (fmt[i] == 's')
{
- unsigned char *p = (unsigned char *) XSTR (x, i);
+ const unsigned char *p = (const unsigned char *) XSTR (x, i);
if (p)
while (*p)
hash += *p++;