This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] add alloc_size attribute
- From: Dirk Mueller <dmueller at suse dot de>
- To: "Attila Feher F (JO/LMF)" <attila dot f dot feher at ericsson dot com>
- Cc: gcc-patches at gcc dot gnu dot org, meissner at suse dot de, richard dot guenther at gmail dot com, wolof at freemail dot hu
- Date: Wed, 25 Apr 2007 16:24:36 +0200
- Subject: Re: [PATCH] add alloc_size attribute
- References: <7FDAC9BBA02D6246B5272FD3019118B004506C11@esealmw113.eemea.ericsson.se>
On Wednesday, 25. April 2007, Attila Feher F (JO/LMF) wrote:
> I see that you plan to provide alignment support into the memory
> allocation system of C and C++. This is what I wrote to Benjamin:
Hmm? no. it doesn't have anything to do about alignment of memory allocations.
this is about annotating the size of the returned pointer so that gcc can do
better warnings (possibly even code optimisations) due to the additional
information. I'm not aware of any proposed or existing standard that would be
duplicated here.
Dirk