This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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] 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


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