From owner-freebsd-ia64@FreeBSD.ORG Thu Mar 18 01:06:23 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 70CDF16A4CF; Thu, 18 Mar 2004 01:06:23 -0800 (PST) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id E321543D1D; Thu, 18 Mar 2004 01:06:20 -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 i2I9AlW3005767 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 18 Mar 2004 11:10:48 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.12.11/8.12.11) id i2I955BH089416; Thu, 18 Mar 2004 11:05:05 +0200 (EET) (envelope-from ru) Date: Thu, 18 Mar 2004 11:05:05 +0200 From: Ruslan Ermilov To: Marcel Moolenaar Message-ID: <20040318090505.GA77835@ip.net.ua> References: <20040317040254.386947303A@freebsd-current.sentex.ca> <20040317113931.GF49920@ip.net.ua> <20040317200307.GA46126@ip.net.ua> <20040317205104.GA29066@dhcp01.pn.xcllnt.net> <20040317213014.GB46747@ip.net.ua> <20040318084128.GA59199@dhcp01.pn.xcllnt.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="9amGYk9869ThD9tj" Content-Disposition: inline In-Reply-To: <20040318084128.GA59199@dhcp01.pn.xcllnt.net> User-Agent: Mutt/1.5.6i X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: FreeBSD Tinderbox cc: current@freebsd.org cc: ia64@freebsd.org 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: Thu, 18 Mar 2004 09:06:23 -0000 --9amGYk9869ThD9tj Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 18, 2004 at 12:41:28AM -0800, Marcel Moolenaar wrote: > On Wed, Mar 17, 2004 at 11:30:14PM +0200, Ruslan Ermilov wrote: > > On Wed, Mar 17, 2004 at 12:51:04PM -0800, Marcel Moolenaar wrote: > > > On Wed, Mar 17, 2004 at 10:03:07PM +0200, Ruslan Ermilov wrote: > > > > > >=20 > > > > > > for(i =3D 0; i < SOUND_MIXER_NRDEVICES; i++) { > > > > > > if ((1 << i) & mask) { > > > > > > v |=3D mt[i].iselect; > > > > > > } > > > > > > } > > > > > >=20 > > > > >=20 > > > > Actually, this is easily reproduceable by compiling the correspondi= ng > > > > module on pluto1 with CFLAGS=3D"-O2 -pipe" set in environment. The= re's > > > > clearly a bug in gcc(1), as: > > >=20 > > > What happens if you replace the for-loop with an equivalent while-loo= p? > > >=20 > > Doesn't make any difference. sparc64 and amd64 do not exhibit this pro= blem. > > (Yes, I tested this on amd64 as well, skipping the final ld(1) step of = the > > module's build.) >=20 > The source code appears to be fishy. The variable v is never used. > It's only defined. If you change the "return mask" to a "return v", > the warning goes away. >=20 But other *_setrecsrc() methods return "mask" too. It looks like it comput= es something but doesn't use that computed value to program the device, as oth= er *_setrecsrc() methods do. (Still, gcc(1) is buggy here.) Cheers, --=20 Ruslan Ermilov FreeBSD committer ru@FreeBSD.org --9amGYk9869ThD9tj Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAWWZBUkv4P6juNwoRAusvAJ9b99BV30AoMozBCzO/hIGBN4sc/ACfUDjg p5twG7rR8LDr+m3xaqE21ZM= =J7jm -----END PGP SIGNATURE----- --9amGYk9869ThD9tj--