diff options
-rw-r--r-- | gcc/ChangeLog | 10 | ||||
-rw-r--r-- | gcc/calls.c | 6 | ||||
-rw-r--r-- | gcc/flow.c | 14 | ||||
-rw-r--r-- | gcc/integrate.c | 4 | ||||
-rw-r--r-- | gcc/regmove.c | 2 |
5 files changed, 23 insertions, 13 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1616019..afc3ec4 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,15 @@ 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. (header): Likewise. (inner): Likewise. diff --git a/gcc/calls.c b/gcc/calls.c index a6c999c..3d4540d 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -1822,7 +1822,7 @@ try_to_integrate (fndecl, actparms, target, ignore, type, structure_value_addr) 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) { @@ -1902,7 +1902,7 @@ try_to_integrate (fndecl, actparms, target, ignore, type, structure_value_addr) 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 @@ -2285,7 +2285,7 @@ expand_call (exp, target, ignore) 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; } @@ -3974,13 +3974,13 @@ try_pre_increment (insn, reg, amount) 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)) @@ -4008,7 +4008,7 @@ try_pre_increment (insn, reg, 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) @@ -4036,11 +4036,11 @@ 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--) { @@ -4050,7 +4050,7 @@ find_use_as_address (x, reg, plusconst) 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') { @@ -4061,7 +4061,7 @@ find_use_as_address (x, reg, plusconst) if (value == 0) value = tem; else if (tem != 0) - return (rtx) (HOST_WIDE_INT) 1; + return (rtx) (size_t) 1; } } } diff --git a/gcc/integrate.c b/gcc/integrate.c index 0571756..b1fecc4 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -698,7 +698,7 @@ expand_inline_function (fndecl, parms, target, ignore, type, 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)); @@ -711,7 +711,7 @@ expand_inline_function (fndecl, parms, target, ignore, type, || (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 diff --git a/gcc/regmove.c b/gcc/regmove.c index f184deb..9530128 100644 --- a/gcc/regmove.c +++ b/gcc/regmove.c @@ -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 (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 |