mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 08:28:09 +02:00
* correctly handle parameters on the stack with OS_NO
git-svn-id: trunk@30756 -
This commit is contained in:
parent
500a2051ac
commit
d1e48b0f71
@ -343,6 +343,7 @@ unit cpupara;
|
||||
else
|
||||
{ parameters are always passed completely in registers or in memory on avr }
|
||||
internalerror(2015041002);
|
||||
dec(paralen,tcgsize2size[paraloc^.size]);
|
||||
end;
|
||||
LOC_REFERENCE:
|
||||
begin
|
||||
@ -360,6 +361,7 @@ unit cpupara;
|
||||
paraloc^.reference.offset:=stack_offset;
|
||||
inc(stack_offset,hp.vardef.size);
|
||||
end;
|
||||
dec(paralen,hp.vardef.size);
|
||||
end;
|
||||
else
|
||||
internalerror(2002071002);
|
||||
@ -372,7 +374,6 @@ unit cpupara;
|
||||
inc(paraloc^.reference.offset,2);
|
||||
end;
|
||||
end;
|
||||
dec(paralen,tcgsize2size[paraloc^.size]);
|
||||
firstparaloc:=false;
|
||||
end;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user