瀏覽代碼

* removed/conditionalised several unused variables

git-svn-id: trunk@4194 -
Jonas Maebe 19 年之前
父節點
當前提交
d75b19e484
共有 10 個文件被更改,包括 13 次插入13 次删除
  1. 0 2
      compiler/assemble.pas
  2. 2 0
      compiler/ncgcal.pas
  3. 0 2
      compiler/ncginl.pas
  4. 1 1
      compiler/nflw.pas
  5. 0 1
      compiler/nmat.pas
  6. 8 3
      compiler/nobj.pas
  7. 0 1
      compiler/optunrol.pas
  8. 2 0
      compiler/pmodules.pas
  9. 0 1
      compiler/ptype.pas
  10. 0 2
      compiler/symdef.pas

+ 0 - 2
compiler/assemble.pas

@@ -1059,9 +1059,7 @@ Implementation
 {$ifdef x86}
         co : comp;
 {$endif x86}
-        hs : string;
         objsym,
-        objsymparent,
         objsymend : TObjSymbol;
         leblen : byte;
         lebbuf : array[0..63] of byte;

+ 2 - 0
compiler/ncgcal.pas

@@ -813,7 +813,9 @@ implementation
         pvreg,
         vmtreg : tregister;
         oldaktcallnode : tcallnode;
+{$ifdef vtentry}
         sym : tasmsymbol;
+{$endif vtentry}
       begin
          if not assigned(procdefinition) or
             not procdefinition.has_paraloc_info then

+ 0 - 2
compiler/ncginl.pas

@@ -677,8 +677,6 @@ implementation
 
     procedure Tcginlinenode.second_get_frame;
 
-    var frame_ref:Treference;
-
     begin
       if current_procinfo.framepointer=NR_STACK_POINTER_REG then
         begin

+ 1 - 1
compiler/nflw.pas

@@ -1117,7 +1117,7 @@ implementation
    function tgotonode._getcopy : tnode;
      var
        p : tgotonode;
-       i : aint;
+{       i : longint; }
      begin
         p:=tgotonode(inherited _getcopy);
         {

+ 0 - 1
compiler/nmat.pas

@@ -663,7 +663,6 @@ implementation
     function tunaryminusnode.pass_1 : tnode;
       var
         procname: string[31];
-        temp: tnode;
       begin
         result:=nil;
         firstpass(left);

+ 8 - 3
compiler/nobj.pas

@@ -1209,8 +1209,11 @@ implementation
          vmtentry : pvmtentry;
          procdefcoll : pprocdefcoll;
          i : longint;
-         procname,
-         hs : string;
+         procname
+{$ifdef vtentry}
+         , hs
+{$endif vtentry}
+                     : string;
       begin
          { walk trough all numbers for virtual methods and search }
          { the method                                             }
@@ -1258,7 +1261,9 @@ implementation
          dmtlabel : tasmlabel;
 {$endif WITHDMT}
          interfacetable : tasmlabel;
-         hs : string;
+{$ifdef vtentry}
+         hs: string;
+{$endif vtentry}
       begin
 {$ifdef WITHDMT}
          dmtlabel:=gendmt;

+ 0 - 1
compiler/optunrol.pas

@@ -78,7 +78,6 @@ unit optunrol;
         counts : qword;
         unrollstatement : tstatementnode;
         unrollblock : tblocknode;
-        entrylabel : tlabelnode;
       begin
         result:=nil;
         if (cs_opt_size in aktoptimizerswitches) then

+ 2 - 0
compiler/pmodules.pas

@@ -823,7 +823,9 @@ implementation
          pd : tprocdef;
          unitname8 : string[8];
          has_impl,ag: boolean;
+{$ifdef i386}
          globalvarsym : tglobalvarsym;
+{$endif i386}
       begin
          if m_mac in aktmodeswitches then
            current_module.mode_switch_allowed:= false;

+ 0 - 1
compiler/ptype.pas

@@ -336,7 +336,6 @@ implementation
         var
            pt1,pt2 : tnode;
            lv,hv   : TConstExprInt;
-           ispecialization : boolean;
            old_block_type : tblock_type;
         begin
            old_block_type:=block_type;

+ 0 - 2
compiler/symdef.pas

@@ -2679,8 +2679,6 @@ implementation
 
 
    procedure tabstractrecorddef.derefimpl;
-     var
-       storesymtable : tsymtable;
      begin
        inherited derefimpl;
        tstoredsymtable(symtable).derefimpl;