On 22-Nov-01 David Xu wrote: > According to GCC manual of inline assembler instruction, it says if your > instruction > changes condition code register(on X86, it's cpu flag register, and a simple > addl > instruction can affect it), you'd put cc there, I have reviewed some source > header > files of bus management, they all have cc constraint, but others not, and > some > lines lost __volatile__ keyword, GCC can feel free to optimize them and > re-order > or delete these lines when it thinks this is a right decision, this could be > dangerous > when high optimizing option is turned on.
Bah, fair enough. There are probably several places that are missing "cc". I doubt that there are very many bugs from this though, since "cc" is clobbered very often during normal program flow. -- John Baldwin <[EMAIL PROTECTED]> <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message