Re: Inline assembly without inputs considered const/pure?

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

 



On 02/25/2016 03:36 PM, Matthias Pfaller wrote:
> When gcc decides to inline mrsbasepri it will again be free to CSE the
> mrs instructions :-(. Is it really just me having run into this problem?
> How do other people solve the problem that __asm__ without input is
> handled like a __attribute((const)) function?

Either with a memoryclobber, or make it volatile, or both.

Andrew.




[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