mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 21:48:09 +02:00
* traisenode.pass_typecheck: in the case of 'raise X at addr,frame' require 'addr' to be a far pointer in i8086 far code memory models
git-svn-id: trunk@25514 -
This commit is contained in:
parent
c1b0fb81f1
commit
5973b231ec
@ -237,6 +237,9 @@ implementation
|
||||
{$ifdef state_tracking}
|
||||
nstate,
|
||||
{$endif}
|
||||
{$ifdef i8086}
|
||||
cpuinfo,
|
||||
{$endif i8086}
|
||||
cgbase,procinfo
|
||||
;
|
||||
|
||||
@ -1929,7 +1932,14 @@ implementation
|
||||
begin
|
||||
{ addr }
|
||||
typecheckpass(right);
|
||||
{$ifdef i8086}
|
||||
if current_settings.x86memorymodel in x86_far_code_models then
|
||||
inserttypeconv(right,voidfarpointertype)
|
||||
else
|
||||
inserttypeconv(right,voidnearpointertype);
|
||||
{$else i8086}
|
||||
inserttypeconv(right,voidpointertype);
|
||||
{$endif i8086}
|
||||
{ frame }
|
||||
if assigned(third) then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user