Browse Source

* Loops should not be aligned when optimizing for size

daniel 23 years ago
parent
commit
95427989a6
1 changed files with 11 additions and 5 deletions
  1. 11 5
      compiler/ncgflw.pas

+ 11 - 5
compiler/ncgflw.pas

@@ -104,8 +104,10 @@ implementation
          if testatbegin then
          if testatbegin then
            cg.a_jmp_always(exprasmlist,lcont);
            cg.a_jmp_always(exprasmlist,lcont);
 
 
-         { align loop target }
-         exprasmList.concat(Tai_align.Create(aktalignment.loopalign));
+	 if not(cs_littlesize in aktglobalswitches) then
+            { align loop target }
+            exprasmList.concat(Tai_align.Create(aktalignment.loopalign));
+	    
          cg.a_label(exprasmlist,lloop);
          cg.a_label(exprasmlist,lloop);
 
 
          aktcontinuelabel:=lcont;
          aktcontinuelabel:=lcont;
@@ -364,8 +366,9 @@ implementation
                end;
                end;
            end;
            end;
 
 
-         { align loop target }
-         exprasmList.concat(Tai_align.Create(aktalignment.loopalign));
+	 if not(cs_littlesize in aktglobalswitches) then
+            { align loop target }
+            exprasmList.concat(Tai_align.Create(aktalignment.loopalign));
          cg.a_label(exprasmlist,l3);
          cg.a_label(exprasmlist,l3);
 
 
          { help register must not be in instruction block }
          { help register must not be in instruction block }
@@ -628,7 +631,10 @@ begin
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.23  2002-07-19 11:41:35  daniel
+  Revision 1.24  2002-07-20 08:14:24  daniel
+  * Loops should not be aligned when optimizing for size
+
+  Revision 1.23  2002/07/19 11:41:35  daniel
   * State tracker work
   * State tracker work
   * The whilen and repeatn are now completely unified into whilerepeatn. This
   * The whilen and repeatn are now completely unified into whilerepeatn. This
     allows the state tracker to change while nodes automatically into
     allows the state tracker to change while nodes automatically into