From owner-freebsd-fs@FreeBSD.ORG Fri Nov 17 13:33:20 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 9B2DC16A416 for ; Fri, 17 Nov 2006 13:33:20 +0000 (UTC) (envelope-from kabaev@gmail.com) Received: from wx-out-0506.google.com (wx-out-0506.google.com [66.249.82.230]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73C1843D58 for ; Fri, 17 Nov 2006 13:33:18 +0000 (GMT) (envelope-from kabaev@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so830618wxc for ; Fri, 17 Nov 2006 05:33:17 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:in-reply-to:references:x-mailer:mime-version:content-type; b=Ud86v0LGt1ZOpA/RiuiixFzocEdogwuhLyTPJrV+lQ3dphjfaW5tGrTLjaywu2e4eYb3QpbIvKAlgQ9wbpJmTt6AET2qJD1H9tVRGX1/4GXe6I9t0gNtDm0vduoVEQDrkCc4dTefNjDo4gBy/MPrI8CY/GM3wO6H1GiEJX6uVvQ= Received: by 10.70.76.13 with SMTP id y13mr3105687wxa.1163770397391; Fri, 17 Nov 2006 05:33:17 -0800 (PST) Received: from kan.dnsalias.net ( [24.34.98.164]) by mx.google.com with ESMTP id i11sm4514444wxd.2006.11.17.05.33.15; Fri, 17 Nov 2006 05:33:16 -0800 (PST) Date: Fri, 17 Nov 2006 08:33:11 -0500 From: Alexander Kabaev To: Ruslan Ermilov Message-ID: <20061117083311.5ec6aee2@kan.dnsalias.net> In-Reply-To: <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> <20061117075724.GB21627@rambler-co.ru> X-Mailer: Sylpheed-Claws 2.5.2 (GTK+ 2.10.6; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Sig_yFa1scru.N6g2kcEU0vGrD3; protocol="application/pgp-signature"; micalg=PGP-SHA1 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 13:33:20 -0000 --Sig_yFa1scru.N6g2kcEU0vGrD3 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Fri, 17 Nov 2006 10:57:24 +0300 Ruslan Ermilov wrote: > 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. '-ffreestanding' should prevent this to happen but it does > > > not. As Max Laier pointed out, it was discussed long time ago. > > > Bruce Evans 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. >=20 inline definitions do not satisfy the requirement. So memset is NOT there. I implemented simple-minded amd64 and i386 vesrions for GCC4 import. =20 --=20 Alexander Kabaev --Sig_yFa1scru.N6g2kcEU0vGrD3 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFXboaQ6z1jMm+XZYRAhc+AJ9Ih12+/0eewcWbCkWR5O00Xz5vuwCgi/NO zgmz97+DwmSD1g1CbSoOTDs= =5Ty4 -----END PGP SIGNATURE----- --Sig_yFa1scru.N6g2kcEU0vGrD3--