[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:34:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82602
Xi Ruoyao <ryxi at stu dot xidian.edu.cn> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |ryxi at stu dot xidian.edu.cn
--- Comment #3 from Xi Ruoyao <ryxi at stu dot xidian.edu.cn> ---
I'm still not convinced this is a bug. For example, all kernel code
uses `asm volatile ("" ::: "memory")` as barrier to stop GCC to reorder code
through it, not `asm volatile ("" :::)`. So the developers have been aware
a "asm volatile" does NOT mean a barrier. If we change this behaviour and
stop reordering through all "asm volatile"s, the generated code could be
slower.
More information about the Gcc-bugs
mailing list