From owner-freebsd-fs@FreeBSD.ORG Fri Nov 17 07:57:23 2006 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D529716A407; Fri, 17 Nov 2006 07:57:23 +0000 (UTC) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (relay0.rambler.ru [81.19.66.187]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3FEEC43D55; Fri, 17 Nov 2006 07:57:22 +0000 (GMT) (envelope-from ru@rambler-co.ru) Received: from relay0.rambler.ru (localhost [127.0.0.1]) by relay0.rambler.ru (Postfix) with ESMTP id 43C3F5E25; Fri, 17 Nov 2006 10:57:21 +0300 (MSK) Received: from edoofus.park.rambler.ru (unknown [81.19.65.108]) by relay0.rambler.ru (Postfix) with ESMTP id 2150F5DEA; Fri, 17 Nov 2006 10:57:21 +0300 (MSK) Received: (from ru@localhost) by edoofus.park.rambler.ru (8.13.8/8.13.8) id kAH7vOiX021821; Fri, 17 Nov 2006 10:57:24 +0300 (MSK) (envelope-from ru) Date: Fri, 17 Nov 2006 10:57:24 +0300 From: Ruslan Ermilov To: Alexander Kabaev Message-ID: <20061117075724.GB21627@rambler-co.ru> References: <1163701391.00638085.1163691003@10.7.7.3> <455CB8CA.8040603@icyb.net.ua> <200611161506.58128.jkim@FreeBSD.org> <20061116215639.73d00824@kan.dnsalias.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ftEhullJWpWg/VHq" Content-Disposition: inline In-Reply-To: <20061116215639.73d00824@kan.dnsalias.net> User-Agent: Mutt/1.5.13 (2006-08-11) X-Virus-Scanned: No virus found Cc: freebsd-fs@freebsd.org, freebsd-current@freebsd.org, Andriy Gapon , Jung-uk Kim Subject: Re: ZFS patches for FreeBSD. X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Nov 2006 07:57:23 -0000 --ftEhullJWpWg/VHq Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Nov 16, 2006 at 09:56:39PM -0500, Alexander Kabaev wrote: > On Thu, 16 Nov 2006 15:06:56 -0500 > Jung-uk Kim wrote: >=20 > > On Thursday 16 November 2006 02:15 pm, Andriy Gapon wrote: > > > Hmm, I saw errors like this with some other 3rd party kernel module > > > when its sources had constructs like: > > > > > > struct some_struct s =3D {0}; > > > > > > Changing the above initialization to explicit bzero() call helped > > > in that case, but I think that there should be some compiler flags > > > or something to handle this. > >=20 > > AFAIK, there was no way to handle this GCC bug with compiler flags. =20 > > '-ffreestanding' should prevent this to happen but it does not. As=20 > > Max Laier pointed out, it was discussed long time ago. Bruce Evans=20 > > had good analysis on this issue, too. > >=20 > This is not a GCC bug. -ffreestanding is _documented_ as requiring > memset and friends as resolvable extern symbols. We were just lucky to > get away without it before. >=20 Yes. But to make it clear: it's there in libkern.h, just not external. Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --ftEhullJWpWg/VHq Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFXWtkqRfpzJluFF4RAnONAKCEnwh1SR3Qxv+Y5PlgplswawZ6nQCfRCbN mkPoAAB1u+A9sDnSaqaANzY= =dmYW -----END PGP SIGNATURE----- --ftEhullJWpWg/VHq--