[fpc-devel] Regarding Issue/Patch 0032637

J. Gareth Moreton gareth at moreton-family.com
Sun Nov 26 20:55:13 CET 2017


Hi everyone,

Re: https://bugs.freepascal.org/view.php?
id=32637

I have now modified my assembler code that 
contains ".seh_pushreg %rdi" after each 
"push %rdi" instruction (the Linux 
versions don't actually push any registers 
because the required %rdi register is 
volatile on that platform). It has now 
been uploaded to the bug report in 
question (any way to remove the old 
ones?).

Question though (although, by coincidence, 
it doesn't apply here), for the sake of 
SEH, must the stack be aligned in ALL 
circumstances - for example, if you push a 
register halfway through the procedure, 
must you then do something to ensure the 
stack returns to a 16-byte boundary and 
the SEH made aware of it?

Gareth aka. Kit



More information about the fpc-devel mailing list