From owner-freebsd-fs@FreeBSD.ORG Fri Nov 17 02:56:47 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 81FB416A412 for ; Fri, 17 Nov 2006 02:56:47 +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 0829943D5D for ; Fri, 17 Nov 2006 02:56:45 +0000 (GMT) (envelope-from kabaev@gmail.com) Received: by wx-out-0506.google.com with SMTP id s18so716203wxc for ; Thu, 16 Nov 2006 18:56:45 -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=mu7dc/RhClrdLnWlTYVKXtI00Wup2RZA0OoPEShUZWLaqsKrb5H2/9hgiZs8yWbN7WQ45WAOI6BnMzRZlj8jGwqLyjs7WjnDaXAwCDHpLhvhHIGOChte0N2lSNGWapROi4wcSD1AA0jxt+XIzinZiHCS84fToZT/S3IBmeBRdpk= Received: by 10.90.25.7 with SMTP id 7mr1159365agy.1163732205269; Thu, 16 Nov 2006 18:56:45 -0800 (PST) Received: from kan.dnsalias.net ( [24.34.98.164]) by mx.google.com with ESMTP id 34sm4803445wra.2006.11.16.18.56.44; Thu, 16 Nov 2006 18:56:44 -0800 (PST) Date: Thu, 16 Nov 2006 21:56:39 -0500 From: Alexander Kabaev To: Jung-uk Kim Message-ID: <20061116215639.73d00824@kan.dnsalias.net> In-Reply-To: <200611161506.58128.jkim@FreeBSD.org> References: <1163701391.00638085.1163691003@10.7.7.3> <455CB8CA.8040603@icyb.net.ua> <200611161506.58128.jkim@FreeBSD.org> 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_Fy.h/80.Q_ScLGLPieVjIY3"; protocol="application/pgp-signature"; micalg=PGP-SHA1 Cc: freebsd-fs@FreeBSD.org, freebsd-current@FreeBSD.org, Andriy Gapon 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 02:56:47 -0000 --Sig_Fy.h/80.Q_ScLGLPieVjIY3 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Thu, 16 Nov 2006 15:06:56 -0500 Jung-uk Kim wrote: > 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 > Jung-uk Kim > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org" 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 Alexander Kabaev --Sig_Fy.h/80.Q_ScLGLPieVjIY3 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (FreeBSD) iD8DBQFFXSTqQ6z1jMm+XZYRAsjxAKCSietsAqGiPX6N3SQOBlHy3fuLXACg52MT DLASmMhgEraxIEFNxiNU9wI= =rzgl -----END PGP SIGNATURE----- --Sig_Fy.h/80.Q_ScLGLPieVjIY3--