[patch]: new returns misaligned pointers

Diego Novillo dnovillo@cygnus.com
Fri Nov 12 16:53:00 GMT 1999


> Might I suggest, if we're going to decide to break things, 
> that instead of changing to always using BIGGEST_ALIGNMENT,
> that we use the alignment of the type being allocated?  Seems
> like that way we'd avoid wasting little bits of memory
> unnecessarily.
> 
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().

Diego.



More information about the Gcc-patches mailing list