[Bug tree-optimization/56250] Wrong constant folding on unsigned int
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 19 17:26:00 GMT 2013
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56250
--- Comment #8 from Jakub Jelinek <jakub at gcc dot gnu.org> 2013-02-19 17:26:15 UTC ---
Author: jakub
Date: Tue Feb 19 17:26:04 2013
New Revision: 196147
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=196147
Log:
Backported from mainline
2013-02-08 Jakub Jelinek <jakub@redhat.com>
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:
branches/gcc-4_7-branch/gcc/testsuite/gcc.c-torture/execute/pr56250.c
Modified:
branches/gcc-4_7-branch/gcc/ChangeLog
branches/gcc-4_7-branch/gcc/fold-const.c
branches/gcc-4_7-branch/gcc/testsuite/ChangeLog
More information about the Gcc-bugs
mailing list