* tx86casenode.genjumptable: explicitly emit near pointers in the case jump table on i8086, regardless of the memory model

git-svn-id: trunk@25503 -
This commit is contained in:
nickysn 2013-09-16 19:58:45 +00:00
parent 3bc89a50ed
commit 8608969eb8

View File

@ -85,13 +85,21 @@ implementation
i:=last.svalue+1;
while i<=t^._low.svalue-1 do
begin
{$ifdef i8086}
list.concat(Tai_const.Create_sym_near(elselabel));
{$else i8086}
list.concat(Tai_const.Create_sym(elselabel));
{$endif i8086}
inc(i);
end;
i:=t^._low.svalue;
while i<=t^._high.svalue do
begin
{$ifdef i8086}
list.concat(Tai_const.Create_sym_near(blocklabel(t^.blockid)));
{$else i8086}
list.concat(Tai_const.Create_sym(blocklabel(t^.blockid)));
{$endif i8086}
inc(i);
end;
last:=t^._high;