This is the mail archive of the gcc-patches@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]

Re: [patch]: new returns misaligned pointers


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.



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