Browse Source

* insert literals after the section start which belongs to the current procedure

git-svn-id: trunk@46528 -
florian 5 years ago
parent
commit
0881e4fd98
1 changed files with 2 additions and 6 deletions
  1. 2 6
      compiler/xtensa/hlcgcpu.pas

+ 2 - 6
compiler/xtensa/hlcgcpu.pas

@@ -115,16 +115,12 @@ implementation
     var
     var
       alt : TAsmListType;
       alt : TAsmListType;
     begin
     begin
-      if not(po_assembler in pd.procoptions) then
-        alt:=al_procedures
-      else
-        alt:=al_pure_assembler;
       { 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
         begin
         begin
-          data.Insert(tai_align.Create(4));
-          current_asmdata.asmlists[alt].concatlist(data);
+          data.Concat(tai_align.Create(4));
+          code.insertlist(data);
         end;
         end;
       inherited record_generated_code_for_procdef(pd,code,nil);
       inherited record_generated_code_for_procdef(pd,code,nil);
     end;
     end;