Browse Source

* release alignopts

Jonas Maebe 25 years ago
parent
commit
f2123cbcc1
2 changed files with 8 additions and 10 deletions
  1. 4 7
      compiler/cg386cal.pas
  2. 4 3
      compiler/opts386.pas

+ 4 - 7
compiler/cg386cal.pas

@@ -294,10 +294,8 @@ implementation
 {        must_pop : boolean; }
 {        must_pop : boolean; }
          pop_size : longint;
          pop_size : longint;
          pop_allowed : boolean;
          pop_allowed : boolean;
-{$ifdef OPTALIGN}
          pop_esp : boolean;
          pop_esp : boolean;
          push_size : longint;
          push_size : longint;
-{$endif OPTALIGN}
 
 
 
 
       label
       label
@@ -427,7 +425,6 @@ implementation
 {$endif GDB}
 {$endif GDB}
              end;
              end;
           end;
           end;
-{$ifdef OPTALIGN}
          if pop_allowed and (cs_align in aktglobalswitches) then
          if pop_allowed and (cs_align in aktglobalswitches) then
            begin
            begin
               pop_esp:=true;
               pop_esp:=true;
@@ -449,7 +446,6 @@ implementation
            end
            end
          else
          else
            pop_esp:=false;
            pop_esp:=false;
-{$endif OPTALIGN}
          if (p^.resulttype<>pdef(voiddef)) and
          if (p^.resulttype<>pdef(voiddef)) and
             ret_in_param(p^.resulttype) then
             ret_in_param(p^.resulttype) then
            begin
            begin
@@ -1112,10 +1108,8 @@ implementation
                 else if pushedparasize<>0 then
                 else if pushedparasize<>0 then
                   emit_const_reg(A_ADD,S_L,pushedparasize,R_ESP);
                   emit_const_reg(A_ADD,S_L,pushedparasize,R_ESP);
              end;
              end;
-{$ifdef OPTALIGN}
          if pop_esp then
          if pop_esp then
            emit_reg(A_POP,S_L,R_ESP);
            emit_reg(A_POP,S_L,R_ESP);
-{$endif OPTALIGN}
       dont_call:
       dont_call:
          pushedparasize:=oldpushedparasize;
          pushedparasize:=oldpushedparasize;
          unused:=unusedregisters;
          unused:=unusedregisters;
@@ -1511,7 +1505,10 @@ implementation
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.4  2000-07-21 15:14:01  jonas
+  Revision 1.5  2000-07-27 13:03:35  jonas
+    * release alignopts
+
+  Revision 1.4  2000/07/21 15:14:01  jonas
     + added is_addr field for labels, if they are only used for getting the address
     + added is_addr field for labels, if they are only used for getting the address
        (e.g. for io checks) and corresponding getaddrlabel() procedure
        (e.g. for io checks) and corresponding getaddrlabel() procedure
 
 

+ 4 - 3
compiler/opts386.pas

@@ -51,9 +51,7 @@ begin
                case opt[j] of
                case opt[j] of
                  '-' : initglobalswitches:=initglobalswitches-[cs_optimize,cs_fastoptimize,cs_slowoptimize,cs_littlesize,
                  '-' : initglobalswitches:=initglobalswitches-[cs_optimize,cs_fastoptimize,cs_slowoptimize,cs_littlesize,
                            cs_regalloc,cs_uncertainopts,cs_align];
                            cs_regalloc,cs_uncertainopts,cs_align];
-{$ifdef OPTALIGN}
                  'a' : initglobalswitches:=initglobalswitches+[cs_align];
                  'a' : initglobalswitches:=initglobalswitches+[cs_align];
-{$endif OPTALIGN}
                  'g' : initglobalswitches:=initglobalswitches+[cs_littlesize];
                  'g' : initglobalswitches:=initglobalswitches+[cs_littlesize];
                  'G' : initglobalswitches:=initglobalswitches-[cs_littlesize];
                  'G' : initglobalswitches:=initglobalswitches-[cs_littlesize];
                  'r' : initglobalswitches:=initglobalswitches+[cs_regalloc];
                  'r' : initglobalswitches:=initglobalswitches+[cs_regalloc];
@@ -114,7 +112,10 @@ end;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.2  2000-07-13 11:32:44  michael
+  Revision 1.3  2000-07-27 13:03:36  jonas
+    * release alignopts
+
+  Revision 1.2  2000/07/13 11:32:44  michael
   + removed logs
   + removed logs
 
 
 }
 }