+2002-01-26 Graham Stott <grahams@redhat.com>
+
+ * calls.c (try_to_integrate): Use "(size_t)" intermediate
+ cast and when casting an integer literal to "rtx" pointer.
+ (expand_call): Likewise.
+ * flow.c (try_pre_increment): Likewise.
+ (find_use_as_address): Likewise.
+ * integrate.c (expand_iline_function): Likewise.
+ * regmove.c (try_auto_increment): Likewise.
+
2002-01-26 Graham Stott <grahams@redhat.com>
* sched-rgn.c (passed): Use sbitmap_free.
timevar_pop (TV_INTEGRATION);
/* If inlining succeeded, return. */
- if (temp != (rtx) (HOST_WIDE_INT) - 1)
+ if (temp != (rtx) (size_t) - 1)
{
if (ACCUMULATE_OUTGOING_ARGS)
{
warning ("called from here");
}
mark_addressable (fndecl);
- return (rtx) (HOST_WIDE_INT) - 1;
+ return (rtx) (size_t) - 1;
}
/* We need to pop PENDING_STACK_ADJUST bytes. But, if the arguments
rtx temp = try_to_integrate (fndecl, actparms, target,
ignore, TREE_TYPE (exp),
structure_value_addr);
- if (temp != (rtx) (HOST_WIDE_INT) - 1)
+ if (temp != (rtx) (size_t) - 1)
return temp;
}
use = 0;
if (pre_ok)
use = find_use_as_address (PATTERN (insn), reg, 0);
- if (post_ok && (use == 0 || use == (rtx) 1))
+ if (post_ok && (use == 0 || use == (rtx) (size_t) 1))
{
use = find_use_as_address (PATTERN (insn), reg, -amount);
do_post = 1;
}
- if (use == 0 || use == (rtx) 1)
+ if (use == 0 || use == (rtx) (size_t) 1)
return 0;
if (GET_MODE_SIZE (GET_MODE (use)) != (amount > 0 ? amount : - amount))
If such an address does not appear, return 0.
If REG appears more than once, or is used other than in such an address,
- return (rtx)1. */
+ return (rtx) 1. */
rtx
find_use_as_address (x, reg, plusconst)
/* If REG occurs inside a MEM used in a bit-field reference,
that is unacceptable. */
if (find_use_as_address (XEXP (x, 0), reg, 0) != 0)
- return (rtx) (HOST_WIDE_INT) 1;
+ return (rtx) (size_t) 1;
}
if (x == reg)
- return (rtx) (HOST_WIDE_INT) 1;
+ return (rtx) (size_t) 1;
for (i = GET_RTX_LENGTH (code) - 1; i >= 0; i--)
{
if (value == 0)
value = tem;
else if (tem != 0)
- return (rtx) (HOST_WIDE_INT) 1;
+ return (rtx) (size_t) 1;
}
else if (fmt[i] == 'E')
{
if (value == 0)
value = tem;
else if (tem != 0)
- return (rtx) (HOST_WIDE_INT) 1;
+ return (rtx) (size_t) 1;
}
}
}
enum machine_mode mode;
if (actual == 0)
- return (rtx) (HOST_WIDE_INT) -1;
+ return (rtx) (size_t) -1;
arg = TREE_VALUE (actual);
mode = TYPE_MODE (DECL_ARG_TYPE (formal));
|| (mode == BLKmode
&& (TYPE_MAIN_VARIANT (TREE_TYPE (arg))
!= TYPE_MAIN_VARIANT (TREE_TYPE (formal)))))
- return (rtx) (HOST_WIDE_INT) -1;
+ return (rtx) (size_t) -1;
}
/* Extra arguments are valid, but will be ignored below, so we must
/* Can't use the size of SET_SRC, we might have something like
(sign_extend:SI (mem:QI ... */
rtx use = find_use_as_address (pset, reg, 0);
- if (use != 0 && use != (rtx) 1)
+ if (use != 0 && use != (rtx) (size_t) 1)
{
int size = GET_MODE_SIZE (GET_MODE (use));
if (0