This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]