This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Avoid optimizing memory references with side effects in compare-elim.c
> Here is a corrected version. Ok with this change?
>
> paul
>
> gcc/ChangeLog:
>
> 2018-06-06 Paul Koning <ni1d@arrl.net>
>
> * compare-elim.c (try_merge_compare): Don't merge compare if
> address contains a side effect.
> (try_eliminate_compare): Likewise.
> * gcc.c-torture/compile/20180605-1.c: New test case.
OK for mainline, thanks.
--
Eric Botcazou