This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] add alloc_size attribute
On Wed, May 09, 2007 at 04:40:03PM +0200, Richard Guenther wrote:
> >Good idea, I just wonder if it wouldn't be better to extend the malloc
> >attribute for this instead (i.e. it could have no arguments as it
> >does now, or one or two as your alloc_size argument does).
>
> I think we should not overload the malloc attribute, as we would be
> unable to handle realloc in this case.
Ah, ok. glibc uses malloc attribute even fore realloc, must have missed
Joseph's change.
Jakub