[PATCH] PR string/19907: Incorrect memcpy tests

Florian Weimer fw@deneb.enyo.de
Sun May 8 17:14:00 GMT 2016


* H. J. Lu:

> +  /* Must clear the destination buffer set by the previous run.  */
> +  for (i = 0; i < len; i++)
> +    dst[i] = 0;

Doesn't this need some sort of compiler barrier so that GCC will not
eliminate the dead stores if it recognizes a memset-style loop?



More information about the Libc-alpha mailing list