Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Nov 2006 15:40:04 +0200
From:      Andriy Gapon <avg@icyb.net.ua>
To:        Alexander Kabaev <kabaev@gmail.com>
Cc:        freebsd-fs@freebsd.org, freebsd-current@freebsd.org, Jung-uk Kim <jkim@freebsd.org>
Subject:   Re: ZFS patches for FreeBSD.
Message-ID:  <455DBBB4.7010501@icyb.net.ua>
In-Reply-To: <20061117083311.5ec6aee2@kan.dnsalias.net>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
on 17/11/2006 15:33 Alexander Kabaev said the following:
> On Fri, 17 Nov 2006 10:57:24 +0300
> Ruslan Ermilov <ru@freebsd.org> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?455DBBB4.7010501>