mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 21:09:24 +02:00
m68k: change the stack push order in the register calling convention to left-to-right. This should fix parameter handling in nested procedures (tnest5)
git-svn-id: trunk@47279 -
This commit is contained in:
parent
0b670d0d31
commit
9d425ff4ca
@ -483,10 +483,7 @@ unit cpupara;
|
||||
pass all unhandled parameters are done }
|
||||
for pass:=1 to 2 do
|
||||
begin
|
||||
if pass=1 then
|
||||
i:=0
|
||||
else
|
||||
i:=paras.count-1;
|
||||
i:=0;
|
||||
while true do
|
||||
begin
|
||||
hp:=tparavarsym(paras[i]);
|
||||
@ -631,22 +628,9 @@ unit cpupara;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
case pass of
|
||||
1:
|
||||
begin
|
||||
if i=paras.count-1 then
|
||||
break;
|
||||
inc(i);
|
||||
end;
|
||||
2:
|
||||
begin
|
||||
if i=0 then
|
||||
break;
|
||||
dec(i);
|
||||
end;
|
||||
else
|
||||
;
|
||||
end;
|
||||
if i=paras.count-1 then
|
||||
break;
|
||||
inc(i);
|
||||
end;
|
||||
end;
|
||||
result:=cur_stack_offset;
|
||||
|
Loading…
Reference in New Issue
Block a user