]> gcc.gnu.org Git - gcc.git/commit
re PR middle-end/61045 (Wrong constant folding)
authorRichard Biener <rguenther@suse.de>
Wed, 28 May 2014 12:44:11 +0000 (12:44 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 28 May 2014 12:44:11 +0000 (12:44 +0000)
commitb017a17489a1e89510a224a3796275ec5cac97c4
tree1be500648cca150639fee9e44beec23154844c0d
parenta4d6bf7e9fb614acec6d0df6932b60a88c13007c
re PR middle-end/61045 (Wrong constant folding)

2014-05-28  Richard Biener  <rguenther@suse.de>

PR middle-end/61045
* fold-const.c (fold_comparison): When folding
X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
the sign of the remaining constant operand stays the same.

* gcc.dg/pr61045.c: New testcase.

From-SVN: r211018
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr61045.c [new file with mode: 0644]
This page took 0.058986 seconds and 5 git commands to generate.