From: Markus Trippelsdorf Date: Fri, 21 Nov 2014 06:50:47 +0000 (+0000) Subject: rs6000: Fix compiler warning X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b5e27711ecc2ed6392dfd9ce78b0907b0d676c0;p=gcc.git rs6000: Fix compiler warning 2014-11-20 Markus Trippelsdorf * config/rs6000/rs6000.c (includes_rldic_lshift_p): Use HOST_WIDE_INT_M1U instead of ~0. (includes_rldicr_lshift_p): Likewise. From-SVN: r217905 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8cfdd62ff88..bf03c81160b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2014-11-21 Markus Trippelsdorf + + * config/rs6000/rs6000.c (includes_rldic_lshift_p): Use + HOST_WIDE_INT_M1U instead of ~0. + (includes_rldicr_lshift_p): Likewise. + 2014-11-21 Chung-Ju Wu * config/nds32/nds32.c (nds32_legitimate_address_p): For LO_SUM, diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c index a9604cf3fa9..264598ef7a8 100644 --- a/gcc/config/rs6000/rs6000.c +++ b/gcc/config/rs6000/rs6000.c @@ -16197,10 +16197,10 @@ includes_rldic_lshift_p (rtx shiftop, rtx andop) unsigned HOST_WIDE_INT c, lsb, shift_mask; c = INTVAL (andop); - if (c == 0 || c == ~0) + if (c == 0 || c == HOST_WIDE_INT_M1U) return 0; - shift_mask = ~0; + shift_mask = HOST_WIDE_INT_M1U; shift_mask <<= INTVAL (shiftop); /* Find the least significant one bit. */ @@ -16235,7 +16235,7 @@ includes_rldicr_lshift_p (rtx shiftop, rtx andop) { unsigned HOST_WIDE_INT c, lsb, shift_mask; - shift_mask = ~0; + shift_mask = HOST_WIDE_INT_M1U; shift_mask <<= INTVAL (shiftop); c = INTVAL (andop);