[patch]: new returns misaligned pointers

Diego Novillo dnovillo@cygnus.com
Fri Nov 12 17:26:00 GMT 1999


On Fri, 12 Nov 1999, Richard Henderson wrote:

> On Fri, Nov 12, 1999 at 05:53:37PM -0700, Diego Novillo wrote:
> > But couldn't this still produce wrong alignments? What we really
> > want here is to align the header to the same alignment returned
> > by malloc().
> 
> And why do we want this?  The alignment returned by malloc
> in and of itself is nothing special.
> 
I agree, but in this case they were expecting new and malloc to
return the same alignment. That's the only reason why we needed
to change it.




More information about the Gcc-patches mailing list