From owner-freebsd-ia64@FreeBSD.ORG Wed Mar 17 12:05:34 2004 Return-Path: Delivered-To: freebsd-ia64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DFA1216A4CF; Wed, 17 Mar 2004 12:05:33 -0800 (PST) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8618343D41; Wed, 17 Mar 2004 12:05:31 -0800 (PST) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.10/8.12.9) with ESMTP id i2HK8lW3093663 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 17 Mar 2004 22:09:52 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.12.11/8.12.11) id i2HK3895046184; Wed, 17 Mar 2004 22:03:08 +0200 (EET) (envelope-from ru) Date: Wed, 17 Mar 2004 22:03:07 +0200 From: Ruslan Ermilov To: Dag-Erling Sm?rgrav Message-ID: <20040317200307.GA46126@ip.net.ua> References: <20040317040254.386947303A@freebsd-current.sentex.ca> <20040317113931.GF49920@ip.net.ua> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OXfL5xGRrasGEqWY" Content-Disposition: inline In-Reply-To: <20040317113931.GF49920@ip.net.ua> User-Agent: Mutt/1.5.6i X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: current@freebsd.org cc: ia64@freebsd.org cc: FreeBSD Tinderbox Subject: Re: [current tinderbox] failure on ia64/ia64 X-BeenThere: freebsd-ia64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the IA-64 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Mar 2004 20:05:34 -0000 --OXfL5xGRrasGEqWY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Mar 17, 2004 at 01:39:31PM +0200, Ruslan Ermilov wrote: > On Wed, Mar 17, 2004 at 11:22:28AM +0100, Dag-Erling Sm?rgrav wrote: > > FreeBSD Tinderbox writes: > > > /other/tinderbox/CURRENT/ia64/ia64/src/sys/dev/sound/pci/vibes.c: In = function `sv_mix_setrecsrc': > > > /other/tinderbox/CURRENT/ia64/ia64/src/sys/dev/sound/pci/vibes.c:541:= warning: `i' might be used uninitialized in this function > > > *** Error code 1 > >=20 > > Now that is wierd... and I can't reproduce it. There is no way i can > > be used uninitialized, it is not referenced anywhere outside this > > loop: > >=20 > > for(i =3D 0; i < SOUND_MIXER_NRDEVICES; i++) { > > if ((1 << i) & mask) { > > v |=3D mt[i].iselect; > > } > > } > >=20 > > If the problem persists, we'll have to conclude that gcc is broken > > somehow. > >=20 > I cannot reproduce it either, but perhaps this is the same reason why > we still have -Wno-uninitialized in for normal WARNS > levels. >=20 Actually, this is easily reproduceable by compiling the corresponding module on pluto1 with CFLAGS=3D"-O2 -pipe" set in environment. There's clearly a bug in gcc(1), as: - substituting 2 instead of SOUND_MIXER_NRDEVICES in the line below makes it compile without a warning; for(i =3D 0; i < SOUND_MIXER_NRDEVICES; i++) { - Bumping it to 3 or greater gives this mis-warning. Cheers, --=20 Ruslan Ermilov FreeBSD committer ru@FreeBSD.org --OXfL5xGRrasGEqWY Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAWK77Ukv4P6juNwoRAp5HAKCHKkiIQ3XUgviMgWrV4QgePGJ3QwCcCyLu XPQREVENbvqQNh8T+alZYc8= =pmTg -----END PGP SIGNATURE----- --OXfL5xGRrasGEqWY--