This is the mail archive of the gcc@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: 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
xrealloc?

-- 
Joseph S. Myers
jsm@polyomino.org.uk


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