https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111901
--- Comment #13 from Uroš Bizjak <ubizjak at gmail dot com> --- (In reply to Eric Botcazou from comment #12) > So what about just marking inline asms with memory clobber as having side > effects? I guess this would work, the compiler must preserve side effects when optimizing.