http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55467
Hans-Peter Nilsson <hp at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |INVALID --- Comment #7 from Hans-Peter Nilsson <hp at gcc dot gnu.org> 2012-11-26 18:02:41 UTC --- (In reply to comment #6) > Without volatile the compiler is free to > schedule the second asm before the first one (and does for e.g. -m32 -O2), Oh, that's what's happening. Wicked. > ... The "" -> NOP change is desirable > in any way, as the test wants to stop on the inline asm, if the inline asm is > empty, it stops on the following insn rather than on the inline asm. Yes. That break-on-empty-asm-line bothered me a little, but I shrugged it off, thinking the author probably intended what was there. ;) Nice with the nop.h. Ok, re-closing this.