[PATCH] Don't use __warn_memset_zero_len for gcc-5.0 or newer

Ondřej Bílka neleai@seznam.cz
Tue Nov 25 14:15:00 GMT 2014


On Tue, Nov 25, 2014 at 06:31:37PM +0530, Siddhesh Poyarekar wrote:
> Hi,
> 
> gcc now warns when the arguments to memset may have been accidentally
> transposed (i.e. length set to zero instead of the byte), so we don't
> need that bit of the code in glibc headers anymore.
> 
> Tested on x86_64.  Coe generated by gcc 4.8 is identical with or
> without the patch.  I also tested gcc master, which does not result in
> any new failures.  It does fail quite a few FORTIFY_SOURCE tests, but
> those failures are not due to this patch.  I'll look at them deeper.
> OK to commit this?
> 
Looks ok.



More information about the Libc-alpha mailing list