* do not re-used gottpoff symbols as they are PC-relative

git-svn-id: trunk@40321 -
This commit is contained in:
florian 2018-11-15 20:07:56 +00:00
parent 53a27fe7b3
commit 095bd6da7d

View File

@ -1150,8 +1150,9 @@ implementation
while assigned(hp2) do
begin
if (hp2.typ=ait_const) and (tai_const(hp2).sym=tai_const(hp).sym)
and (tai_const(hp2).value=tai_const(hp).value) and (tai(hp2.previous).typ=ait_label)
then
and (tai_const(hp2).value=tai_const(hp).value) and (tai(hp2.previous).typ=ait_label) and
{ gottpoff symbols are PC relative, so we cannot reuse them }
(tai_const(hp2).consttype<>aitconst_gottpoff) then
begin
with taicpu(curtai).oper[curop]^.ref^ do
begin