[PATCH] Replace __bzero with memset

Wilco Dijkstra Wilco.Dijkstra@arm.com
Mon Jun 12 12:12:00 GMT 2017


Andreas Schwab wrote:
> -/* Set N bytes of S to 0.  */
> -#define __bzero(s, n) __builtin_memset (s, '\0', n)
> -
>  /* Copy SRC to DEST, returning pointer to final NUL byte.  */
>  #ifndef __stpcpy
>  # define __stpcpy(dest, src) __builtin_stpcpy (dest, src)

> Does this depend on some other patch?

No, it's independent, but the patch tool often has difficulty if there are
unrelated changes nearby. There should not be a merge issue if the only
change is removal of lines which themselves match unchanged...

Wilco


More information about the Libc-alpha mailing list