linux says it is a bug
Richard Biener
richard.guenther@gmail.com
Tue Mar 4 12:16:00 GMT 2014
On Tue, Mar 4, 2014 at 1:01 PM, Hans-Peter Nilsson <hp@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
More information about the Gcc
mailing list