Adriaan van Os wrote:
> J. Gareth Moreton wrote:
> 
>> For Florian's fix though, any local variables are given the correct
>> alignment on the stack, even if the stack is unaligned beforehand.
> 
> That's good news. Can you give a small code example ?

The x86-64 ABIs mandate 16 byte alignment of the stack after the
compiler-generated entry code.

> And I would
> suggest  to add test-programs (checking the addeess of aligned global,
> heap and stack variables) to the fpc test-suite,

There is already such a test program (except for heap, as we don't
guarantee any alignment for heap-allocated memory and hence there is
nothing to test).


Jonas
_______________________________________________
fpc-devel maillist  -  [email protected]
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to