|
@@ -74,10 +74,11 @@ unit cpupi;
|
|
|
|
|
|
function ti8086procinfo.calc_stackframe_size:longint;
|
|
|
begin
|
|
|
- { align to 4 bytes at least
|
|
|
+ { ???:
|
|
|
+ align to 4 bytes at least
|
|
|
otherwise all those subl $2,%esp are meaningless PM }
|
|
|
- if target_info.stackalign<=4 then
|
|
|
- result:=Align(tg.direction*tg.lasttemp,min(current_settings.alignment.localalignmax,4))
|
|
|
+ if target_info.stackalign<=2 then
|
|
|
+ result:=Align(tg.direction*tg.lasttemp,min(current_settings.alignment.localalignmax,2))
|
|
|
else
|
|
|
{ aligned during stack frame allocation, because also depends number
|
|
|
of saved registers }
|