* c-common.c (warn_for_sign_compare): Cast to unsigned when shifting
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Sep 2015 10:36:50 +0000 (10:36 +0000)
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 14 Sep 2015 10:36:50 +0000 (10:36 +0000)
commit85f5e2ee5bdb17494e93b808d40eddda858a0a2d
tree001e0f81efbd2a370e6d6c036da01bc1cd490e18
parent1bca8cbd0c68366f07277f98ce6963e10c2aa617
* 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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227743 138bc75d-0d04-0410-961f-82ee72b054a4
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