PATCH: Define MALLOC_ALIGNMENT as 16 for x32

Joseph S. Myers joseph@codesourcery.com
Tue May 15 15:21:00 GMT 2012


On Tue, 15 May 2012, H.J. Lu wrote:

> X32 psABI specifies 16-byte alignment for malloc, the same as
> x86-64.  This patch defines MALLOC_ALIGNMENT as 16 for x32.  Tested
> on Linux/x32.  OK to install?

Will you also be resubmitting some form of Daniel Jacobowitz's malloc 
patch that we discussed last August to handle MALLOC_ALIGNMENT > 2 * 
SIZE_SZ?  (And if that gets in, has anyone figured out how to make 
powerpc32 take advantage of the change and use the larger malloc alignment 
it ought to use, while keeping ABI compatibility for old emacs binaries?)

-- 
Joseph S. Myers
joseph@codesourcery.com



More information about the Libc-alpha mailing list