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.