This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] stdlib.h: use existing malloc/alloc_size attributedefines


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]