[Bug rtl-optimization/24922] gcc -O2 removes important instruction for ASM

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Thu Nov 17 20:05:00 GMT 2005



------- Comment #1 from pinskia at gcc dot gnu dot org  2005-11-17 20:05 -------
Count is already in ecx so why should GCC move again count to the ecx register.

Your inline-asm does not tell GCC that ecx is touched which is why GCC is
removing the move.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24922



More information about the Gcc-bugs mailing list