[Bug c/37493] Auto inline when optimisation is enabled, causes problem.

hjl dot tools at gmail dot com gcc-bugzilla@gcc.gnu.org
Fri Sep 12 14:22:00 GMT 2008



------- Comment #2 from hjl dot tools at gmail dot com  2008-09-12 14:21 -------
Try

static int      
WaitLoop (unsigned int count)   
{
asm ("1: tst %0, %0\n" "bf/s 1b\n" "add #-1, %0": "=r"
(count):"0" (count));   
return count;   
}       


-- 


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



More information about the Gcc-bugs mailing list