Ver Fonte

* Xtensa: align literals properly

git-svn-id: trunk@44382 -
florian há 5 anos atrás
pai
commit
f51a893d1d
1 ficheiros alterados com 4 adições e 1 exclusões
  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;