------- Comment #11 from ebotcazou at gcc dot gnu dot org  2010-04-13 15:48 
-------
Subject: Bug 32628

Author: ebotcazou
Date: Tue Apr 13 15:47:38 2010
New Revision: 158274

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158274
Log:
        PR middle-end/32628
        * c-common.c (pointer_int_sum): Disregard overflow that occured only
        because of sign-extension change when converting to sizetype here...
        * fold-const.c (fold_convert_const_int_from_int): ...and not here.

        * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
        the folding to constants.  Remove redundant final conversion.
        (fold_binary) <associate>: Do not associate if the re-association of
        constants alone overflows.
        (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
        to the end of the list.
        (multiple_of_p) <COND_EXPR>: New case.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/c-common.c
    trunk/gcc/fold-const.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32628

Reply via email to