mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 06:59:24 +02:00
- remove packenumfixed (requires version 1.0.2 or later to compile now!)
+ changing some comments so its commented automatically
This commit is contained in:
parent
341eddefe0
commit
db3af9b6e9
@ -114,12 +114,12 @@ interface
|
|||||||
{ this need to be incremented with every symbol loading into the
|
{ this need to be incremented with every symbol loading into the
|
||||||
paasmoutput, thus in loadsym/loadref/const_symbol (PFV) }
|
paasmoutput, thus in loadsym/loadref/const_symbol (PFV) }
|
||||||
refs : longint;
|
refs : longint;
|
||||||
{ alternate symbol which can be used for 'renaming' needed for
|
{# Alternate symbol which can be used for 'renaming' needed for
|
||||||
inlining }
|
inlining }
|
||||||
altsymbol : tasmsymbol;
|
altsymbol : tasmsymbol;
|
||||||
{ is the symbol local for a procedure/function }
|
{# TRUE if the symbol is local for a procedure/function }
|
||||||
proclocal : boolean;
|
proclocal : boolean;
|
||||||
{ is the symbol in the used list }
|
{# Is the symbol in the used list }
|
||||||
inusedlist : boolean;
|
inusedlist : boolean;
|
||||||
{ assembler pass label is set, used for detecting multiple labels }
|
{ assembler pass label is set, used for detecting multiple labels }
|
||||||
pass : byte;
|
pass : byte;
|
||||||
@ -131,18 +131,12 @@ interface
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
tasmlabel = class(tasmsymbol)
|
tasmlabel = class(tasmsymbol)
|
||||||
{$ifdef PACKENUMFIXED}
|
|
||||||
{ this is set by the tai_label.Init }
|
{ this is set by the tai_label.Init }
|
||||||
is_set,
|
is_set,
|
||||||
{ is the label only there for getting an address (e.g. for i/o }
|
{ is the label only there for getting an address (e.g. for i/o }
|
||||||
{ checks -> true) or is it a jump target (false) }
|
{ checks -> true) or is it a jump target (false) }
|
||||||
is_addr : boolean;
|
is_addr : boolean;
|
||||||
{$endif}
|
|
||||||
labelnr : longint;
|
labelnr : longint;
|
||||||
{$ifndef PACKENUMFIXED}
|
|
||||||
is_set,
|
|
||||||
is_addr : boolean;
|
|
||||||
{$endif}
|
|
||||||
constructor create;
|
constructor create;
|
||||||
constructor createdata;
|
constructor createdata;
|
||||||
constructor createaddr;
|
constructor createaddr;
|
||||||
@ -152,16 +146,10 @@ interface
|
|||||||
|
|
||||||
{ the short name makes typing easier }
|
{ the short name makes typing easier }
|
||||||
tai = class(tlinkedlistitem)
|
tai = class(tlinkedlistitem)
|
||||||
{$ifndef PACKENUMFIXED}
|
|
||||||
typ : tait;
|
|
||||||
{$endif}
|
|
||||||
{ pointer to record with optimizer info about this tai object }
|
{ pointer to record with optimizer info about this tai object }
|
||||||
optinfo : pointer;
|
optinfo : pointer;
|
||||||
fileinfo : tfileposinfo;
|
fileinfo : tfileposinfo;
|
||||||
{$ifdef PACKENUMFIXED}
|
|
||||||
{ still 3 bytes left after the next field }
|
|
||||||
typ : tait;
|
typ : tait;
|
||||||
{$endif}
|
|
||||||
constructor Create;
|
constructor Create;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -177,14 +165,9 @@ interface
|
|||||||
|
|
||||||
{ generates a common label }
|
{ generates a common label }
|
||||||
tai_symbol = class(tai)
|
tai_symbol = class(tai)
|
||||||
{$ifdef PACKENUMFIXED}
|
|
||||||
is_global : boolean;
|
is_global : boolean;
|
||||||
{$endif}
|
|
||||||
sym : tasmsymbol;
|
sym : tasmsymbol;
|
||||||
size : longint;
|
size : longint;
|
||||||
{$ifndef PACKENUMFIXED}
|
|
||||||
is_global : boolean;
|
|
||||||
{$endif}
|
|
||||||
constructor Create(_sym:tasmsymbol;siz:longint);
|
constructor Create(_sym:tasmsymbol;siz:longint);
|
||||||
constructor Createname(const _name : string;siz:longint);
|
constructor Createname(const _name : string;siz:longint);
|
||||||
constructor Createname_global(const _name : string;siz:longint);
|
constructor Createname_global(const _name : string;siz:longint);
|
||||||
@ -199,13 +182,8 @@ interface
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
tai_label = class(tai)
|
tai_label = class(tai)
|
||||||
{$ifdef PACKENUMFIXED}
|
|
||||||
is_global : boolean;
|
is_global : boolean;
|
||||||
{$endif}
|
|
||||||
l : tasmlabel;
|
l : tasmlabel;
|
||||||
{$ifndef PACKENUMFIXED}
|
|
||||||
is_global : boolean;
|
|
||||||
{$endif}
|
|
||||||
constructor Create(_l : tasmlabel);
|
constructor Create(_l : tasmlabel);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -248,14 +226,9 @@ interface
|
|||||||
|
|
||||||
{ generates an uninitializised data block }
|
{ generates an uninitializised data block }
|
||||||
tai_datablock = class(tai)
|
tai_datablock = class(tai)
|
||||||
{$ifdef PACKENUMFIXED}
|
|
||||||
is_global : boolean;
|
is_global : boolean;
|
||||||
{$endif}
|
|
||||||
sym : tasmsymbol;
|
sym : tasmsymbol;
|
||||||
size : longint;
|
size : longint;
|
||||||
{$ifndef PACKENUMFIXED}
|
|
||||||
is_global : boolean;
|
|
||||||
{$endif}
|
|
||||||
constructor Create(const _name : string;_size : longint);
|
constructor Create(const _name : string;_size : longint);
|
||||||
constructor Create_global(const _name : string;_size : longint);
|
constructor Create_global(const _name : string;_size : longint);
|
||||||
end;
|
end;
|
||||||
@ -326,14 +299,9 @@ interface
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
taitempalloc = class(tai)
|
taitempalloc = class(tai)
|
||||||
{$ifdef PACKENUMFIXED}
|
|
||||||
allocation : boolean;
|
allocation : boolean;
|
||||||
{$endif}
|
|
||||||
temppos,
|
temppos,
|
||||||
tempsize : longint;
|
tempsize : longint;
|
||||||
{$ifndef PACKENUMFIXED}
|
|
||||||
allocation : boolean;
|
|
||||||
{$endif}
|
|
||||||
constructor alloc(pos,size:longint);
|
constructor alloc(pos,size:longint);
|
||||||
constructor dealloc(pos,size:longint);
|
constructor dealloc(pos,size:longint);
|
||||||
end;
|
end;
|
||||||
@ -379,13 +347,13 @@ type
|
|||||||
nextlabelnr : longint = 1;
|
nextlabelnr : longint = 1;
|
||||||
countlabelref : boolean = true;
|
countlabelref : boolean = true;
|
||||||
|
|
||||||
{ make l as a new label }
|
{# create a new assembler label }
|
||||||
procedure getlabel(var l : tasmlabel);
|
procedure getlabel(var l : tasmlabel);
|
||||||
{ make l as a new label and flag is_addr }
|
{ make l as a new label and flag is_addr }
|
||||||
procedure getaddrlabel(var l : tasmlabel);
|
procedure getaddrlabel(var l : tasmlabel);
|
||||||
{ make l as a new label and flag is_data }
|
{ make l as a new label and flag is_data }
|
||||||
procedure getdatalabel(var l : tasmlabel);
|
procedure getdatalabel(var l : tasmlabel);
|
||||||
{just get a label number }
|
{# return a label number }
|
||||||
procedure getlabelnr(var l : longint);
|
procedure getlabelnr(var l : longint);
|
||||||
|
|
||||||
function newasmsymbol(const s : string) : tasmsymbol;
|
function newasmsymbol(const s : string) : tasmsymbol;
|
||||||
@ -1163,7 +1131,11 @@ uses
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.20 2002-03-24 19:04:31 carl
|
Revision 1.21 2002-04-07 10:17:40 carl
|
||||||
|
- remove packenumfixed (requires version 1.0.2 or later to compile now!)
|
||||||
|
+ changing some comments so its commented automatically
|
||||||
|
|
||||||
|
Revision 1.20 2002/03/24 19:04:31 carl
|
||||||
+ patch for SPARC from Mazen NEIFER
|
+ patch for SPARC from Mazen NEIFER
|
||||||
|
|
||||||
Revision 1.19 2001/12/31 16:54:14 peter
|
Revision 1.19 2001/12/31 16:54:14 peter
|
||||||
|
Loading…
Reference in New Issue
Block a user