浏览代码

+ proper assembler command line parameters for arm thumb

git-svn-id: trunk@23979 -
florian 12 年之前
父节点
当前提交
07762e5c25
共有 1 个文件被更改,包括 2 次插入0 次删除
  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
         if current_settings.cputype in cpu_thumb2 then
           result:='-march='+cputype_to_gas_march[current_settings.cputype]+' -mthumb -mthumb-interwork '+result
           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
         // EDSP instructions in RTL require armv5te at least to not generate error
         else if current_settings.cputype >= cpu_armv5te then
         else if current_settings.cputype >= cpu_armv5te then
           result:='-march='+cputype_to_gas_march[current_settings.cputype]+' '+result;
           result:='-march='+cputype_to_gas_march[current_settings.cputype]+' '+result;