* same fix as in r39988 for fpc_first_sqrt

git-svn-id: trunk@39991 -
This commit is contained in:
florian 2018-10-20 10:18:45 +00:00
parent 116f36fe56
commit 3078cc4b0d

View File

@ -4124,6 +4124,7 @@ implementation
var var
fdef: tdef; fdef: tdef;
procname: string[31]; procname: string[31];
callnode: tcallnode;
begin begin
if ((cs_fp_emulation in current_settings.moduleswitches) if ((cs_fp_emulation in current_settings.moduleswitches)
{$ifdef cpufpemu} {$ifdef cpufpemu}
@ -4155,9 +4156,10 @@ implementation
begin begin
{ create the call to the helper } { create the call to the helper }
{ on entry left node contains the parameter } { on entry left node contains the parameter }
result := ctypeconvnode.create(ccallnode.createintern('fpc_sqrt_real', callnode := ccallnode.createintern('fpc_sqrt_real',
ccallparanode.create(left,nil)),resultdef); ccallparanode.create(left,nil));
include(tcallnode(result).callnodeflags,cnf_check_fpu_exceptions); result := ctypeconvnode.create(callnode,resultdef);
include(callnode.callnodeflags,cnf_check_fpu_exceptions);
end; end;
left := nil; left := nil;
end; end;