[PATCH] stdlib.h: use existing malloc/alloc_size attribute defines

Joseph S. Myers joseph@codesourcery.com
Sun Dec 30 09:46:00 GMT 2012


On Sat, 29 Dec 2012, Mike Frysinger wrote:

> 2012-12-29  Mike Frysinger  <vapier@gentoo.org>
> 
> 	* stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
> 	and __attribute_alloc_size.

__attribute_alloc_size is currently defined only in the internal header 
include/sys/cdefs.h (with a definition that is neither conditioned on 
appropriate GCC versions support, nor namespace-clean), not the installed 
misc/sys/cdefs.h, so can't be used in installed headers without a separate 
patch to move it to the installed header and make it properly conditional 
and namespace-clean for that header.

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list