Browse Source

* Xtensa: align literals properly

git-svn-id: trunk@44382 -
florian 5 years ago
parent
commit
f51a893d1d
1 changed files with 4 additions and 1 deletions
  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 }
       { Xtensa needs the data before the subroutine }
       if assigned(data) and
       if assigned(data) and
          (not data.empty) then
          (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);
       inherited record_generated_code_for_procdef(pd,code,nil);
     end;
     end;