Re: Inline asm - unexpected optimization

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

 



The inlne asm has side effects you didn't report to gcc, so you need the
volatile here.
OK thanks.  I guess there is no way to report this kind of side
effect?  so you have to use volatile

That's exactly what volatile means: "this asm has some unspecified
side effect".


Segher



[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