2013-09-09 Richard Biener <rguenther@suse.de>
commit06ac82a04f70e76ae6f9feab297ff06cf969b897
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Sep 2013 09:49:54 +0000 (9 09:49 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 9 Sep 2013 09:49:54 +0000 (9 09:49 +0000)
tree3bcb592e1a572464c885f2dd9666e5ae5e2b072b
parentb2cfde2827ed872b5658fb2692f871c605c38be3
2013-09-09  Richard Biener  <rguenther@suse.de>

Backport from mainline
2013-09-03  Richard Biener  <rguenther@suse.de>

PR middle-end/57656
* fold-const.c (negate_expr_p): Fix division case.
(negate_expr): Likewise.

* gcc.dg/torture/pr57656.c: New testcase.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch@202387 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr57656.c [new file with mode: 0644]