소스 검색

* ensure that softfloat and libgcc float never use rfs/wfs

git-svn-id: trunk@7229 -
florian 18 년 전
부모
커밋
d78071f8b2
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      rtl/arm/arm.inc
  2. 3 3
      rtl/arm/mathu.inc

+ 1 - 1
rtl/arm/arm.inc

@@ -23,7 +23,7 @@ const
 
 procedure fpc_cpuinit;
 begin
-{$if not(defined(wince)) and not(defined(gba)) and not(defined(nds))}
+{$if not(defined(wince)) and not(defined(gba)) and not(defined(nds)) and not(defined(FPUSOFT)) and not(defined(FPULIBGCC))}
   asm
     rfs r0
     and r0,r0,#0xffe0ffff

+ 3 - 3
rtl/arm/mathu.inc

@@ -212,7 +212,7 @@ end;
 }
 
 
-{$if not(defined(gba)) and not(defined(nds))}
+{$if not(defined(gba)) and not(defined(nds)) and not(defined(FPUSOFT)) and not(defined(FPULIBGCC))}
 const
   _FPU_MASK_IM  =  $00010000;      { invalid operation      }
   _FPU_MASK_ZM  =  $00020000;      { divide by zero         }
@@ -263,7 +263,7 @@ function GetExceptionMask: TFPUExceptionMask;
   var
     cw : dword;
   begin
-{$if not(defined(gba)) and not(defined(nds))}
+{$if not(defined(gba)) and not(defined(nds)) and not(defined(FPUSOFT)) and not(defined(FPULIBGCC))}
     Result:=[];
     cw:=FPU_GetCW;
 
@@ -294,7 +294,7 @@ function SetExceptionMask(const Mask: TFPUExceptionMask): TFPUExceptionMask;
   var
     cw : dword;
   begin
-{$if not(defined(gba)) and not(defined(nds))}
+{$if not(defined(gba)) and not(defined(nds)) and not(defined(FPUSOFT)) and not(defined(FPULIBGCC))}
     cw:=FPU_GetCW or _FPU_MASK_ALL;
 
     if exInvalidOp in Mask then