Explorar o código

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

git-svn-id: trunk@39849 -
pierre %!s(int64=7) %!d(string=hai) anos
pai
achega
0e0b43889f
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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