Add "memory" as clobber to the asm used by barrier().