------- Comment #4 from pinskia at gcc dot gnu dot org 2006-05-23 15:36 ------- Actually Loop invariant motion is still doing its job even if the asm does not clober memory, it does read memory and you did not record that. The correct way to fix this is: asm volatile("\tmovl (%1), %0\n" "\tincl %0\n" :"=r" (res) : "r" (pi), "m" (*pi)) ;
-- Pinski -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27725