- removed unused units form uses-clause and unused local vars

This commit is contained in:
Jonas Maebe 2001-09-30 16:16:28 +00:00
parent f33d23922a
commit a40c2b8dd0
4 changed files with 26 additions and 55 deletions

View File

@ -54,12 +54,12 @@ interface
implementation implementation
uses uses
verbose,globtype,globals,systems, verbose,systems,
symconst,symdef,symsym,aasm,types, symsym,aasm,
cgbase,temp_gen,pass_2, cgbase,temp_gen,pass_2,
cpubase,cpuasm, cpubase,cpuasm,
pass_1,nld,ncon, nld,ncon,
cga,tgcpu,n386util,regvars; cga,tgcpu;
{***************************************************************************** {*****************************************************************************
SecondRaise SecondRaise
@ -737,7 +737,10 @@ begin
end. end.
{ {
$Log$ $Log$
Revision 1.17 2001-09-29 21:34:04 jonas Revision 1.18 2001-09-30 16:16:28 jonas
- removed unused units form uses-clause and unused local vars
Revision 1.17 2001/09/29 21:34:04 jonas
- removed unused code (replaced by processor independent code) - removed unused code (replaced by processor independent code)
Revision 1.16 2001/09/28 20:39:33 jonas Revision 1.16 2001/09/28 20:39:33 jonas

View File

@ -39,42 +39,13 @@ implementation
uses uses
globtype,systems, globtype,systems,
cutils,verbose,globals,fmodule, cutils,verbose,globals,fmodule,
symconst,symbase,symtype,symdef,symsym,aasm,types, symconst,symtype,symdef,aasm,types,
cgbase,temp_gen,pass_1,pass_2, cgbase,temp_gen,pass_1,pass_2,
cpubase, cpubase,
nbas,ncon,ncal,ncnv,nld, nbas,ncon,ncal,ncnv,nld,
cga,tgcpu,n386util; cga,tgcpu,n386util;
{*****************************************************************************
Helpers
*****************************************************************************}
{ reverts the parameter list }
var nb_para : longint;
function reversparameter(p : tnode) : tnode;
var
hp1,hp2 : tnode;
begin
hp1:=nil;
nb_para := 0;
while assigned(p) do
begin
{ pull out }
hp2:=p;
p:=tbinarynode(p).right;
inc(nb_para);
{ pull in }
tbinarynode(hp2).right:=hp1;
hp1:=hp2;
end;
reversparameter:=hp1;
end;
{***************************************************************************** {*****************************************************************************
TI386INLINENODE TI386INLINENODE
*****************************************************************************} *****************************************************************************}
@ -88,8 +59,6 @@ implementation
incdecop:array[in_inc_x..in_dec_x] of tasmop=(A_INC,A_DEC); incdecop:array[in_inc_x..in_dec_x] of tasmop=(A_INC,A_DEC);
addsubop:array[in_inc_x..in_dec_x] of tasmop=(A_ADD,A_SUB); addsubop:array[in_inc_x..in_dec_x] of tasmop=(A_ADD,A_SUB);
var var
aktfile : treference;
ft : tfiletyp;
opsize : topsize; opsize : topsize;
op, op,
asmop : tasmop; asmop : tasmop;
@ -874,7 +843,10 @@ begin
end. end.
{ {
$Log$ $Log$
Revision 1.26 2001-09-28 20:38:51 jonas Revision 1.27 2001-09-30 16:16:28 jonas
- removed unused units form uses-clause and unused local vars
Revision 1.26 2001/09/28 20:38:51 jonas
* fixed big bug in my previous changes (the arguent for bts/btr is always * fixed big bug in my previous changes (the arguent for bts/btr is always
a 32 bit register, but it wasn't cleared properly if the value was only a 32 bit register, but it wasn't cleared properly if the value was only
an 8 bit one) an 8 bit one)

View File

@ -49,12 +49,10 @@ interface
implementation implementation
uses uses
globtype, cutils,verbose,
cutils,cclasses,globals,verbose, aasm,symconst,symdef,
aasm,symconst,symsym,symtable,symdef,symtype,types,
ncon,ncal, ncon,ncal,
htypechk, cpubase,
cpubase,cpuasm,
pass_2, pass_2,
cgbase, cgbase,
cga,cgobj,cgcpu, cga,cgobj,cgcpu,
@ -424,7 +422,10 @@ end.
{ {
$Log$ $Log$
Revision 1.1 2001-09-29 21:32:47 jonas Revision 1.2 2001-09-30 16:16:28 jonas
- removed unused units form uses-clause and unused local vars
Revision 1.1 2001/09/29 21:32:47 jonas
* almost all second pass typeconvnode helpers are now processor independent * almost all second pass typeconvnode helpers are now processor independent
* fixed converting boolean to int64/qword * fixed converting boolean to int64/qword
* fixed register allocation bugs which could cause internalerror 10 * fixed register allocation bugs which could cause internalerror 10

View File

@ -56,7 +56,7 @@ implementation
uses uses
verbose,globals,systems, verbose,globals,systems,
globtype, cutils, aasm, globtype, cutils,
symbase,symconst,symtype,symdef,symsym,symtable,types, symbase,symconst,symtype,symdef,symsym,symtable,types,
pass_1, pass_1,
ncal,ncon,ncnv,nadd,nld,nbas,nflw,nmem, ncal,ncon,ncnv,nadd,nld,nbas,nflw,nmem,
@ -101,8 +101,6 @@ implementation
dest, dest,
source : tcallparanode; source : tcallparanode;
newnode : tnode; newnode : tnode;
len,
fraclen : longint;
procname: string; procname: string;
is_real : boolean; is_real : boolean;
@ -269,7 +267,6 @@ implementation
p1 : tnode; p1 : tnode;
filetemp, filetemp,
temp : ttempcreatenode; temp : ttempcreatenode;
tempref : ttemprefnode;
procprefix, procprefix,
name : string[31]; name : string[31];
srsym : tvarsym; srsym : tvarsym;
@ -1044,9 +1041,7 @@ implementation
hp : tnode; hp : tnode;
srsym : tsym; srsym : tsym;
def : tdef; def : tdef;
p1,hpp : tnode; isreal : boolean;
isreal,
oneisreal : boolean;
label label
myexit; myexit;
begin begin
@ -1915,9 +1910,6 @@ implementation
var var
srsym : tsym; srsym : tsym;
hp,hpp : tnode; hp,hpp : tnode;
extra_register,
iswrite,
file_is_typed : boolean;
begin begin
result:=nil; result:=nil;
@ -2264,7 +2256,10 @@ begin
end. end.
{ {
$Log$ $Log$
Revision 1.61 2001-09-24 16:09:55 jonas Revision 1.62 2001-09-30 16:16:28 jonas
- removed unused units form uses-clause and unused local vars
Revision 1.61 2001/09/24 16:09:55 jonas
* check if amount of dimensions passed to setlength for dynamic arrays * check if amount of dimensions passed to setlength for dynamic arrays
is correct is correct