Hi, On Sat, Sep 08, 2007 at 07:45:32AM -0700, H.J. Lu wrote: > On Sat, Sep 08, 2007 at 12:57:13AM -0500, Gabriel Dos Reis wrote: > > I seem to remember we had had this discussion before -- in connection > > with optimizations related to 'malloc' attribute -- and decided not to > > apply the attribute because it was not clear whether it was permitted > > by the standard. I don't seem to get my hands on reference to the > > thread right now. > > There is a related bug: > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32748
I followed that discussion in July and read it over again now (it starts with http://gcc.gnu.org/ml/gcc/2007-07/msg00513.html). However, I do not believe that it is relevant, because unlike realloc, new does not half-destroy half-retain an object. Martin