]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: re PR tree-optimization/56250 (Wrong constant folding on unsigned int)
authorJakub Jelinek <jakub@redhat.com>
Tue, 19 Feb 2013 17:26:04 +0000 (18:26 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 19 Feb 2013 17:26:04 +0000 (18:26 +0100)
commit11ba2b86b5e9012e44c143a7a0136c7d0b9d7f1c
treef5a09c7eb73596c09c8bec1ad4b63c59b571cdba
parent953142867a72fd748ca54e5aeec49afe99062dd2
backport: re PR tree-optimization/56250 (Wrong constant folding on unsigned int)

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.

From-SVN: r196147
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr56250.c [new file with mode: 0644]