Re: [patch] spinlocks: remove 'volatile'

Joe Korty
2006-07-08T09:46:38Z

On Fri, Jul 07, 2006 at 11:54:10PM -0400, Albert Cahalan wrote:
> That's all theoretical though. Today, gcc's volatile does
> not follow the C standard on modern hardware. Bummer.
> It'd be low-performance anyway though.

But gcc would follow the standard if it emitted a 'lock'
insn on every volatile reference. It should at least
have an option to do that.

Joe