Commit 60e8b9f0 by Graham Stott Committed by Graham Stott

calls.c (try_to_integrate): Use "(size_t)" intermediate cast and when casting an…

calls.c (try_to_integrate): Use "(size_t)" intermediate cast and when casting an integer literal to "rtx"...


        * 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.

From-SVN: r48906
parent 7b25b076
2002-01-26 Graham Stott <grahams@redhat.com> 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. * sched-rgn.c (passed): Use sbitmap_free.
(header): Likewise. (header): Likewise.
(inner): Likewise. (inner): Likewise.
......
...@@ -1822,7 +1822,7 @@ try_to_integrate (fndecl, actparms, target, ignore, type, structure_value_addr) ...@@ -1822,7 +1822,7 @@ try_to_integrate (fndecl, actparms, target, ignore, type, structure_value_addr)
timevar_pop (TV_INTEGRATION); timevar_pop (TV_INTEGRATION);
/* If inlining succeeded, return. */ /* If inlining succeeded, return. */
if (temp != (rtx) (HOST_WIDE_INT) - 1) if (temp != (rtx) (size_t) - 1)
{ {
if (ACCUMULATE_OUTGOING_ARGS) if (ACCUMULATE_OUTGOING_ARGS)
{ {
...@@ -1902,7 +1902,7 @@ try_to_integrate (fndecl, actparms, target, ignore, type, structure_value_addr) ...@@ -1902,7 +1902,7 @@ try_to_integrate (fndecl, actparms, target, ignore, type, structure_value_addr)
warning ("called from here"); warning ("called from here");
} }
mark_addressable (fndecl); 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 /* We need to pop PENDING_STACK_ADJUST bytes. But, if the arguments
...@@ -2285,7 +2285,7 @@ expand_call (exp, target, ignore) ...@@ -2285,7 +2285,7 @@ expand_call (exp, target, ignore)
rtx temp = try_to_integrate (fndecl, actparms, target, rtx temp = try_to_integrate (fndecl, actparms, target,
ignore, TREE_TYPE (exp), ignore, TREE_TYPE (exp),
structure_value_addr); structure_value_addr);
if (temp != (rtx) (HOST_WIDE_INT) - 1) if (temp != (rtx) (size_t) - 1)
return temp; return temp;
} }
......
...@@ -3974,13 +3974,13 @@ try_pre_increment (insn, reg, amount) ...@@ -3974,13 +3974,13 @@ try_pre_increment (insn, reg, amount)
use = 0; use = 0;
if (pre_ok) if (pre_ok)
use = find_use_as_address (PATTERN (insn), reg, 0); 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); use = find_use_as_address (PATTERN (insn), reg, -amount);
do_post = 1; do_post = 1;
} }
if (use == 0 || use == (rtx) 1) if (use == 0 || use == (rtx) (size_t) 1)
return 0; return 0;
if (GET_MODE_SIZE (GET_MODE (use)) != (amount > 0 ? amount : - amount)) if (GET_MODE_SIZE (GET_MODE (use)) != (amount > 0 ? amount : - amount))
...@@ -4008,7 +4008,7 @@ try_pre_increment (insn, reg, amount) ...@@ -4008,7 +4008,7 @@ try_pre_increment (insn, reg, amount)
If such an address does not appear, return 0. If such an address does not appear, return 0.
If REG appears more than once, or is used other than in such an address, If REG appears more than once, or is used other than in such an address,
return (rtx)1. */ return (rtx) 1. */
rtx rtx
find_use_as_address (x, reg, plusconst) find_use_as_address (x, reg, plusconst)
...@@ -4036,11 +4036,11 @@ find_use_as_address (x, reg, plusconst) ...@@ -4036,11 +4036,11 @@ find_use_as_address (x, reg, plusconst)
/* If REG occurs inside a MEM used in a bit-field reference, /* If REG occurs inside a MEM used in a bit-field reference,
that is unacceptable. */ that is unacceptable. */
if (find_use_as_address (XEXP (x, 0), reg, 0) != 0) 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) if (x == reg)
return (rtx) (HOST_WIDE_INT) 1; return (rtx) (size_t) 1;
for (i = GET_RTX_LENGTH (code) - 1; i >= 0; i--) for (i = GET_RTX_LENGTH (code) - 1; i >= 0; i--)
{ {
...@@ -4050,7 +4050,7 @@ find_use_as_address (x, reg, plusconst) ...@@ -4050,7 +4050,7 @@ find_use_as_address (x, reg, plusconst)
if (value == 0) if (value == 0)
value = tem; value = tem;
else if (tem != 0) else if (tem != 0)
return (rtx) (HOST_WIDE_INT) 1; return (rtx) (size_t) 1;
} }
else if (fmt[i] == 'E') else if (fmt[i] == 'E')
{ {
...@@ -4061,7 +4061,7 @@ find_use_as_address (x, reg, plusconst) ...@@ -4061,7 +4061,7 @@ find_use_as_address (x, reg, plusconst)
if (value == 0) if (value == 0)
value = tem; value = tem;
else if (tem != 0) else if (tem != 0)
return (rtx) (HOST_WIDE_INT) 1; return (rtx) (size_t) 1;
} }
} }
} }
......
...@@ -698,7 +698,7 @@ expand_inline_function (fndecl, parms, target, ignore, type, ...@@ -698,7 +698,7 @@ expand_inline_function (fndecl, parms, target, ignore, type,
enum machine_mode mode; enum machine_mode mode;
if (actual == 0) if (actual == 0)
return (rtx) (HOST_WIDE_INT) -1; return (rtx) (size_t) -1;
arg = TREE_VALUE (actual); arg = TREE_VALUE (actual);
mode = TYPE_MODE (DECL_ARG_TYPE (formal)); mode = TYPE_MODE (DECL_ARG_TYPE (formal));
...@@ -711,7 +711,7 @@ expand_inline_function (fndecl, parms, target, ignore, type, ...@@ -711,7 +711,7 @@ expand_inline_function (fndecl, parms, target, ignore, type,
|| (mode == BLKmode || (mode == BLKmode
&& (TYPE_MAIN_VARIANT (TREE_TYPE (arg)) && (TYPE_MAIN_VARIANT (TREE_TYPE (arg))
!= TYPE_MAIN_VARIANT (TREE_TYPE (formal))))) != 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 /* Extra arguments are valid, but will be ignored below, so we must
......
...@@ -111,7 +111,7 @@ try_auto_increment (insn, inc_insn, inc_insn_set, reg, increment, pre) ...@@ -111,7 +111,7 @@ try_auto_increment (insn, inc_insn, inc_insn_set, reg, increment, pre)
/* Can't use the size of SET_SRC, we might have something like /* Can't use the size of SET_SRC, we might have something like
(sign_extend:SI (mem:QI ... */ (sign_extend:SI (mem:QI ... */
rtx use = find_use_as_address (pset, reg, 0); 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)); int size = GET_MODE_SIZE (GET_MODE (use));
if (0 if (0
......
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