]> git.ipfire.org Git - thirdparty/gcc.git/commit
backport: [multiple changes]
authorRichard Biener <rguenther@suse.de>
Thu, 21 Jun 2018 09:50:36 +0000 (09:50 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 21 Jun 2018 09:50:36 +0000 (09:50 +0000)
commit182a64f333cf8ad8c2515f6a44bc85876f67c430
treefe41a65b351e1e1ac9e3a2355d61385d924dc550
parent7bc1b51043443440180870422f708dc43aa9c4a9
backport: [multiple changes]

2018-06-21  Richard Biener  <rguenther@suse.de>

Backport from mainline
2018-02-28  Richard Biener  <rguenther@suse.de>

PR middle-end/84607
* genmatch.c (capture_info::walk_match): Do not mark
captured expressions without operands as expr_p given
they act more like predicates and should be subject to
"lost tail" side-effect preserving.

* gcc.dg/pr84607.c: New testcase.

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

PR middle-end/85588
* 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/pr85588.c: New testcase.
* gcc.dg/torture/pr57656.c: Use dg-additional-options.

From-SVN: r261839
gcc/ChangeLog
gcc/fold-const.c
gcc/genmatch.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr84607.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr57656.c
gcc/testsuite/gcc.dg/torture/pr85588.c [new file with mode: 0644]