2015-10-28 Richard Biener <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Oct 2015 13:41:25 +0000 (13:41 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 28 Oct 2015 13:41:25 +0000 (13:41 +0000)
commit0123775a88c6cf1035e4633fde7823a3e9889809
tree756c919bcfca1afd0e194fc442fe824eee93e406
parentaf3dc771214eeef25947bb29e053863e2b9957cb
2015-10-28  Richard Biener  <rguenther@suse.de>

* fold-const.c (negate_expr_p): Adjust the division case to
properly avoid introducing undefined overflow.
(fold_negate_expr): Likewise.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229484 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c