This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch]: new returns misaligned pointers
- To: Richard Henderson <rth at cygnus dot com>
- Subject: Re: [patch]: new returns misaligned pointers
- From: Diego Novillo <dnovillo at cygnus dot com>
- Date: Fri, 12 Nov 1999 18:26:25 -0700 (MST)
- cc: Mark Mitchell <mark at codesourcery dot com>, gcc-patches at gcc dot gnu dot org
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.