Browse Source

Only try to use softfpu functions when fputype is fpu_soft

git-svn-id: trunk@45751 -
pierre 5 years ago
parent
commit
96ac7f29f7
1 changed files with 2 additions and 2 deletions
  1. 2 2
      compiler/arm/narmcnv.pas

+ 2 - 2
compiler/arm/narmcnv.pas

@@ -113,8 +113,8 @@ implementation
 
     function tarmtypeconvnode.first_real_to_real: tnode;
       begin
-        if not(FPUARM_HAS_VFP_DOUBLE in fpu_capabilities[current_settings.fputype]) and
-          not (target_info.system in systems_wince) then
+        if (current_settings.fputype=fpu_soft) and
+           not (target_info.system in systems_wince) then
           begin
             case tfloatdef(left.resultdef).floattype of
               s32real: