> Here is a corrected version. Ok with this change? > > paul > > gcc/ChangeLog: > > 2018-06-06 Paul Koning <n...@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