This is the mail archive of the
mailing list for the GCC project.
Re: Optimization of conditional access to globals: thread-unsafe?
On Tue, Oct 30, 2007 at 09:49:00 -0700, Ian Lance Taylor wrote:
> I don't know which suggestion you are referring to. The patch I wrote
> will retain the optimization in the case where the memory location is
> unconditionally written later in the function. This is most relevant
> in that the optimization can take place in a loop, if somewhere after
> the loop the memory location is unconditionally written.
OK, thanks for the description, I just couldn't build GCC after update
to see what result looks like. And big Thank You for the patch!