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:
Károly Balogh 2020-11-02 02:01:24 +00:00
parent 0b670d0d31
commit 9d425ff4ca

View File

@ -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;