raspbian
authorPascal Packaging Team <pkg-pascal-devel@lists.alioth.debian.org>
Thu, 24 Aug 2017 15:25:31 +0000 (16:25 +0100)
committerRaspbian forward porter <root@raspbian.org>
Thu, 24 Aug 2017 15:25:31 +0000 (16:25 +0100)
Gbp-Pq: Name raspbian.diff

fpcsrc/compiler/options.pas

index c57425d5dd518cd4c042b831fffb6cb2f81a072e..aa6254987d3305ad93cb8897edce3808ce69fc34 100644 (file)
@@ -3693,7 +3693,8 @@ begin
     begin
       if not(option.FPUSetExplicitly) then
         begin
-          init_settings.fputype:=fpu_vfpv3_d16
+          //RPI -- reduce default fpu to vfpv2
+          init_settings.fputype:=fpu_vfpv2
         end
       else
         begin
@@ -3730,10 +3731,9 @@ begin
       end;
   end;
 
-{ set default cpu type to ARMv7a for ARMHF unless specified otherwise }
+{ set default cpu type to ARMv6 for Raspbian unless specified otherwise }
 if (target_info.abi = abi_eabihf) then
   begin
-{$ifdef CPUARMV6}
     { if the compiler is built for armv6, then
       inherit this setting, e.g. Raspian is armhf but
       only armv6, this makes rebuilds of the compiler
@@ -3742,12 +3742,6 @@ if (target_info.abi = abi_eabihf) then
       init_settings.cputype:=cpu_armv6;
     if not option.OptCPUSetExplicitly then
       init_settings.optimizecputype:=cpu_armv6;
-{$else CPUARMV6}
-    if not option.CPUSetExplicitly then
-      init_settings.cputype:=cpu_armv7a;
-    if not option.OptCPUSetExplicitly then
-      init_settings.optimizecputype:=cpu_armv7a;
-{$endif CPUARMV6}
   end;
 
   if (init_settings.instructionset=is_thumb) and not(CPUARM_HAS_THUMB2 in cpu_capabilities[init_settings.cputype]) then