From owner-freebsd-current@FreeBSD.ORG Thu Nov 16 20:08:33 2006 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4548016A4D2; Thu, 16 Nov 2006 20:08:33 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from anuket.mj.niksun.com (gwnew.niksun.com [65.115.46.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id A01F343D5F; Thu, 16 Nov 2006 20:07:46 +0000 (GMT) (envelope-from jkim@FreeBSD.org) Received: from niksun.com (anuket [10.70.0.5]) by anuket.mj.niksun.com (8.13.1/8.13.1) with ESMTP id kAGK7DqK054308; Thu, 16 Nov 2006 15:07:13 -0500 (EST) (envelope-from jkim@FreeBSD.org) From: Jung-uk Kim To: freebsd-current@FreeBSD.org Date: Thu, 16 Nov 2006 15:06:56 -0500 User-Agent: KMail/1.6.2 References: <1163701391.00638085.1163691003@10.7.7.3> <455CB8CA.8040603@icyb.net.ua> In-Reply-To: <455CB8CA.8040603@icyb.net.ua> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200611161506.58128.jkim@FreeBSD.org> X-Virus-Scanned: ClamAV 0.88.6/2200/Thu Nov 16 09:10:16 2006 on anuket.mj.niksun.com X-Virus-Status: Clean Cc: freebsd-fs@FreeBSD.org, Andriy Gapon Subject: Re: ZFS patches for FreeBSD. X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Nov 2006 20:08:33 -0000 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 = {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. 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. Jung-uk Kim