------- Comment #2 from rearnsha at gcc dot gnu dot org 2010-02-06 13:12 ------- The correct way to write your ASM is to mark it as clobbering memory. That is:
asm volatile ("swi #0" :: "r" (a) : "memory"); -- rearnsha at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42984