diff options
Diffstat (limited to 'gcc/config/rx/rx.c')
-rw-r--r-- | gcc/config/rx/rx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/rx/rx.c b/gcc/config/rx/rx.c index c68f29ef6b6..6d911d2edb8 100644 --- a/gcc/config/rx/rx.c +++ b/gcc/config/rx/rx.c @@ -1561,7 +1561,7 @@ rx_get_stack_layout (unsigned int * lowest, PUSHM. FIXME: Is it worth improving this heuristic ? */ - pushed_mask = (-1 << low) & ~(-1 << (high + 1)); + pushed_mask = (HOST_WIDE_INT_M1U << low) & ~(HOST_WIDE_INT_M1U << (high + 1)); unneeded_pushes = (pushed_mask & (~ save_mask)) & pushed_mask; if ((fixed_reg && fixed_reg <= high) @@ -1667,7 +1667,7 @@ ok_for_max_constant (HOST_WIDE_INT val) /* rx_max_constant_size specifies the maximum number of bytes that can be used to hold a signed value. */ - return IN_RANGE (val, (-1 << (rx_max_constant_size * 8)), + return IN_RANGE (val, (HOST_WIDE_INT_M1U << (rx_max_constant_size * 8)), ( 1 << (rx_max_constant_size * 8))); } |