re PR lto/85574 (LTO bootstapped binaries differ)
authorRichard Biener <rguenther@suse.de>
Fri, 4 May 2018 07:25:54 +0000 (07:25 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 4 May 2018 07:25:54 +0000 (07:25 +0000)
commit9b5713f7ce06d6f4c0df7410352623573d2506ea
treeeba13e4f2bd5af58b7b12a026ef0d945237cb5f8
parent047823853d8324eab7d6ad8f266ee5395c4a76ff
re PR lto/85574 (LTO bootstapped binaries differ)

2018-05-04  Richard Biener  <rguenther@suse.de>

PR middle-end/85574
* fold-const.c (negate_expr_p): Restrict negation of operand
zero of a division to when we know that can happen without
overflow.
(fold_negate_expr_1): Likewise.

* gcc.dg/torture/pr85574.c: New testcase.
* gcc.dg/torture/pr57656.c: Use dg-additional-options.

From-SVN: r259922
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr57656.c
gcc/testsuite/gcc.dg/torture/pr85574.c [new file with mode: 0644]