From owner-cvs-all Fri Mar 15 10:42:50 2002 Delivered-To: cvs-all@freebsd.org Received: from flood.ping.uio.no (flood.ping.uio.no [129.240.78.31]) by hub.freebsd.org (Postfix) with ESMTP id 23D4237B400; Fri, 15 Mar 2002 10:42:40 -0800 (PST) Received: by flood.ping.uio.no (Postfix, from userid 2602) id A95F95346; Fri, 15 Mar 2002 19:42:38 +0100 (CET) X-URL: http://www.ofug.org/~des/ X-Disclaimer: The views expressed in this message do not necessarily coincide with those of any organisation or company with which I am or have been affiliated. To: obrien@FreeBSD.org Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/ufs/ffs ffs_softdep.c References: <200203150406.g2F46Bw06312@freefall.freebsd.org> <20020315095447.C44160@dragon.nuxi.com> <20020315103313.F44160@dragon.nuxi.com> From: Dag-Erling Smorgrav Date: 15 Mar 2002 19:42:37 +0100 In-Reply-To: <20020315103313.F44160@dragon.nuxi.com> Message-ID: Lines: 19 User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG "David O'Brien" writes: > It is a for() loop (or was that another file I made this same fix to), > which we know is not guaranteed to run at least once. In this case it is, and gcc could deduce it (if it tried) by seeing that the loop condition holds true at the beginning of the loop: for (loopcnt = 10; loopcnt > 0; loopcnt--) { /* ... */ } > BTW, you should see the long list of warnings from linprocfs on the > Alpha. hint, hint ;-) Yeah, I'll take a look at it. Thanks for reminding me! DES -- Dag-Erling Smorgrav - des@ofug.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message