Re: [RFC/PATCH] doc: volatile considered evil

Jeremy Fitzhardinge
2007-05-08T21:05:56Z

Krzysztof Halasa wrote:
> David Rientjes <rientjes@google.com> writes:
>
>
>> Since 'volatile' has two different semantics depending on the context in
>> which it is used, this warning should be appended to include the fact that
>> it is legitimate to use for inline assembly.
>>
>
> I think it hasn't two semantics, it's like arguing that char has two
> semantics.
>

No, David means that "asm volatile (...)" is meaningful and OK to use.

J