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.