basic asm and memory clobbers

Paul_Koning@Dell.com Paul_Koning@Dell.com
Tue Nov 24 18:00:00 GMT 2015


> On Nov 24, 2015, at 12:49 PM, Ian Lance Taylor <iant@google.com> wrote:
> 
> On Tue, Nov 24, 2015 at 8:58 AM,  <Paul_Koning@dell.com> wrote:
>> 
>> I'm really concerned with loosening the meaning of basic asm.  I
>> wish I could find the documentation that says, or implies, that it
>> is a memory clobber.  And/or that it is implicitly volatile.
> 
> The volatile one is right there in the current docs.
> 
> https://gcc.gnu.org/onlinedocs/gcc/Basic-Asm.html#Basic-Asm
> 
> "All basic asm blocks are implicitly volatile."

Ok, that's what I remembered.  I reported finding that this was not implemented correctly, some number of versions ago.

	paul



More information about the Gcc mailing list