mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 11:20:15 +02:00
* update the stack alignment field of parameters when doing so for paralocs
git-svn-id: trunk@41204 -
This commit is contained in:
parent
7a65e1f393
commit
353be907c7
@ -458,7 +458,10 @@ unit cpupara;
|
|||||||
if (nextintreg in [RS_R1,RS_R3]) then
|
if (nextintreg in [RS_R1,RS_R3]) then
|
||||||
inc(nextintreg)
|
inc(nextintreg)
|
||||||
else if nextintreg>RS_R3 then
|
else if nextintreg>RS_R3 then
|
||||||
stack_offset:=align(stack_offset,8);
|
begin
|
||||||
|
stack_offset:=align(stack_offset,8);
|
||||||
|
hp.paraloc[side].Alignment:=8;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
if nextintreg<=RS_R3 then
|
if nextintreg<=RS_R3 then
|
||||||
begin
|
begin
|
||||||
@ -573,7 +576,10 @@ unit cpupara;
|
|||||||
if (target_info.abi in [abi_eabi,abi_eabihf]) and
|
if (target_info.abi in [abi_eabi,abi_eabihf]) and
|
||||||
firstparaloc and
|
firstparaloc and
|
||||||
(paradef.alignment=8) then
|
(paradef.alignment=8) then
|
||||||
stack_offset:=align(stack_offset,8);
|
begin
|
||||||
|
stack_offset:=align(stack_offset,8);
|
||||||
|
hp.paraloc[side].Alignment:=8;
|
||||||
|
end;
|
||||||
|
|
||||||
paraloc^.loc:=LOC_REFERENCE;
|
paraloc^.loc:=LOC_REFERENCE;
|
||||||
paraloc^.reference.index:=NR_STACK_POINTER_REG;
|
paraloc^.reference.index:=NR_STACK_POINTER_REG;
|
||||||
|
Loading…
Reference in New Issue
Block a user