re PR middle-end/27116 (Incorrect integer division (wrong sign).)
authorRichard Guenther <rguenther@suse.de>
Thu, 8 Jun 2006 08:49:19 +0000 (08:49 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 8 Jun 2006 08:49:19 +0000 (08:49 +0000)
commit960f80d1ee2d882f29886db66a3edf4c824eeaf0
tree4bf8760f5ecfc126786bc6da8fd99de0bb85f219
parent8e08deebfccb960a2bdbd9c7e30a9e3c4633e12d
re PR middle-end/27116 (Incorrect integer division (wrong sign).)

2006-06-08  Richard Guenther  <rguenther@suse.de>

PR middle-end/27116
* fold-const.c (negate_expr_p): We can negate BIT_NOT_EXPR
only, if overflow is defined and not trapping.
(negate_expr): Likewise.

* gcc.dg/torture/pr27116.c: New testcase.
* gcc.dg/pr15785-1.c: Remove test for invalid transformation.

From-SVN: r114483
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr15785-1.c
gcc/testsuite/gcc.dg/torture/pr27116.c [new file with mode: 0644]