* ensure that the label points inside the range where the raise is located for psabieh

git-svn-id: branches/debug_eh@41384 -
This commit is contained in:
florian 2019-02-19 22:19:30 +00:00
parent b1cc02e417
commit f66d7d431f

View File

@ -2205,6 +2205,10 @@ implementation
current_addr:=clabelnode.create(cnothingnode.create,clabelsym.create('$raiseaddr'));
addstatement(statements,current_addr);
right:=caddrnode.create(cloadnode.create(current_addr.labsym,current_addr.labsym.owner));
{ raise address off by one so we are for sure inside the action area for the raise }
if tf_use_psabieh in target_info.flags then
right:=caddnode.create_internal(addn,right,cordconstnode.create(1,sizesinttype,false));
end;
raisenode:=ccallnode.createintern('fpc_raiseexception',