Browse Source

+ proper assembler command line parameters for arm thumb

git-svn-id: trunk@23979 -
florian 12 năm trước cách đây
mục cha
commit
07762e5c25
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      compiler/arm/agarmgas.pas

+ 2 - 0
compiler/arm/agarmgas.pas

@@ -112,6 +112,8 @@ unit agarmgas;
 
         if current_settings.cputype in cpu_thumb2 then
           result:='-march='+cputype_to_gas_march[current_settings.cputype]+' -mthumb -mthumb-interwork '+result
+        else if current_settings.cputype in cpu_thumb then
+          result:='-march='+cputype_to_gas_march[current_settings.cputype]+' -mthumb -mthumb-interwork '+result
         // EDSP instructions in RTL require armv5te at least to not generate error
         else if current_settings.cputype >= cpu_armv5te then
           result:='-march='+cputype_to_gas_march[current_settings.cputype]+' '+result;