* fixed def used for saving the result of fpc_setjmp() after r30497, fixes

cycle for x86-86 (mantis #27812)

git-svn-id: trunk@30506 -
This commit is contained in:
Jonas Maebe 2015-04-09 07:36:45 +00:00
parent 9568f728f7
commit 8fc562a2f8

View File

@ -452,8 +452,8 @@ implementation
{ perform the fpc_setjmp call }
setjmpres:=hlcg.g_call_system_proc(list,pd,[@paraloc1],nil);
location_reset(tmpresloc,LOC_REGISTER,def_cgsize(setjmpres.def));
tmpresloc.register:=hlcg.getaddressregister(list,pushexceptres.def);
hlcg.gen_load_cgpara_loc(list,pushexceptres.def,setjmpres,tmpresloc,true);
tmpresloc.register:=hlcg.getintregister(list,setjmpres.def);
hlcg.gen_load_cgpara_loc(list,setjmpres.def,setjmpres,tmpresloc,true);
hlcg.g_exception_reason_save(list,setjmpres.def,ossinttype,tmpresloc.register,t.reasonbuf);
{ if we get 0 here in the function result register, it means that we
longjmp'd back here }