[Bug rtl-optimization/82602] IRA considers volatile asm to be moveable

ryxi at stu dot xidian.edu.cn gcc-bugzilla@gcc.gnu.org
Wed Oct 18 13:41:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82602

--- Comment #4 from Xi Ruoyao <ryxi at stu dot xidian.edu.cn> ---
By the way, in kernel code (compiler-gcc.h) there is a comment:

/* The "volatile" is due to gcc bugs */
#define barrier() __asm__ __volatile__("": : :"memory")

So the developer(s) actually think "volatile" is unnecessary, instead of the
"memory" clobber.


More information about the Gcc-bugs mailing list