فهرست منبع

LOC_FPUREGISTER is not used for func_getretloc ig using fpu_soft

git-svn-id: trunk@23175 -
pierre 12 سال پیش
والد
کامیت
548a687a17
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      compiler/m68k/cpupara.pas

+ 2 - 1
compiler/m68k/cpupara.pas

@@ -197,7 +197,8 @@ unit cpupara;
 
 
         paraloc:=result.add_location;
         paraloc:=result.add_location;
         { Return in FPU register? }
         { Return in FPU register? }
-        if not(cs_fp_emulation in current_settings.moduleswitches) and (result.def.typ=floatdef) then
+        if not (cs_fp_emulation in current_settings.moduleswitches) and
+           not (current_settings.fputype=fpu_soft) and (result.def.typ=floatdef) then
           begin
           begin
             paraloc^.loc:=LOC_FPUREGISTER;
             paraloc^.loc:=LOC_FPUREGISTER;
             paraloc^.register:=NR_FPU_RESULT_REG;
             paraloc^.register:=NR_FPU_RESULT_REG;