Date: Thu, 13 Aug 2015 08:24:42 +0100 From: David Chisnall <theraven@FreeBSD.org> To: araujo@FreeBSD.org Cc: "src-committers@freebsd.org" <src-committers@freebsd.org>, "svn-src-all@freebsd.org" <svn-src-all@freebsd.org>, "svn-src-head@freebsd.org" <svn-src-head@freebsd.org> Subject: Re: svn commit: r286715 - head/lib/libc/string Message-ID: <0CFBA0CC-FEEE-40CE-BC47-065613C64293@FreeBSD.org> In-Reply-To: <CAOfEmZgdpNL7iAX=dNYBidNmhHJqwonWTSP%2BFMeyMY9Xfto4wg@mail.gmail.com> References: <201508130231.t7D2VOhc069855@repo.freebsd.org> <20150813134548.U1375@besplex.bde.org> <CAOfEmZjOoYabLkQdhsZNPfV3r1CEk-dS9tFk-_oktqFvwSSnPw@mail.gmail.com> <CAOfEmZgdpNL7iAX=dNYBidNmhHJqwonWTSP%2BFMeyMY9Xfto4wg@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 13 Aug 2015, at 08:11, Marcelo Araujo <araujobsdport@gmail.com> = wrote: >=20 > The bcopy() was removed in IEEE Std 1003.1-2008 and it is marked as = LEGACY in IEEE Std 1003.1-2004. However, BSD has its implementation = before IEEE Std 1003.1-2001. >=20 > In my understood it is obsolete on POSIX, but not truly obsolete for = FreeBSD. > So I believe, this patch now address it in the correct way. Its use should be strongly discouraged in FreeBSD (or, ideally, replaced = with the macro from the POSIX man page). LLVM does a load of = optimisations for memmove and memcpy - using bcopy is a really good way = of bypassing all of these. David
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0CFBA0CC-FEEE-40CE-BC47-065613C64293>