On Tue, Mar 4, 2014 at 1:01 PM, Hans-Peter Nilsson <h...@bitrange.com> wrote: > On Tue, 4 Mar 2014, Yury Gribov wrote: >> Richard wrote: >> > volatile __asm__("":::"memory") >> > >> > is a memory barrier and a barrier for other volatile instructions. >> >> AFAIK asm without output arguments is implicitly marked as volatile. So it >> may >> not be needed in barrier() at all. > > Yes, exactly. Had it at some time been needed, that'd be a bug. > (I have a faint recollection of that, faint enough to be a false > memory.)
Ah, indeed. > brgds, H-P