Browse Source

ARMv6M was missing alignments for jumptables

git-svn-id: trunk@30775 -
Jeppe Johansen 10 years ago
parent
commit
6662cb6dd5
1 changed files with 1 additions and 0 deletions
  1. 1 0
      compiler/arm/narmset.pas

+ 1 - 0
compiler/arm/narmset.pas

@@ -242,6 +242,7 @@ implementation
             { do not use BX here to avoid switching into arm mode }
             current_asmdata.CurrAsmList.Concat(taicpu.op_reg_reg(A_MOV, NR_PC, tmpreg));
 
+            current_asmdata.CurrAsmList.Concat(tai_align.Create(4));                
             cg.a_label(current_asmdata.CurrAsmList,tablelabel);
             { generate jump table }
             last:=min_;