Explorar el Código

aggas.pas, tgnuassembler.writetree.doalign:
+ add the case of a label instead of a jump directly in front of the align (happened in "do_open" for StdIO)

git-svn-id: trunk@22889 -

svenbarth hace 12 años
padre
commit
17ff90deb9
Se han modificado 1 ficheros con 7 adiciones y 2 borrados
  1. 7 2
      compiler/aggas.pas

+ 7 - 2
compiler/aggas.pas

@@ -653,8 +653,13 @@ implementation
                 begin
                 begin
 {$ifdef m68k}
 {$ifdef m68k}
                   if assigned(lasthp) and
                   if assigned(lasthp) and
-                      (lasthp.typ=ait_instruction) and
-                      (taicpu(lasthp).opcode<>A_JMP) then
+                      (
+                        (lasthp.typ=ait_instruction) and
+                        (taicpu(lasthp).opcode<>A_JMP)
+                      ) or
+                      (
+                        (lasthp.typ=ait_label)
+                      ) then
                     begin
                     begin
                       if ispowerof2(alignment,i) then
                       if ispowerof2(alignment,i) then
                         begin
                         begin