[patch]: new returns misaligned pointers
Richard Henderson
rth@cygnus.com
Tue Nov 30 23:59:00 GMT 1999
On Fri, Nov 12, 1999 at 06:26:25PM -0700, Diego Novillo wrote:
> I agree, but in this case they were expecting new and malloc to
> return the same alignment.
If the customer was merely expecting new and malloc to return
memory of identical alignment for its own sake, I think probably
they are wrong. It would take some digging in the standard to
prove it.
However, I also know that the customer's port has a 128-bit data
type, so they clearly have a real need of 128-bit aligned memory
(in some circumstances), and so _some_ change is necessary.
Too bad neither I nor Jason thought about the ABI implications
of the change I suggested...
r~
More information about the Gcc-patches
mailing list