Skip site navigation (1)Skip section navigation (2)
Date:      15 Mar 2002 19:42:37 +0100
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        obrien@FreeBSD.org
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/ufs/ffs ffs_softdep.c
Message-ID:  <xzpd6y5pt9e.fsf@flood.ping.uio.no>
In-Reply-To: <20020315103313.F44160@dragon.nuxi.com>
References:  <200203150406.g2F46Bw06312@freefall.freebsd.org> <xzpofhprj9v.fsf@flood.ping.uio.no> <20020315095447.C44160@dragon.nuxi.com> <xzppu25puf7.fsf@flood.ping.uio.no> <20020315103313.F44160@dragon.nuxi.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"David O'Brien" <obrien@FreeBSD.org> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzpd6y5pt9e.fsf>