Browse Source

* removed unused units

git-svn-id: trunk@36165 -
florian 7 years ago
parent
commit
b1dff29cbf
100 changed files with 231 additions and 301 deletions
  1. 1 1
      compiler/aopt.pas
  2. 1 1
      compiler/aoptbase.pas
  3. 2 2
      compiler/aoptda.pas
  4. 0 1
      compiler/aoptobj.pas
  5. 1 3
      compiler/assemble.pas
  6. 2 2
      compiler/blockutl.pas
  7. 1 1
      compiler/cgobj.pas
  8. 4 1
      compiler/compiler.pas
  9. 1 1
      compiler/cresstr.pas
  10. 1 1
      compiler/dbgbase.pas
  11. 1 1
      compiler/export.pas
  12. 6 7
      compiler/expunix.pas
  13. 2 2
      compiler/fmodule.pas
  14. 2 1
      compiler/fpcp.pas
  15. 3 2
      compiler/globals.pas
  16. 5 5
      compiler/hlcg2ll.pas
  17. 3 3
      compiler/hlcgobj.pas
  18. 1 1
      compiler/htypechk.pas
  19. 1 3
      compiler/i386/aoptcpu.pas
  20. 1 4
      compiler/import.pas
  21. 1 1
      compiler/link.pas
  22. 1 1
      compiler/nadd.pas
  23. 3 4
      compiler/nbas.pas
  24. 5 5
      compiler/ncgadd.pas
  25. 3 3
      compiler/ncgbas.pas
  26. 3 5
      compiler/ncgcal.pas
  27. 3 4
      compiler/ncgcnv.pas
  28. 4 4
      compiler/ncgcon.pas
  29. 3 3
      compiler/ncgflw.pas
  30. 7 7
      compiler/ncginl.pas
  31. 2 2
      compiler/ncgld.pas
  32. 2 6
      compiler/ncgmat.pas
  33. 5 7
      compiler/ncgmem.pas
  34. 1 1
      compiler/ncgobjc.pas
  35. 4 4
      compiler/ncgopt.pas
  36. 1 2
      compiler/ncgrtti.pas
  37. 2 4
      compiler/ncgset.pas
  38. 6 8
      compiler/ncgutil.pas
  39. 2 3
      compiler/ncgvmt.pas
  40. 2 3
      compiler/ncon.pas
  41. 1 1
      compiler/nflw.pas
  42. 3 3
      compiler/ngenutil.pas
  43. 4 4
      compiler/ngtcon.pas
  44. 3 3
      compiler/ninl.pas
  45. 2 2
      compiler/nld.pas
  46. 1 1
      compiler/nmat.pas
  47. 2 2
      compiler/nmem.pas
  48. 3 7
      compiler/nobj.pas
  49. 3 7
      compiler/nobjc.pas
  50. 2 4
      compiler/nset.pas
  51. 1 1
      compiler/nutils.pas
  52. 1 2
      compiler/objcdef.pas
  53. 3 3
      compiler/objcutil.pas
  54. 1 1
      compiler/ogbase.pas
  55. 3 2
      compiler/ogcoff.pas
  56. 1 1
      compiler/ogelf.pas
  57. 3 5
      compiler/ogmap.pas
  58. 3 4
      compiler/omfbase.pas
  59. 0 1
      compiler/optconstprop.pas
  60. 0 1
      compiler/optdead.pas
  61. 1 2
      compiler/optdeadstore.pas
  62. 2 3
      compiler/optdfa.pas
  63. 0 2
      compiler/optvirt.pas
  64. 0 1
      compiler/owomflib.pas
  65. 2 2
      compiler/parabase.pas
  66. 5 4
      compiler/paramgr.pas
  67. 6 7
      compiler/parser.pas
  68. 4 3
      compiler/pass_1.pas
  69. 7 5
      compiler/pass_2.pas
  70. 1 1
      compiler/pbase.pas
  71. 2 2
      compiler/pdecl.pas
  72. 5 5
      compiler/pdecobj.pas
  73. 1 1
      compiler/pdecsub.pas
  74. 3 6
      compiler/pdecvar.pas
  75. 1 1
      compiler/pexpr.pas
  76. 1 3
      compiler/pgenutil.pas
  77. 3 9
      compiler/pinline.pas
  78. 0 1
      compiler/pkgutil.pas
  79. 4 5
      compiler/pmodules.pas
  80. 2 3
      compiler/ppu.pas
  81. 4 6
      compiler/procinfo.pas
  82. 4 7
      compiler/pstatmnt.pas
  83. 4 5
      compiler/psub.pas
  84. 3 4
      compiler/psystem.pas
  85. 2 2
      compiler/ptconst.pas
  86. 2 4
      compiler/ptype.pas
  87. 1 2
      compiler/rasm.pas
  88. 3 5
      compiler/rgobj.pas
  89. 1 1
      compiler/symcreat.pas
  90. 2 4
      compiler/symdef.pas
  91. 2 4
      compiler/symsym.pas
  92. 1 1
      compiler/symtype.pas
  93. 2 3
      compiler/symutil.pas
  94. 1 1
      compiler/syscinfo.pas
  95. 1 1
      compiler/systems/i_bsd.pas
  96. 1 1
      compiler/systems/i_linux.pas
  97. 1 1
      compiler/systems/t_aros.pas
  98. 3 3
      compiler/systems/t_linux.pas
  99. 2 3
      compiler/systems/t_sunos.pas
  100. 2 2
      compiler/systems/t_win.pas

+ 1 - 1
compiler/aopt.pas

@@ -80,7 +80,7 @@ Unit aopt;
       verbose,
       cpubase,
       cgbase,
-      aoptda,aoptcpu,aoptcpud;
+      aoptcpu;
 
     Constructor TAsmOptimizer.create(_AsmL: TAsmList);
       Begin

+ 1 - 1
compiler/aoptbase.pas

@@ -112,7 +112,7 @@ unit aoptbase;
   implementation
 
     uses
-      verbose,globtype,globals,aoptcpub;
+      verbose,globals,aoptcpub;
 
   constructor taoptbase.create;
     begin

+ 2 - 2
compiler/aoptda.pas

@@ -29,7 +29,7 @@ Unit aoptda;
 
     uses
       cpubase,cgbase,
-      aasmbase,aasmtai,aasmdata,aasmcpu,
+      aasmtai,aasmdata,aasmcpu,
       aoptcpub, aoptbase;
 
     Type
@@ -56,7 +56,7 @@ Unit aoptda;
   Implementation
 
     uses
-      globals, aoptobj;
+      globals;
 
     Procedure TAOptDFA.DoDFA;
     { Analyzes the Data Flow of an assembler list. Analyses the reg contents     }

+ 0 - 1
compiler/aoptobj.pas

@@ -367,7 +367,6 @@ Unit AoptObj;
       cutils,
       globals,
       verbose,
-      procinfo,
       aoptutils;
 
 

+ 1 - 3
compiler/assemble.pas

@@ -252,9 +252,7 @@ Implementation
 {$endif memdebug}
       script,fmodule,verbose,
       cpuinfo,
-      aasmcpu,
-      owar,owomflib
-      ;
+      aasmcpu;
 
     var
       CAssembler : array[tasm] of TAssemblerClass;

+ 2 - 2
compiler/blockutl.pas

@@ -48,11 +48,11 @@ interface
 implementation
 
   uses
-    verbose,globtype,globals,cutils,constexp,
+    verbose,globtype,cutils,constexp,
     pass_1,pparautl,fmodule,
     aasmdata,
     nbas,ncon,nmem,nutils,
-    symbase,symconst,symtable,symsym,symcreat,objcutil,objcdef,defutil,
+    symbase,symconst,symtable,symsym,symcreat,objcutil,defutil,
     paramgr;
 
 

+ 1 - 1
compiler/cgobj.pas

@@ -552,7 +552,7 @@ implementation
 
     uses
        globals,systems,
-       verbose,paramgr,symtable,symsym,
+       verbose,paramgr,symsym,
        tgobj,cutils,procinfo;
 
 {*****************************************************************************

+ 4 - 1
compiler/compiler.pas

@@ -24,6 +24,9 @@ unit compiler;
 
 {$i fpcdefs.inc}
 
+{ some units are implicitly needed by the compiler }
+{$WARN 5023 off : Unit "$1" not used in $2}
+
 interface
 
 uses
@@ -44,7 +47,7 @@ uses
 {$ENDIF}
   verbose,comphook,systems,
   cutils,cfileutl,cclasses,globals,options,fmodule,parser,symtable,
-  assemble,link,dbgbase,import,export,tokens,pass_1,wpobase,wpo
+  assemble,link,dbgbase,import,export,tokens,wpo
   { cpu parameter handling }
   ,cpupara
   { procinfo stuff }

+ 1 - 1
compiler/cresstr.pas

@@ -39,7 +39,7 @@ uses
    cutils,globtype,globals,systems,
    symbase,symconst,symtype,symdef,symsym,symtable,
    verbose,fmodule,ppu,
-   aasmbase,aasmtai,aasmdata,aasmcnst,
+   aasmtai,aasmdata,aasmcnst,
    aasmcpu;
 
     Type

+ 1 - 1
compiler/dbgbase.pas

@@ -29,7 +29,7 @@ interface
       cclasses,
       systems,
       parabase,
-      symconst,symbase,symdef,symtype,symsym,symtable,
+      symconst,symbase,symdef,symtype,symsym,
       fmodule,
       aasmtai,aasmdata;
 

+ 1 - 1
compiler/export.pas

@@ -29,7 +29,7 @@ uses
   cutils,cclasses,
   systems,
   symtype,symdef,symsym,
-  aasmbase,aasmdata;
+  aasmdata;
 
 type
    { export options }

+ 6 - 7
compiler/expunix.pas

@@ -27,10 +27,10 @@ unit expunix;
 interface
 
 uses
-  cutils,cclasses,
+  cclasses,
   systems,
   export,
-  symtype,symdef,symsym,
+  symdef,symsym,
   aasmbase;
 
 type
@@ -55,15 +55,14 @@ implementation
 
 uses
   symconst,
-  globtype,globals,
-  aasmdata,aasmtai,aasmcpu,
+  globals,
+  aasmdata,aasmtai,
   fmodule,
   {$ifdef cpuhighleveltarget}
   symcreat,
   {$endif}
-  cgbase,cgutils,cpubase,cgobj,
-  cgcpu,hlcgobj,hlcgcpu,
-  ncgutil,
+  cgbase,
+  hlcgobj,hlcgcpu,
   verbose;
 
 

+ 2 - 2
compiler/fmodule.pas

@@ -44,9 +44,9 @@ interface
     uses
        cutils,cclasses,cfileutl,
        globtype,finput,ogbase,fpkg,
-       symbase,symconst,symsym,
+       symbase,symsym,
        wpobase,
-       aasmbase,aasmtai,aasmdata;
+       aasmbase,aasmdata;
 
 
     const

+ 2 - 1
compiler/fpcp.pas

@@ -67,7 +67,8 @@ implementation
     cfileutl,cutils,
     systems,globals,version,
     verbose,
-    entfile,fppu,ppu,pkgutil;
+    ppu,
+    entfile,pkgutil;
 
 { tpcppackage }
 

+ 3 - 2
compiler/globals.pas

@@ -579,9 +579,10 @@ implementation
       macutils,
 {$endif}
 {$ifdef mswindows}
-      windirs,
+      windirs;
+{$else}
+      ;
 {$endif}
-      comphook;
 
 {****************************************************************************
                                  TLinkStrMap

+ 5 - 5
compiler/hlcg2ll.pas

@@ -34,10 +34,10 @@ unit hlcg2ll;
   interface
 
     uses
-       cclasses,globtype,constexp,
+       globtype,constexp,
        cpubase,cgbase,cgutils,parabase,
        aasmbase,aasmtai,aasmdata,aasmcpu,
-       symconst,symtype,symdef,rgobj,
+       symconst,symtype,symdef,
        node,hlcgobj
        ;
 
@@ -329,9 +329,9 @@ unit hlcg2ll;
 implementation
 
     uses
-       globals,options,systems,
-       verbose,defutil,paramgr,symsym,
-       cgobj,tgobj,cutils,procinfo,
+       globals,systems,
+       verbose,defutil,
+       cgobj,tgobj,cutils,
        ncgutil;
 
   { thlcg2ll }

+ 3 - 3
compiler/hlcgobj.pas

@@ -675,15 +675,15 @@ implementation
 
     uses
        globals,systems,
-       fmodule,export,
+       fmodule,
        verbose,defutil,paramgr,
        symtable,
        nbas,ncon,nld,ncgrtti,pass_2,
-       cpuinfo,cgobj,cutils,procinfo,
+       cgobj,cutils,procinfo,
 {$ifdef x86}
        cgx86,
 {$endif x86}
-       ncgutil,ngenutil;
+       ncgutil;
 
 
     procedure destroy_hlcodegen;

+ 1 - 1
compiler/htypechk.pas

@@ -26,7 +26,7 @@ unit htypechk;
 interface
 
     uses
-      cclasses,cmsgs,tokens,cpuinfo,
+      cclasses,cmsgs,tokens,
       node,globtype,
       symconst,symtype,symdef,symsym,symbase,
       pgentype;

+ 1 - 3
compiler/i386/aoptcpu.pas

@@ -30,7 +30,7 @@ unit aoptcpu;
 
     uses
       cgbase,
-      cpubase, aoptobj, aoptcpub, aopt, aoptx86,
+      cpubase, aopt, aoptx86,
       Aasmbase,aasmtai,aasmdata;
 
     Type
@@ -52,8 +52,6 @@ unit aoptcpu;
 
     uses
       verbose,globtype,globals,
-      cutils,
-      aoptbase,
       cpuinfo,
       aasmcpu,
       aoptutils,

+ 1 - 4
compiler/import.pas

@@ -25,10 +25,7 @@ unit import;
 interface
 
 uses
-  cutils,cclasses,
-  systems,
-  aasmbase,
-  symdef,symsym;
+  systems;
 
 type
    timportlib=class

+ 1 - 1
compiler/link.pas

@@ -161,7 +161,7 @@ Implementation
       baseunix,
 {$endif hasUnix}
       script,globals,verbose,comphook,ppu,fpccrc,
-      aasmbase,aasmtai,aasmdata,aasmcpu,
+      aasmbase,aasmcpu,
       ogmap;
 
     var

+ 1 - 1
compiler/nadd.pas

@@ -127,7 +127,7 @@ implementation
       {$ifdef state_tracking}
       nstate,
       {$endif}
-      cpuinfo,procinfo;
+      cpuinfo;
 
 
 {*****************************************************************************

+ 3 - 4
compiler/nbas.pas

@@ -27,8 +27,8 @@ interface
 
     uses
        globtype,
-       cpuinfo,cpubase,cgbase,cgutils,
-       aasmbase,aasmtai,aasmdata,aasmcpu,
+       cgbase,cgutils,
+       aasmtai,aasmdata,aasmcpu,
        node,
        symtype;
 
@@ -302,11 +302,10 @@ interface
 implementation
 
     uses
-      cutils,
       verbose,globals,systems,
       symconst,symdef,defutil,defcmp,
       pass_1,
-      nutils,nld,ncal,nflw,
+      nutils,nld,
       procinfo
       ;
 

+ 5 - 5
compiler/ncgadd.pas

@@ -72,11 +72,11 @@ interface
 
     uses
       globtype,systems,
-      cutils,verbose,globals,
-      symconst,symdef,paramgr,
-      aasmbase,aasmtai,aasmdata,defutil,
-      procinfo,pass_2,tgobj,
-      nutils,ncon,nset,ncgutil,cgobj,cgutils,
+      verbose,globals,
+      symconst,symdef,
+      aasmbase,aasmdata,defutil,
+      pass_2,tgobj,
+      nutils,nset,ncgutil,cgobj,cgutils,
       hlcgobj
       ;
 

+ 3 - 3
compiler/ncgbas.pas

@@ -71,11 +71,11 @@ interface
   implementation
 
     uses
-      globals,systems,
+      globals,
       cutils,verbose,
       aasmbase,aasmcpu,
-      symsym,symconst,symdef,defutil,
-      nflw,pass_2,ncgutil,
+      symsym,symconst,defutil,
+      pass_2,ncgutil,
       cgbase,cgobj,hlcgobj,
       procinfo,
       cpuinfo,

+ 3 - 5
compiler/ncgcal.pas

@@ -128,12 +128,10 @@ implementation
 
     uses
       systems,
-      cutils,verbose,globals,
-      cpuinfo,
-      symconst,symbase,symtable,symtype,symsym,defutil,paramgr,
+      verbose,globals,
+      symconst,symtable,symtype,symsym,defutil,paramgr,
       pass_2,
-      aasmbase,aasmtai,
-      nbas,nmem,nld,ncnv,nutils,
+      nld,ncnv,
       ncgutil,blockutl,
       cgobj,tgobj,hlcgobj,
       procinfo,

+ 3 - 4
compiler/ncgcnv.pas

@@ -71,14 +71,13 @@ interface
 
     uses
       cutils,verbose,globtype,globals,
-      aasmbase,aasmtai,aasmdata,aasmcpu,symconst,symdef,symtable,paramgr,
-      nutils,ncon,ncal,
+      aasmbase,aasmdata,symconst,symdef,symtable,
+      nutils,ncon,
       cpubase,systems,
-      procinfo,pass_2,
+      pass_2,
       cgbase,
       cgutils,cgobj,hlcgobj,
       fmodule,
-      ncgutil,
       tgobj
       ;
 

+ 4 - 4
compiler/ncgcon.pas

@@ -29,7 +29,7 @@ interface
     uses
        aasmbase,
        symtype,
-       node,ncon;
+       ncon;
 
     type
        tcgrealconstnode = class(trealconstnode)
@@ -73,10 +73,10 @@ implementation
       globtype,widestr,systems,
       verbose,globals,cutils,
       aasmcnst,
-      symconst,symdef,aasmtai,aasmdata,aasmcpu,defutil,
+      symconst,symdef,aasmtai,aasmdata,defutil,
       cpuinfo,cpubase,
-      cgbase,cgobj,cgutils,
-      ncgutil,hlcgobj,cclasses,tgobj
+      cgbase,cgutils,
+      hlcgobj,cclasses
       ;
 
 

+ 3 - 3
compiler/ncgflw.pas

@@ -28,7 +28,7 @@ interface
 
     uses
       globtype,
-      aasmbase,aasmdata,node,nflw,
+      aasmbase,aasmdata,nflw,
       pass_2,cgutils,ncgutil;
 
     type
@@ -125,11 +125,11 @@ implementation
 
     uses
       cutils,
-      verbose,globals,systems,constexp,
+      verbose,globals,systems,
       symconst,symdef,symsym,symtable,symtype,aasmtai,aasmcpu,defutil,
       procinfo,cgbase,parabase,
       fmodule,
-      cpubase,ncon,
+      cpubase,
       tgobj,paramgr,
       cgobj,hlcgobj,nutils
       ;

+ 7 - 7
compiler/ncginl.pas

@@ -69,13 +69,13 @@ interface
 implementation
 
     uses
-      globtype,systems,constexp,
-      cutils,verbose,globals,
-      symconst,symtype,symdef,defutil,symsym,
-      aasmbase,aasm