PowerPC malloc alignment

Daniel Jacobowitz drow@false.org
Wed Oct 31 21:28:00 GMT 2007


On Wed, Oct 31, 2007 at 10:23:16PM +0100, Jakub Jelinek wrote:
> The main problem is emacs (aka the only user of
> malloc_set_state/malloc_get_state).  Changing the alignment is really an ABI
> change for these interfaces, unless it does some very ugly hacks in it.

Only if it saves in a dump with one and restores with the other, isn't
it?  Actually, I can't see how it matters at all.  I may have to
grovel through the emacs dumper to try to figure it out.

Meanwhile, mallocing anything containing a long double or vector
generates quietly wrong code unless you use posix_memalign :-(

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Libc-alpha mailing list