OSDN Git Service

2008-08-31 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 31 Aug 2008 13:39:26 +0000 (13:39 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 31 Aug 2008 13:39:26 +0000 (13:39 +0000)
commitcad86ee8558ee25aedbb248eafd4958ed2ef436f
tree1b10c7db6ee3b9634eca1ea1b3b6e7593223402b
parentf29b326e63ac389a41948b052128a3f5dec1e4df
2008-08-31  Richard Guenther  <rguenther@suse.de>

PR middle-end/37289
* fold-const.c (fold_binary): Retain conversions in folding
~A + 1 to -A.

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

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139831 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr37289.c [new file with mode: 0644]