From owner-freebsd-hackers Mon Nov 26 9:43:46 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mail11.speakeasy.net (mail11.speakeasy.net [216.254.0.211]) by hub.freebsd.org (Postfix) with ESMTP id 4FFF837B41E for ; Mon, 26 Nov 2001 09:43:34 -0800 (PST) Received: (qmail 27326 invoked from network); 26 Nov 2001 17:43:57 -0000 Received: from unknown (HELO laptop.baldwin.cx) ([64.81.54.73]) (envelope-sender ) by mail11.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 26 Nov 2001 17:43:57 -0000 Message-ID: X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <005201c17331$c603bcd0$ef01a8c0@davidwnt> Date: Mon, 26 Nov 2001 09:43:32 -0800 (PST) From: John Baldwin To: David Xu Subject: Re: add some constraints in cpufunc.h Cc: freebsd-hackers@FreeBSD.org Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message