http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37493
Andrew Pinski changed:
What|Removed |Added
Resolution|INVALID |DUPLICATE
--- Comment #5 from Andrew Pins
--- Comment #4 from rguenth at gcc dot gnu dot org 2008-09-13 12:40 ---
Thus, invalid.
--
rguenth at gcc dot gnu dot org changed:
What|Removed |Added
Status|U
--- Comment #3 from prafullat at kpitcummins dot com 2008-09-12 15:18
---
Thank you HJ.
This works.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37493
--- 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=3
--- Comment #1 from graham dot stott at btinternet dot com 2008-09-12
14:04 ---
Subject: Re: New: Auto inline when optimisation is enabled, causes problem.
All,
Read the documentation for "%=" w.r.t generating unique labels inline
assembler.
Replacing your uses of _loop with _loop%