Ver código fonte

* don't pass march always to gas because the rtl uses always pld to be able
to chose the right code path at runtime

git-svn-id: trunk@22709 -

florian 12 anos atrás
pai
commit
a95641e43c
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      compiler/arm/agarmgas.pas

+ 2 - 1
compiler/arm/agarmgas.pas

@@ -109,7 +109,8 @@ unit agarmgas;
 
         if current_settings.cputype=cpu_armv7m then
           result:='-march=armv7m -mthumb -mthumb-interwork '+result
-        else
+        { pass only cpu types >= armv6 because the rtl uses runtime selected code with armv5te statements }
+        else if current_settings.cputype>=cpu_armv6 then
           result:='-march='+cputype_to_gas_march[current_settings.cputype]+' '+result;
 
         if target_info.abi = abi_eabihf then