https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80875
--- Comment #2 from Marek Polacek <mpolacek at gcc dot gnu.org> --- commit 0123775a88c6cf1035e4633fde7823a3e9889809 Author: rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> Date: Wed Oct 28 13:41:25 2015 +0000 2015-10-28 Richard Biener <rguent...@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