Browse Source

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

git-svn-id: trunk@39849 -
pierre 6 years ago
parent
commit
0e0b43889f
1 changed files with 4 additions and 1 deletions
  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