ZFS patches for FreeBSD.

Ruslan Ermilov ru at freebsd.org
Thu Nov 16 23:57:23 PST 2006


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 <jkim at FreeBSD.org> 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 = {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.
> > 
> 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.


Cheers,
-- 
Ruslan Ermilov
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20061117/f17b2495/attachment.pgp


More information about the freebsd-current mailing list