compare-elim.c (try_merge_compare): Don't merge compare if address contains a side...
authorPaul Koning <ni1d@arrl.net>
Thu, 7 Jun 2018 17:55:05 +0000 (13:55 -0400)
committerPaul Koning <pkoning@gcc.gnu.org>
Thu, 7 Jun 2018 17:55:05 +0000 (13:55 -0400)
commita3e87f07f3dc36bd42ed82853429d64a4b5b9703
tree2d3ec078e149f926309b09d57d900fb27c257a8d
parent75d1c00452b12b51121236930d09578bc01f6306
compare-elim.c (try_merge_compare): Don't merge compare if address contains a side effect.

2018-06-07  Paul Koning  <ni1d@arrl.net>

gcc/

* compare-elim.c (try_merge_compare): Don't merge compare if
address contains a side effect.
(try_eliminate_compare): Likewise.

gcc/testsuite/

* gcc.c-torture/compile/20180605-1.c: New test.

From-SVN: r261287
gcc/ChangeLog
gcc/compare-elim.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/20180605-1.c [new file with mode: 0644]