[Bug tree-optimization/27725] error in loop invariant motion tranformation

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Tue May 23 15:36:00 GMT 2006



------- 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



More information about the Gcc-bugs mailing list