This is the mail archive of the
mailing list for the GCC project.
Re: malloc attributes and realloc
On Fri, 2 Jan 2004, Kaveh R. Ghazi wrote:
> Another datapoint, I tried disabling the libiberty macro
> ATTRIBUTE_MALLOC which is applied to several allocation functions in
> libiberty like xmalloc, etc. I rebootstrapped GCC and found that
> without the attribute it slowed down 1% to 1.5% compiling combine.c at
> -g -O2.
Can you measure a performance difference if you add the attribute to
Joseph S. Myers