This is the mail archive of the gcc@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: locking problem with mips atomicity


On Thu, Mar 18, 2004 at 11:04:19AM +0000, Richard Sandiford wrote:
> Sorry if I've missed the explanation, but why is using a memory clobber
> an improvement over an unused memory operand?

To make sure that any memory protected by the mutex is not
moved across the acquisition of the lock.


r~


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