From d99431e519fdeb16edb1222b77430ac9853a2334 Mon Sep 17 00:00:00 2001 From: Wilco Dijkstra Date: Mon, 12 Jun 2017 14:56:53 +0100 Subject: Replace all internal uses of __bzero with memset. This removes the need to redirect it to a builtin and means memset is inlined whenever possible, including with -Os. * sunrpc/bindrsvprt.c (bindresvport): Change __bzero to memset. * sunrpc/clnt_gen.c (clnt_create): Likewise. * sunrpc/des_impl.c (_des_crypt): Likewise. * sunrpc/key_call.c (key_gendes): Likewise. * sunrpc/pmap_rmt.c (clnt_broadcast): Likewise. * sunrpc/svc_simple.c (universal): Likewise. * sunrpc/svc_tcp.c (svctcp_create): Likewise. * sunrpc/svc_udp.c (svcudp_bufcreate): Likewise. * sysdeps/arm/aeabi_memclr.c (__aeabi_memclr): Likewise. --- sysdeps/arm/aeabi_memclr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sysdeps') diff --git a/sysdeps/arm/aeabi_memclr.c b/sysdeps/arm/aeabi_memclr.c index 6687e49..03263ea 100644 --- a/sysdeps/arm/aeabi_memclr.c +++ b/sysdeps/arm/aeabi_memclr.c @@ -17,12 +17,12 @@ #include -/* Clear memory. Can't alias to bzero because it's not defined in the - same translation unit. */ +/* Set memory like memset, but different argument order and no return + value required. Also only integer caller-saves may be used. */ void __aeabi_memclr (void *dest, size_t n) { - __bzero (dest, n); + memset (dest, 0, n); } /* Versions of the above which may assume memory alignment. */ -- cgit v1.1