소스 검색

Use vfpv2 as default fpu for eabihf if cpu is below armv7

git-svn-id: trunk@39849 -
pierre 7 년 전
부모
커밋
0e0b43889f
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      compiler/options.pas

+ 4 - 1
compiler/options.pas

@@ -4122,7 +4122,10 @@ begin
       { Set FPU type }
       if not(option.FPUSetExplicitly) then
         begin
-          init_settings.fputype:=fpu_vfpv3_d16
+          if init_settings.cputype < cpu_armv7 then
+            init_settings.fputype:=fpu_vfpv2
+          else
+            init_settings.fputype:=fpu_vfpv3_d16;
         end
       else
         begin