diff options
author | Marek Polacek <polacek@redhat.com> | 2015-09-14 10:36:50 +0000 |
---|---|---|
committer | Marek Polacek <mpolacek@gcc.gnu.org> | 2015-09-14 10:36:50 +0000 |
commit | aa256c4aedce567eff0d5fdf7b2e4067bc9e3c42 (patch) | |
tree | 001e0f81efbd2a370e6d6c036da01bc1cd490e18 /gcc/rtlanal.c | |
parent | 0f876f22887f239cedca64ff170b71e5f1daaf54 (diff) | |
download | gcc-aa256c4aedce567eff0d5fdf7b2e4067bc9e3c42.zip gcc-aa256c4aedce567eff0d5fdf7b2e4067bc9e3c42.tar.gz gcc-aa256c4aedce567eff0d5fdf7b2e4067bc9e3c42.tar.bz2 |
c-common.c (warn_for_sign_compare): Cast to unsigned when shifting a negative value.
* c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
a negative value.
* c-typeck.c (set_nonincremental_init_from_string): Use
HOST_WIDE_INT_M1U when shifting a negative value.
* rtlanal.c (split_double): Cast to unsigned when shifting a negative
value.
* sched-int.h (UNKNOWN_DEP_COST): Likewise.
From-SVN: r227743
Diffstat (limited to 'gcc/rtlanal.c')
-rw-r--r-- | gcc/rtlanal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/rtlanal.c b/gcc/rtlanal.c index ef98f4b..b1be4db 100644 --- a/gcc/rtlanal.c +++ b/gcc/rtlanal.c @@ -5805,9 +5805,9 @@ split_double (rtx value, rtx *first, rtx *second) if (BITS_PER_WORD < HOST_BITS_PER_LONG && BITS_PER_WORD == 32) { if (l[0] & ((long) 1 << 31)) - l[0] |= ((long) (-1) << 32); + l[0] |= ((unsigned long) (-1) << 32); if (l[1] & ((long) 1 << 31)) - l[1] |= ((long) (-1) << 32); + l[1] |= ((unsigned long) (-1) << 32); } #endif |