This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] stdlib.h: use existing malloc/alloc_size attributedefines
- From: "Joseph S. Myers" <joseph at codesourcery dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: <libc-alpha at sourceware dot org>
- Date: Sun, 30 Dec 2012 09:29:48 +0000
- Subject: Re: [PATCH] stdlib.h: use existing malloc/alloc_size attributedefines
- References: <1356817894-16212-1-git-send-email-vapier@gentoo.org>
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