]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/c/c-typeck.c
c-common.c (warn_for_sign_compare): Cast to unsigned when shifting a negative value.
authorMarek Polacek <polacek@redhat.com>
Mon, 14 Sep 2015 10:36:50 +0000 (10:36 +0000)
committerMarek Polacek <mpolacek@gcc.gnu.org>
Mon, 14 Sep 2015 10:36:50 +0000 (10:36 +0000)
commitaa256c4aedce567eff0d5fdf7b2e4067bc9e3c42
tree001e0f81efbd2a370e6d6c036da01bc1cd490e18
parent0f876f22887f239cedca64ff170b71e5f1daaf54
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
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/c/ChangeLog
gcc/c/c-typeck.c
gcc/rtlanal.c
gcc/sched-int.h