On 6/3/2017 12:05 AM, Bruce Evans wrote:
> bcopy() is essentially the same as memmove(), but is implemented more
> optimally
>   (the non-use of memmove() in the kernel used to be implememented by
>   by not having it, but someone broke this by adding an memmove() wrapper
>   which is an extern function that calls bcopy().  This is even slower than
>   the inline wrappers used to break intentionally leaving out some of the
>   other functions).

In r189170. It seems to me we should change systm.h back to a macro
#define memmove(dst, src, len) bcopy((src), (dst), (len))
And then keep the symbol in sys/libkern/memmove.c for
the cases where Clang insists on having the symbol for linking.

-- 
Regards,
Bryan Drewery

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to