mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 01:29:19 +02:00
* when adding OPR_LOCAL with OPR_REFERENCE in tx86intreader.AddReferences, add
the offsets correctly: 1) localconstoffset is added with constoffset 2) localsymofs is added with ref.offset git-svn-id: trunk@38470 -
This commit is contained in:
parent
ba97e919e6
commit
77c782c89b
@ -889,6 +889,7 @@ Unit Rax86int;
|
|||||||
Message(asmr_e_multiple_index);
|
Message(asmr_e_multiple_index);
|
||||||
end;
|
end;
|
||||||
Inc(tmplocal.localconstoffset,dest.opr.constoffset);
|
Inc(tmplocal.localconstoffset,dest.opr.constoffset);
|
||||||
|
Inc(tmplocal.localsymofs,dest.opr.ref.offset);
|
||||||
segreg:=dest.opr.ref.segment;
|
segreg:=dest.opr.ref.segment;
|
||||||
dest.opr:=tmplocal;
|
dest.opr:=tmplocal;
|
||||||
if segreg<>NR_NO then
|
if segreg<>NR_NO then
|
||||||
@ -928,7 +929,7 @@ Unit Rax86int;
|
|||||||
Message(asmr_e_multiple_index);
|
Message(asmr_e_multiple_index);
|
||||||
end;
|
end;
|
||||||
Inc(dest.opr.localconstoffset,src.opr.constoffset);
|
Inc(dest.opr.localconstoffset,src.opr.constoffset);
|
||||||
Inc(dest.opr.localsymofs,src.opr.constoffset);
|
Inc(dest.opr.localsymofs,src.opr.ref.offset);
|
||||||
if src.opr.ref.segment<>NR_NO then
|
if src.opr.ref.segment<>NR_NO then
|
||||||
SetSegmentOverride(dest,src.opr.ref.segment);
|
SetSegmentOverride(dest,src.opr.ref.segment);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user