Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Nov 2006 08:33:11 -0500
From:      Alexander Kabaev <kabaev@gmail.com>
To:        Ruslan Ermilov <ru@freebsd.org>
Cc:        freebsd-fs@freebsd.org, freebsd-current@freebsd.org, Andriy Gapon <avg@icyb.net.ua>, Jung-uk Kim <jkim@freebsd.org>
Subject:   Re: ZFS patches for FreeBSD.
Message-ID:  <20061117083311.5ec6aee2@kan.dnsalias.net>
In-Reply-To: <20061117075724.GB21627@rambler-co.ru>
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>

next in thread | previous in thread | raw e-mail | index | archive | help
--Sig_yFa1scru.N6g2kcEU0vGrD3
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

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:
> > On Thu, 16 Nov 2006 15:06:56 -0500
> > Jung-uk Kim <jkim@FreeBSD.org> wrote:
> >=20
> > > 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. '-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.
> > >=20
> > 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
> Yes.  But to make it clear: it's there in libkern.h, just not
> external.
>=20

inline definitions do not satisfy the requirement. So memset is NOT
there. I implemented simple-minded amd64 and i386 vesrions for GCC4
import. =20

--=20
Alexander Kabaev

--Sig_yFa1scru.N6g2kcEU0vGrD3
Content-Type: application/pgp-signature; name=signature.asc
Content-Disposition: attachment; filename=signature.asc

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (FreeBSD)

iD8DBQFFXboaQ6z1jMm+XZYRAhc+AJ9Ih12+/0eewcWbCkWR5O00Xz5vuwCgi/NO
zgmz97+DwmSD1g1CbSoOTDs=
=5Ty4
-----END PGP SIGNATURE-----

--Sig_yFa1scru.N6g2kcEU0vGrD3--



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