[PATCH] MALLOC_ABI_ALIGNMENT macro + malloc-alignment param

Olivier Hainque hainque@adacore.com
Fri Jul 18 09:31:00 GMT 2008


Hi Richard,

Opinion on the second version sent at

  http://gcc.gnu.org/ml/gcc-patches/2008-07/msg00027.html

?

This is a refined suggestion, with a safer general default to
MIN (STACK_BOUNDARY, 2*BITS_PER_WORD) and a --param option, a
nice improvement over the first candidate IMO, thanks to your
constructive comments.

FWIW, the 2*BITS_PER_WORD idea came up reading the "debug_malloc"
AIX documentation:

<< By default, the malloc subroutine returns a pointer aligned on a
   2-word boundary. This is necessary for standards conformance [...]
>>

Thanks in advance,

Olivier




More information about the Gcc-patches mailing list