Re: asm volatile("":::"memory) uncertainty.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Andrew,

> It won't: GCC does not inspect asms to see if they do
> anything. Besides, if you are really worried about that
> you can put a "do nothing" comment into the asm.
>
> I think your reasoning about asm goto is sound.  The
> only real problem you'll have is that GCC will to
> remove statements which it knows have no side effects.
>
> Andrew.

Do you mean the asm statement itself? Will the volatile not prevent that? Or am I missing something else.


Best,

Tom




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux