On 09/04/2015 05:03 AM, Marek Polacek wrote:
This patch fixes a few -Wshift-negative-value warnings in the code.  It
oughtn't to cause any functional changes.  This will be needed for the
bootstrap to pass after I commit some other patch.

Bootstrapped/regtested on x86_64-linux, ok for trunk?

2015-09-03  Marek Polacek  <pola...@redhat.com>

        * 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.
OK.
jeff

Reply via email to