This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch]: new returns misaligned pointers
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.
For the port in question, they have a 128-bit data type that
needs to be properly aligned, which is more than the 64-bit
alignment we'd been giving it. Beyond that, I don't think
there's a problem.
r~