fold-const.c (negate_expr_p): Adjust the division case to properly avoid introducing...
authorRichard Biener <rguenther@suse.de>
Wed, 28 Oct 2015 13:41:25 +0000 (13:41 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Wed, 28 Oct 2015 13:41:25 +0000 (13:41 +0000)
commitb851e3ee55d71ea8e44b8fac1e3be03585e1e0dd
tree756c919bcfca1afd0e194fc442fe824eee93e406
parent056b09955b97083e9dfcd9825160a408433143bf
fold-const.c (negate_expr_p): Adjust the division case to properly avoid introducing undefined overflow.

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.

From-SVN: r229484
gcc/ChangeLog
gcc/fold-const.c