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, 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~

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