소스 검색

* Xtensa: align literals properly

git-svn-id: trunk@44382 -
florian 5 년 전
부모
커밋
f51a893d1d
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      compiler/xtensa/hlcgcpu.pas

+ 4 - 1
compiler/xtensa/hlcgcpu.pas

@@ -75,7 +75,10 @@ implementation
       { Xtensa needs the data before the subroutine }
       if assigned(data) and
          (not data.empty) then
-        current_asmdata.asmlists[alt].concatlist(data);
+        begin
+          data.Insert(tai_align.Create(4));
+          current_asmdata.asmlists[alt].concatlist(data);
+        end;
       inherited record_generated_code_for_procdef(pd,code,nil);
     end;