From owner-freebsd-current@FreeBSD.ORG Fri Nov 17 13:40:40 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 90A1316A47E; Fri, 17 Nov 2006 13:40:40 +0000 (UTC) (envelope-from avg@icyb.net.ua) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA33E43D6D; Fri, 17 Nov 2006 13:40:08 +0000 (GMT) (envelope-from avg@icyb.net.ua) Received: from [212.40.38.87] (oddity-e.topspin.kiev.ua [212.40.38.87]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id PAA27017; Fri, 17 Nov 2006 15:40:05 +0200 (EET) (envelope-from avg@icyb.net.ua) Message-ID: <455DBBB4.7010501@icyb.net.ua> Date: Fri, 17 Nov 2006 15:40:04 +0200 From: Andriy Gapon User-Agent: Thunderbird 1.5.0.8 (X11/20061113) MIME-Version: 1.0 To: Alexander Kabaev 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> <20061117083311.5ec6aee2@kan.dnsalias.net> In-Reply-To: <20061117083311.5ec6aee2@kan.dnsalias.net> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-fs@freebsd.org, freebsd-current@freebsd.org, Jung-uk Kim 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: Fri, 17 Nov 2006 13:40:40 -0000 on 17/11/2006 15:33 Alexander Kabaev said the following: > 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: >>> 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. >>> >> Yes. But to make it clear: it's there in libkern.h, just not >> external. >> > > inline definitions do not satisfy the requirement. So memset is NOT > there. I implemented simple-minded amd64 and i386 vesrions for GCC4 > import. And just for the record: I got an impression from a message in a parallel branch of this discussion thread that the compiler behavior in this respect might also depend on optimization level, which probably doesn't mean much for practical usage, but might be an interesting factoid. -- Andriy Gapon