]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR tree-optimization/56051 (Wrong expression evaluation)
authorJakub Jelinek <jakub@redhat.com>
Mon, 21 Jan 2013 17:55:34 +0000 (18:55 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Mon, 21 Jan 2013 17:55:34 +0000 (18:55 +0100)
commit8f498c1bdcb9d3b99905f654faa0a343c3e9ef99
treea3bdef1e25a778da35e6160d0a5f3bf467d3ae9b
parent35d59da7f7e282a68589d8c857ee7f0503d588d2
re PR tree-optimization/56051 (Wrong expression evaluation)

PR tree-optimization/56051
* fold-const.c (fold_binary_loc): Don't fold
X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
a narrowing conversion, or widening conversion from signed
to unsigned.

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

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