This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/56250] Wrong constant folding on unsigned int


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

--- Comment #6 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-08 15:06:37 UTC ---
Author: jakub
Date: Fri Feb  8 15:06:26 2013
New Revision: 195888

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=195888
Log:
    PR tree-optimization/56250
    * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
    if type is unsigned and code isn't MULT_EXPR.

    * gcc.c-torture/execute/pr56250.c: New test.

Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/pr56250.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]