mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 18:30:18 +02:00
* removed compiler warnings
This commit is contained in:
parent
ad52b0fbdf
commit
b4cc4b7b01
@ -358,7 +358,10 @@ begin
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.3 2002-01-24 12:33:52 jonas
|
Revision 1.4 2002-03-04 19:10:11 peter
|
||||||
|
* removed compiler warnings
|
||||||
|
|
||||||
|
Revision 1.3 2002/01/24 12:33:52 jonas
|
||||||
* adapted ranges of native types to int64 (e.g. high cardinal is no
|
* adapted ranges of native types to int64 (e.g. high cardinal is no
|
||||||
longer longint($ffffffff), but just $fffffff in psystem)
|
longer longint($ffffffff), but just $fffffff in psystem)
|
||||||
* small additional fix in 64bit rangecheck code generation for 32 bit
|
* small additional fix in 64bit rangecheck code generation for 32 bit
|
||||||
@ -374,11 +377,12 @@ end.
|
|||||||
qword is a special case
|
qword is a special case
|
||||||
|
|
||||||
Revision 1.2 2001/12/30 17:24:48 jonas
|
Revision 1.2 2001/12/30 17:24:48 jonas
|
||||||
* range checking is now processor independent (part in cgobj, part in
|
* range checking is now processor independent (part in cgobj,
|
||||||
cg64f32) and should work correctly again (it needed some changes after
|
part in cg64f32) and should work correctly again (it needed
|
||||||
the changes of the low and high of tordef's to int64)
|
some changes after the changes of the low and high of
|
||||||
* maketojumpbool() is now processor independent (in ncgutil)
|
tordef's to int64)
|
||||||
* getregister32 is now called getregisterint
|
* maketojumpbool() is now processor independent (in ncgutil)
|
||||||
|
* getregister32 is now called getregisterint
|
||||||
|
|
||||||
Revision 1.1 2001/12/29 15:29:58 jonas
|
Revision 1.1 2001/12/29 15:29:58 jonas
|
||||||
* powerpc/cgcpu.pas compiles :)
|
* powerpc/cgcpu.pas compiles :)
|
||||||
|
@ -507,8 +507,16 @@ begin
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.5 2001-12-30 17:24:48 jonas
|
Revision 1.6 2002-03-04 19:10:11 peter
|
||||||
* range checking is now processor independent (part in cgobj, part in
cg64f32) and should work correctly again (it needed some changes after
the changes of the low and high of tordef's to int64)
* maketojumpbool() is now processor independent (in ncgutil)
* getregister32 is now called getregisterint
|
* removed compiler warnings
|
||||||
|
|
||||||
|
Revision 1.5 2001/12/30 17:24:48 jonas
|
||||||
|
* range checking is now processor independent (part in cgobj,
|
||||||
|
part in cg64f32) and should work correctly again (it needed
|
||||||
|
some changes after the changes of the low and high of
|
||||||
|
tordef's to int64)
|
||||||
|
* maketojumpbool() is now processor independent (in ncgutil)
|
||||||
|
* getregister32 is now called getregisterint
|
||||||
|
|
||||||
Revision 1.4 2001/11/06 14:53:48 jonas
|
Revision 1.4 2001/11/06 14:53:48 jonas
|
||||||
* compiles again with -dmemdebug
|
* compiles again with -dmemdebug
|
||||||
|
@ -399,8 +399,8 @@ unit cgobj;
|
|||||||
|
|
||||||
procedure tcg.g_decrstrref(list : taasmoutput;const ref : treference;t : tdef);
|
procedure tcg.g_decrstrref(list : taasmoutput;const ref : treference;t : tdef);
|
||||||
|
|
||||||
var
|
{ var
|
||||||
pushedregs : tpushed;
|
pushedregs : tpushed; }
|
||||||
|
|
||||||
begin
|
begin
|
||||||
(*
|
(*
|
||||||
@ -425,8 +425,8 @@ unit cgobj;
|
|||||||
{ that r points to the data to initialize }
|
{ that r points to the data to initialize }
|
||||||
procedure tcg.g_initialize(list : taasmoutput;t : tdef;const ref : treference;is_already_ref : boolean);
|
procedure tcg.g_initialize(list : taasmoutput;t : tdef;const ref : treference;is_already_ref : boolean);
|
||||||
|
|
||||||
var
|
{ var
|
||||||
hr : treference;
|
hr : treference; }
|
||||||
|
|
||||||
begin
|
begin
|
||||||
(*
|
(*
|
||||||
@ -450,8 +450,8 @@ unit cgobj;
|
|||||||
|
|
||||||
procedure tcg.g_finalize(list : taasmoutput;t : tdef;const ref : treference;is_already_ref : boolean);
|
procedure tcg.g_finalize(list : taasmoutput;t : tdef;const ref : treference;is_already_ref : boolean);
|
||||||
|
|
||||||
var
|
{ var
|
||||||
r : treference;
|
r : treference; }
|
||||||
|
|
||||||
begin
|
begin
|
||||||
(*
|
(*
|
||||||
@ -478,8 +478,8 @@ unit cgobj;
|
|||||||
{ generates the code for initialisation of local data }
|
{ generates the code for initialisation of local data }
|
||||||
procedure tcg.g_initialize_data(list : taasmoutput;p : tsym);
|
procedure tcg.g_initialize_data(list : taasmoutput;p : tsym);
|
||||||
|
|
||||||
var
|
{ var
|
||||||
hr : treference;
|
hr : treference; }
|
||||||
|
|
||||||
begin
|
begin
|
||||||
(*
|
(*
|
||||||
@ -510,8 +510,8 @@ unit cgobj;
|
|||||||
{ generates the code for incrementing the reference count of parameters }
|
{ generates the code for incrementing the reference count of parameters }
|
||||||
procedure tcg.g_incr_data(list : taasmoutput;p : tsym);
|
procedure tcg.g_incr_data(list : taasmoutput;p : tsym);
|
||||||
|
|
||||||
var
|
{ var
|
||||||
hr : treference;
|
hr : treference; }
|
||||||
|
|
||||||
begin
|
begin
|
||||||
(*
|
(*
|
||||||
@ -540,8 +540,8 @@ unit cgobj;
|
|||||||
{ generates the code for finalisation of local data }
|
{ generates the code for finalisation of local data }
|
||||||
procedure tcg.g_finalize_data(list : taasmoutput;p : tnamedindexitem);
|
procedure tcg.g_finalize_data(list : taasmoutput;p : tnamedindexitem);
|
||||||
|
|
||||||
var
|
{ var
|
||||||
hr : treference;
|
hr : treference; }
|
||||||
|
|
||||||
begin
|
begin
|
||||||
(*
|
(*
|
||||||
@ -847,7 +847,7 @@ unit cgobj;
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure tcg.g_exitcode(list : taasmoutput;parasize:longint;nostackframe,inlined:boolean);
|
procedure tcg.g_exitcode(list : taasmoutput;parasize:longint;nostackframe,inlined:boolean);
|
||||||
|
(*
|
||||||
var
|
var
|
||||||
{$ifdef GDB}
|
{$ifdef GDB}
|
||||||
mangled_length : longint;
|
mangled_length : longint;
|
||||||
@ -856,7 +856,7 @@ unit cgobj;
|
|||||||
nofinal,noreraiselabel : tasmlabel;
|
nofinal,noreraiselabel : tasmlabel;
|
||||||
hr : treference;
|
hr : treference;
|
||||||
r : tregister;
|
r : tregister;
|
||||||
|
*)
|
||||||
begin
|
begin
|
||||||
(*
|
(*
|
||||||
if aktexitlabel^.is_used then
|
if aktexitlabel^.is_used then
|
||||||
@ -1434,8 +1434,11 @@ finalization
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.6 2001-12-30 17:24:48 jonas
|
Revision 1.7 2002-03-04 19:10:11 peter
|
||||||
* range checking is now processor independent (part in cgobj, part in
cg64f32) and should work correctly again (it needed some changes after
the changes of the low and high of tordef's to int64)
* maketojumpbool() is now processor independent (in ncgutil)
* getregister32 is now called getregisterint
|
* removed compiler warnings
|
||||||
|
|
||||||
|
Revision 1.6 2001/12/30 17:24:48 jonas
|
||||||
|
* range checking is now processor independent (part in cgobj, part in cg64f32) and should work correctly again (it needed some changes after the changes of the low and high of tordef's to int64) * maketojumpbool() is now processor independent (in ncgutil) * getregister32 is now called getregisterint
|
||||||
|
|
||||||
Revision 1.5 2001/12/29 15:28:58 jonas
|
Revision 1.5 2001/12/29 15:28:58 jonas
|
||||||
* powerpc/cgcpu.pas compiles :)
|
* powerpc/cgcpu.pas compiles :)
|
||||||
|
@ -2987,7 +2987,10 @@ implementation
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.15 2002-01-24 18:25:53 peter
|
Revision 1.16 2002-03-04 19:10:12 peter
|
||||||
|
* removed compiler warnings
|
||||||
|
|
||||||
|
Revision 1.15 2002/01/24 18:25:53 peter
|
||||||
* implicit result variable generation for assembler routines
|
* implicit result variable generation for assembler routines
|
||||||
* removed m_tp modeswitch, use m_tp7 or not(m_fpc) instead
|
* removed m_tp modeswitch, use m_tp7 or not(m_fpc) instead
|
||||||
|
|
||||||
@ -2995,7 +2998,12 @@ end.
|
|||||||
* fixed init/final for value parameters
|
* fixed init/final for value parameters
|
||||||
|
|
||||||
Revision 1.13 2001/12/30 17:24:45 jonas
|
Revision 1.13 2001/12/30 17:24:45 jonas
|
||||||
* range checking is now processor independent (part in cgobj, part in cg64f32) and should work correctly again (it needed some changes after the changes of the low and high of tordef's to int64) * maketojumpbool() is now processor independent (in ncgutil) * getregister32 is now called getregisterint
|
* range checking is now processor independent (part in cgobj,
|
||||||
|
part in cg64f32) and should work correctly again (it needed
|
||||||
|
some changes after the changes of the low and high of
|
||||||
|
tordef's to int64)
|
||||||
|
* maketojumpbool() is now processor independent (in ncgutil)
|
||||||
|
* getregister32 is now called getregisterint
|
||||||
|
|
||||||
Revision 1.12 2001/12/29 15:28:58 jonas
|
Revision 1.12 2001/12/29 15:28:58 jonas
|
||||||
* powerpc/cgcpu.pas compiles :)
|
* powerpc/cgcpu.pas compiles :)
|
||||||
|
@ -270,7 +270,6 @@ unit cgcpu;
|
|||||||
var
|
var
|
||||||
opcode: tasmop;
|
opcode: tasmop;
|
||||||
power: longint;
|
power: longint;
|
||||||
scratch_register: TRegister;
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
Case Op of
|
Case Op of
|
||||||
@ -342,7 +341,6 @@ unit cgcpu;
|
|||||||
var
|
var
|
||||||
opcode: tasmop;
|
opcode: tasmop;
|
||||||
power: longint;
|
power: longint;
|
||||||
scratch_register: TRegister;
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
Case Op of
|
Case Op of
|
||||||
@ -604,7 +602,6 @@ unit cgcpu;
|
|||||||
size: tcgsize; src1, src2, dst: tregister);
|
size: tcgsize; src1, src2, dst: tregister);
|
||||||
var
|
var
|
||||||
tmpref: treference;
|
tmpref: treference;
|
||||||
power: longint;
|
|
||||||
opsize: topsize;
|
opsize: topsize;
|
||||||
begin
|
begin
|
||||||
opsize := regsize(src1);
|
opsize := regsize(src1);
|
||||||
@ -880,8 +877,16 @@ begin
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.6 2001-12-30 17:24:46 jonas
|
Revision 1.7 2002-03-04 19:10:12 peter
|
||||||
* range checking is now processor independent (part in cgobj, part in
cg64f32) and should work correctly again (it needed some changes after
the changes of the low and high of tordef's to int64)
* maketojumpbool() is now processor independent (in ncgutil)
* getregister32 is now called getregisterint
|
* removed compiler warnings
|
||||||
|
|
||||||
|
Revision 1.6 2001/12/30 17:24:46 jonas
|
||||||
|
* range checking is now processor independent (part in cgobj,
|
||||||
|
part in cg64f32) and should work correctly again (it needed
|
||||||
|
some changes after the changes of the low and high of
|
||||||
|
tordef's to int64)
|
||||||
|
* maketojumpbool() is now processor independent (in ncgutil)
|
||||||
|
* getregister32 is now called getregisterint
|
||||||
|
|
||||||
Revision 1.5 2001/12/29 15:29:59 jonas
|
Revision 1.5 2001/12/29 15:29:59 jonas
|
||||||
* powerpc/cgcpu.pas compiles :)
|
* powerpc/cgcpu.pas compiles :)
|
||||||
|
@ -957,8 +957,16 @@ end;
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.9 2001-12-30 17:24:46 jonas
|
Revision 1.10 2002-03-04 19:10:12 peter
|
||||||
* range checking is now processor independent (part in cgobj, part in
cg64f32) and should work correctly again (it needed some changes after
the changes of the low and high of tordef's to int64)
* maketojumpbool() is now processor independent (in ncgutil)
* getregister32 is now called getregisterint
|
* removed compiler warnings
|
||||||
|
|
||||||
|
Revision 1.9 2001/12/30 17:24:46 jonas
|
||||||
|
* range checking is now processor independent (part in cgobj,
|
||||||
|
part in cg64f32) and should work correctly again (it needed
|
||||||
|
some changes after the changes of the low and high of
|
||||||
|
tordef's to int64)
|
||||||
|
* maketojumpbool() is now processor independent (in ncgutil)
|
||||||
|
* getregister32 is now called getregisterint
|
||||||
|
|
||||||
Revision 1.8 2001/12/29 15:29:59 jonas
|
Revision 1.8 2001/12/29 15:29:59 jonas
|
||||||
* powerpc/cgcpu.pas compiles :)
|
* powerpc/cgcpu.pas compiles :)
|
||||||
|
@ -1394,7 +1394,7 @@ procedure DoCSE(AsmL: TAAsmOutput; First, Last: Tai; findPrevSeqs, doSubOpts: bo
|
|||||||
{marks the instructions that can be removed by RemoveInstructs. They're not
|
{marks the instructions that can be removed by RemoveInstructs. They're not
|
||||||
removed immediately because sometimes an instruction needs to be checked in
|
removed immediately because sometimes an instruction needs to be checked in
|
||||||
two different sequences}
|
two different sequences}
|
||||||
var cnt, cnt2, cnt3, orgNrOfMods: longint;
|
var cnt, cnt2, {cnt3,} orgNrOfMods: longint;
|
||||||
p, hp1, hp2, prevSeq, prevSeq_next: Tai;
|
p, hp1, hp2, prevSeq, prevSeq_next: Tai;
|
||||||
hp3, hp4: Tai;
|
hp3, hp4: Tai;
|
||||||
hp5 : Tai;
|
hp5 : Tai;
|
||||||
@ -1956,7 +1956,10 @@ End.
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.23 2001-12-04 15:58:13 jonas
|
Revision 1.24 2002-03-04 19:10:12 peter
|
||||||
|
* removed compiler warnings
|
||||||
|
|
||||||
|
Revision 1.23 2001/12/04 15:58:13 jonas
|
||||||
* unnecessary loads of constants are now also remove by
|
* unnecessary loads of constants are now also remove by
|
||||||
removePrevNotUsedLoad()
|
removePrevNotUsedLoad()
|
||||||
|
|
||||||
|
@ -1991,10 +1991,11 @@ Var
|
|||||||
Cnt, InstrCnt : Longint;
|
Cnt, InstrCnt : Longint;
|
||||||
InstrProp: TInsProp;
|
InstrProp: TInsProp;
|
||||||
UsedRegs: TRegSet;
|
UsedRegs: TRegSet;
|
||||||
prev, p, hp : Tai;
|
prev,p : Tai;
|
||||||
TmpRef: TReference;
|
TmpRef: TReference;
|
||||||
TmpReg: TRegister;
|
TmpReg: TRegister;
|
||||||
{$ifdef AnalyzeLoops}
|
{$ifdef AnalyzeLoops}
|
||||||
|
hp : Tai;
|
||||||
TmpState: Byte;
|
TmpState: Byte;
|
||||||
{$endif AnalyzeLoops}
|
{$endif AnalyzeLoops}
|
||||||
Begin
|
Begin
|
||||||
@ -2591,7 +2592,10 @@ End.
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.25 2001-12-29 15:29:59 jonas
|
Revision 1.26 2002-03-04 19:10:13 peter
|
||||||
|
* removed compiler warnings
|
||||||
|
|
||||||
|
Revision 1.25 2001/12/29 15:29:59 jonas
|
||||||
* powerpc/cgcpu.pas compiles :)
|
* powerpc/cgcpu.pas compiles :)
|
||||||
* several powerpc-related fixes
|
* several powerpc-related fixes
|
||||||
* cpuasm unit is now based on common tainst unit
|
* cpuasm unit is now based on common tainst unit
|
||||||
|
@ -156,7 +156,6 @@ interface
|
|||||||
var
|
var
|
||||||
pushedregs : tpushed;
|
pushedregs : tpushed;
|
||||||
href : treference;
|
href : treference;
|
||||||
pushed,
|
|
||||||
cmpop : boolean;
|
cmpop : boolean;
|
||||||
regstopush : byte;
|
regstopush : byte;
|
||||||
begin
|
begin
|
||||||
@ -264,8 +263,6 @@ interface
|
|||||||
label do_normal;
|
label do_normal;
|
||||||
|
|
||||||
var
|
var
|
||||||
unusedregisters : tregisterset;
|
|
||||||
usablecount : byte;
|
|
||||||
hregister,hregister2 : tregister;
|
hregister,hregister2 : tregister;
|
||||||
noswap,popeax,popedx,
|
noswap,popeax,popedx,
|
||||||
pushed,pushedfpu,
|
pushed,pushedfpu,
|
||||||
@ -291,7 +288,6 @@ interface
|
|||||||
{$ifdef SUPPORT_MMX}
|
{$ifdef SUPPORT_MMX}
|
||||||
mmxbase : tmmxtype;
|
mmxbase : tmmxtype;
|
||||||
{$endif SUPPORT_MMX}
|
{$endif SUPPORT_MMX}
|
||||||
pushedreg : tpushed;
|
|
||||||
regstopush: byte;
|
regstopush: byte;
|
||||||
|
|
||||||
procedure firstjmp64bitcmp;
|
procedure firstjmp64bitcmp;
|
||||||
@ -1863,8 +1859,16 @@ begin
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.28 2001-12-30 17:24:46 jonas
|
Revision 1.29 2002-03-04 19:10:13 peter
|
||||||
* range checking is now processor independent (part in cgobj, part in
cg64f32) and should work correctly again (it needed some changes after
the changes of the low and high of tordef's to int64)
* maketojumpbool() is now processor independent (in ncgutil)
* getregister32 is now called getregisterint
|
* removed compiler warnings
|
||||||
|
|
||||||
|
Revision 1.28 2001/12/30 17:24:46 jonas
|
||||||
|
* range checking is now processor independent (part in cgobj,
|
||||||
|
part in cg64f32) and should work correctly again (it needed
|
||||||
|
some changes after the changes of the low and high of
|
||||||
|
tordef's to int64)
|
||||||
|
* maketojumpbool() is now processor independent (in ncgutil)
|
||||||
|
* getregister32 is now called getregisterint
|
||||||
|
|
||||||
Revision 1.27 2001/12/29 15:29:58 jonas
|
Revision 1.27 2001/12/29 15:29:58 jonas
|
||||||
* powerpc/cgcpu.pas compiles :)
|
* powerpc/cgcpu.pas compiles :)
|
||||||
|
@ -257,7 +257,7 @@ implementation
|
|||||||
unusedregisters : tregisterset;
|
unusedregisters : tregisterset;
|
||||||
usablecount : byte;
|
usablecount : byte;
|
||||||
pushed : tpushed;
|
pushed : tpushed;
|
||||||
hr,funcretref,refcountedtemp : treference;
|
funcretref,refcountedtemp : treference;
|
||||||
hregister,hregister2 : tregister;
|
hregister,hregister2 : tregister;
|
||||||
oldpushedparasize : longint;
|
oldpushedparasize : longint;
|
||||||
{ true if ESI must be loaded again after the subroutine }
|
{ true if ESI must be loaded again after the subroutine }
|
||||||
@ -1593,7 +1593,10 @@ begin
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.40 2001-12-31 09:53:15 jonas
|
Revision 1.41 2002-03-04 19:10:13 peter
|
||||||
|
* removed compiler warnings
|
||||||
|
|
||||||
|
Revision 1.40 2001/12/31 09:53:15 jonas
|
||||||
* changed remaining "getregister32" calls to "getregisterint"
|
* changed remaining "getregister32" calls to "getregisterint"
|
||||||
|
|
||||||
Revision 1.39 2001/12/29 15:32:13 jonas
|
Revision 1.39 2001/12/29 15:32:13 jonas
|
||||||
|
@ -492,8 +492,16 @@ begin
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.29 2001-12-30 17:24:46 jonas
|
Revision 1.30 2002-03-04 19:10:13 peter
|
||||||
* range checking is now processor independent (part in cgobj, part in
cg64f32) and should work correctly again (it needed some changes after
the changes of the low and high of tordef's to int64)
* maketojumpbool() is now processor independent (in ncgutil)
* getregister32 is now called getregisterint
|
* removed compiler warnings
|
||||||
|
|
||||||
|
Revision 1.29 2001/12/30 17:24:46 jonas
|
||||||
|
* range checking is now processor independent (part in cgobj,
|
||||||
|
part in cg64f32) and should work correctly again (it needed
|
||||||
|
some changes after the changes of the low and high of
|
||||||
|
tordef's to int64)
|
||||||
|
* maketojumpbool() is now processor independent (in ncgutil)
|
||||||
|
* getregister32 is now called getregisterint
|
||||||
|
|
||||||
Revision 1.28 2001/12/11 08:14:17 jonas
|
Revision 1.28 2001/12/11 08:14:17 jonas
|
||||||
* part of my fix for dynarray -> open array conversion, forgot to
|
* part of my fix for dynarray -> open array conversion, forgot to
|
||||||
@ -533,7 +541,7 @@ end.
|
|||||||
Revision 1.21 2001/08/28 13:24:47 jonas
|
Revision 1.21 2001/08/28 13:24:47 jonas
|
||||||
+ compilerproc implementation of most string-related type conversions
|
+ compilerproc implementation of most string-related type conversions
|
||||||
- removed all code from the compiler which has been replaced by
|
- removed all code from the compiler which has been replaced by
|
||||||
compilerproc implementations (using {$ifdef hascompilerproc} is not
|
compilerproc implementations (using $ifdef hascompilerproc is not
|
||||||
necessary in the compiler)
|
necessary in the compiler)
|
||||||
|
|
||||||
Revision 1.20 2001/08/26 13:36:57 florian
|
Revision 1.20 2001/08/26 13:36:57 florian
|
||||||
|
@ -729,8 +729,16 @@ begin
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.31 2001-12-30 17:24:46 jonas
|
Revision 1.32 2002-03-04 19:10:14 peter
|
||||||
* range checking is now processor independent (part in cgobj, part in
cg64f32) and should work correctly again (it needed some changes after
the changes of the low and high of tordef's to int64)
* maketojumpbool() is now processor independent (in ncgutil)
* getregister32 is now called getregisterint
|
* removed compiler warnings
|
||||||
|
|
||||||
|
Revision 1.31 2001/12/30 17:24:46 jonas
|
||||||
|
* range checking is now processor independent (part in cgobj,
|
||||||
|
part in cg64f32) and should work correctly again (it needed
|
||||||
|
some changes after the changes of the low and high of
|
||||||
|
tordef's to int64)
|
||||||
|
* maketojumpbool() is now processor independent (in ncgutil)
|
||||||
|
* getregister32 is now called getregisterint
|
||||||
|
|
||||||
Revision 1.30 2001/12/10 14:34:04 jonas
|
Revision 1.30 2001/12/10 14:34:04 jonas
|
||||||
* fixed type conversions from dynamic arrays to open arrays
|
* fixed type conversions from dynamic arrays to open arrays
|
||||||
|
@ -1091,8 +1091,16 @@ begin
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.28 2001-12-30 17:24:46 jonas
|
Revision 1.29 2002-03-04 19:10:14 peter
|
||||||
* range checking is now processor independent (part in cgobj, part in
cg64f32) and should work correctly again (it needed some changes after
the changes of the low and high of tordef's to int64)
* maketojumpbool() is now processor independent (in ncgutil)
* getregister32 is now called getregisterint
|
* removed compiler warnings
|
||||||
|
|
||||||
|
Revision 1.28 2001/12/30 17:24:46 jonas
|
||||||
|
* range checking is now processor independent (part in cgobj,
|
||||||
|
part in cg64f32) and should work correctly again (it needed
|
||||||
|
some changes after the changes of the low and high of
|
||||||
|
tordef's to int64)
|
||||||
|
* maketojumpbool() is now processor independent (in ncgutil)
|
||||||
|
* getregister32 is now called getregisterint
|
||||||
|
|
||||||
Revision 1.27 2001/12/17 23:16:05 florian
|
Revision 1.27 2001/12/17 23:16:05 florian
|
||||||
* array of const can now take widestring parameters as well
|
* array of const can now take widestring parameters as well
|
||||||
|
@ -64,18 +64,11 @@ implementation
|
|||||||
|
|
||||||
procedure ti386moddivnode.pass_2;
|
procedure ti386moddivnode.pass_2;
|
||||||
var
|
var
|
||||||
unusedregisters : tregisterset;
|
|
||||||
usablecount, regstopush : byte;
|
|
||||||
hreg1 : tregister;
|
hreg1 : tregister;
|
||||||
hreg2 : tregister;
|
hreg2 : tregister;
|
||||||
shrdiv, pushed,popeax,popedx : boolean;
|
shrdiv, pushed,popeax,popedx : boolean;
|
||||||
|
|
||||||
power : longint;
|
power : longint;
|
||||||
hl : tasmlabel;
|
hl : tasmlabel;
|
||||||
hloc : tlocation;
|
|
||||||
pushedreg : tpushed;
|
|
||||||
typename,opname : string[6];
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
shrdiv := false;
|
shrdiv := false;
|
||||||
secondpass(left);
|
secondpass(left);
|
||||||
@ -300,7 +293,7 @@ implementation
|
|||||||
hregister1,hregister2,hregister3,
|
hregister1,hregister2,hregister3,
|
||||||
hregisterhigh,hregisterlow : tregister;
|
hregisterhigh,hregisterlow : tregister;
|
||||||
pushed,popecx : boolean;
|
pushed,popecx : boolean;
|
||||||
op,opd : tasmop;
|
op : tasmop;
|
||||||
l1,l2,l3 : tasmlabel;
|
l1,l2,l3 : tasmlabel;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
@ -320,10 +313,6 @@ implementation
|
|||||||
|
|
||||||
if is_64bitint(left.resulttype.def) then
|
if is_64bitint(left.resulttype.def) then
|
||||||
begin
|
begin
|
||||||
if nodetype = shln then
|
|
||||||
opd:=A_SHLD
|
|
||||||
else opd:=A_SHRD;
|
|
||||||
|
|
||||||
{ load left operator in a register }
|
{ load left operator in a register }
|
||||||
if left.location.loc<>LOC_REGISTER then
|
if left.location.loc<>LOC_REGISTER then
|
||||||
begin
|
begin
|
||||||
@ -999,8 +988,16 @@ begin
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.22 2001-12-30 17:24:47 jonas
|
Revision 1.23 2002-03-04 19:10:14 peter
|
||||||
* range checking is now processor independent (part in cgobj, part in
cg64f32) and should work correctly again (it needed some changes after
the changes of the low and high of tordef's to int64)
* maketojumpbool() is now processor independent (in ncgutil)
* getregister32 is now called getregisterint
|
* removed compiler warnings
|
||||||
|
|
||||||
|
Revision 1.22 2001/12/30 17:24:47 jonas
|
||||||
|
* range checking is now processor independent (part in cgobj,
|
||||||
|
part in cg64f32) and should work correctly again (it needed
|
||||||
|
some changes after the changes of the low and high of
|
||||||
|
tordef's to int64)
|
||||||
|
* maketojumpbool() is now processor independent (in ncgutil)
|
||||||
|
* getregister32 is now called getregisterint
|
||||||
|
|
||||||
Revision 1.21 2001/12/29 15:27:24 jonas
|
Revision 1.21 2001/12/29 15:27:24 jonas
|
||||||
* made 'mod powerof2' -> 'and' optimization processor independent
|
* made 'mod powerof2' -> 'and' optimization processor independent
|
||||||
|
@ -701,8 +701,16 @@ begin
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.19 2001-12-30 17:24:47 jonas
|
Revision 1.20 2002-03-04 19:10:14 peter
|
||||||
* range checking is now processor independent (part in cgobj, part in
cg64f32) and should work correctly again (it needed some changes after
the changes of the low and high of tordef's to int64)
* maketojumpbool() is now processor independent (in ncgutil)
* getregister32 is now called getregisterint
|
* removed compiler warnings
|
||||||
|
|
||||||
|
Revision 1.19 2001/12/30 17:24:47 jonas
|
||||||
|
* range checking is now processor independent (part in cgobj,
|
||||||
|
part in cg64f32) and should work correctly again (it needed
|
||||||
|
some changes after the changes of the low and high of
|
||||||
|
tordef's to int64)
|
||||||
|
* maketojumpbool() is now processor independent (in ncgutil)
|
||||||
|
* getregister32 is now called getregisterint
|
||||||
|
|
||||||
Revision 1.18 2001/12/03 21:48:43 peter
|
Revision 1.18 2001/12/03 21:48:43 peter
|
||||||
* freemem change to value parameter
|
* freemem change to value parameter
|
||||||
|
@ -1199,8 +1199,16 @@ implementation
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.25 2001-12-30 17:24:47 jonas
|
Revision 1.26 2002-03-04 19:10:14 peter
|
||||||
* range checking is now processor independent (part in cgobj, part in
cg64f32) and should work correctly again (it needed some changes after
the changes of the low and high of tordef's to int64)
* maketojumpbool() is now processor independent (in ncgutil)
* getregister32 is now called getregisterint
|
* removed compiler warnings
|
||||||
|
|
||||||
|
Revision 1.25 2001/12/30 17:24:47 jonas
|
||||||
|
* range checking is now processor independent (part in cgobj,
|
||||||
|
part in cg64f32) and should work correctly again (it needed
|
||||||
|
some changes after the changes of the low and high of
|
||||||
|
tordef's to int64)
|
||||||
|
* maketojumpbool() is now processor independent (in ncgutil)
|
||||||
|
* getregister32 is now called getregisterint
|
||||||
|
|
||||||
Revision 1.24 2001/12/03 21:48:43 peter
|
Revision 1.24 2001/12/03 21:48:43 peter
|
||||||
* freemem change to value parameter
|
* freemem change to value parameter
|
||||||
|
@ -154,7 +154,6 @@ implementation
|
|||||||
org_list,
|
org_list,
|
||||||
then_list,
|
then_list,
|
||||||
else_list : taasmoutput;
|
else_list : taasmoutput;
|
||||||
regcounter: tregister;
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
otlabel:=truelabel;
|
otlabel:=truelabel;
|
||||||
@ -649,8 +648,16 @@ begin
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.7 2001-12-30 17:24:48 jonas
|
Revision 1.8 2002-03-04 19:10:11 peter
|
||||||
* range checking is now processor independent (part in cgobj, part in
cg64f32) and should work correctly again (it needed some changes after
the changes of the low and high of tordef's to int64)
* maketojumpbool() is now processor independent (in ncgutil)
* getregister32 is now called getregisterint
|
* removed compiler warnings
|
||||||
|
|
||||||
|
Revision 1.7 2001/12/30 17:24:48 jonas
|
||||||
|
* range checking is now processor independent (part in cgobj,
|
||||||
|
part in cg64f32) and should work correctly again (it needed
|
||||||
|
some changes after the changes of the low and high of
|
||||||
|
tordef's to int64)
|
||||||
|
* maketojumpbool() is now processor independent (in ncgutil)
|
||||||
|
* getregister32 is now called getregisterint
|
||||||
|
|
||||||
Revision 1.6 2001/12/29 15:28:57 jonas
|
Revision 1.6 2001/12/29 15:28:57 jonas
|
||||||
* powerpc/cgcpu.pas compiles :)
|
* powerpc/cgcpu.pas compiles :)
|
||||||
|
@ -213,8 +213,14 @@ end.
|
|||||||
|
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.1 2001-12-30 17:24:48 jonas
|
Revision 1.2 2002-03-04 19:10:11 peter
|
||||||
* range checking is now processor independent (part in cgobj, part in
cg64f32) and should work correctly again (it needed some changes after
the changes of the low and high of tordef's to int64)
* maketojumpbool() is now processor independent (in ncgutil)
* getregister32 is now called getregisterint
|
* removed compiler warnings
|
||||||
|
|
||||||
|
|
||||||
|
Revision 1.1 2001/12/30 17:24:48 jonas
|
||||||
|
* range checking is now processor independent (part in cgobj,
|
||||||
|
part in cg64f32) and should work correctly again (it needed
|
||||||
|
some changes after the changes of the low and high of
|
||||||
|
tordef's to int64)
|
||||||
|
* maketojumpbool() is now processor independent (in ncgutil)
|
||||||
|
* getregister32 is now called getregisterint
|
||||||
}
|
}
|
@ -688,8 +688,6 @@ implementation
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function tguidconstnode.det_resulttype:tnode;
|
function tguidconstnode.det_resulttype:tnode;
|
||||||
var
|
|
||||||
srsym : ttypesym;
|
|
||||||
begin
|
begin
|
||||||
result:=nil;
|
result:=nil;
|
||||||
resulttype.setdef(rec_tguid);
|
resulttype.setdef(rec_tguid);
|
||||||
@ -720,7 +718,10 @@ begin
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.24 2001-10-20 19:28:38 peter
|
Revision 1.25 2002-03-04 19:10:11 peter
|
||||||
|
* removed compiler warnings
|
||||||
|
|
||||||
|
Revision 1.24 2001/10/20 19:28:38 peter
|
||||||
* interface 2 guid support
|
* interface 2 guid support
|
||||||
* guid constants support
|
* guid constants support
|
||||||
|
|
||||||
|
@ -217,7 +217,7 @@ implementation
|
|||||||
|
|
||||||
function tmoddivnode.firstoptimize: tnode;
|
function tmoddivnode.firstoptimize: tnode;
|
||||||
var
|
var
|
||||||
power, shiftval : longint;
|
power{,shiftval} : longint;
|
||||||
newtype: tnodetype;
|
newtype: tnodetype;
|
||||||
begin
|
begin
|
||||||
result := nil;
|
result := nil;
|
||||||
@ -678,7 +678,10 @@ begin
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.28 2002-02-11 11:45:51 michael
|
Revision 1.29 2002-03-04 19:10:11 peter
|
||||||
|
* removed compiler warnings
|
||||||
|
|
||||||
|
Revision 1.28 2002/02/11 11:45:51 michael
|
||||||
* Compilation without mmx support fixed from Peter
|
* Compilation without mmx support fixed from Peter
|
||||||
|
|
||||||
Revision 1.27 2001/12/29 15:27:24 jonas
|
Revision 1.27 2001/12/29 15:27:24 jonas
|
||||||
|
@ -1501,16 +1501,11 @@ implementation
|
|||||||
|
|
||||||
|
|
||||||
procedure tglobalsymtable.load(ppufile:tcompilerppufile);
|
procedure tglobalsymtable.load(ppufile:tcompilerppufile);
|
||||||
{$ifdef GDB}
|
|
||||||
var
|
|
||||||
storeGlobalTypeCount : pword;
|
|
||||||
{$endif GDB}
|
|
||||||
begin
|
begin
|
||||||
{$ifdef GDB}
|
{$ifdef GDB}
|
||||||
if cs_gdb_dbx in aktglobalswitches then
|
if cs_gdb_dbx in aktglobalswitches then
|
||||||
begin
|
begin
|
||||||
UnitTypeCount:=1;
|
UnitTypeCount:=1;
|
||||||
storeGlobalTypeCount:=PGlobalTypeCount;
|
|
||||||
PglobalTypeCount:=@UnitTypeCount;
|
PglobalTypeCount:=@UnitTypeCount;
|
||||||
end;
|
end;
|
||||||
{$endif GDB}
|
{$endif GDB}
|
||||||
@ -2068,7 +2063,10 @@ implementation
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.55 2002-02-03 09:30:07 peter
|
Revision 1.56 2002-03-04 19:10:11 peter
|
||||||
|
* removed compiler warnings
|
||||||
|
|
||||||
|
Revision 1.55 2002/02/03 09:30:07 peter
|
||||||
* more fixes for protected handling
|
* more fixes for protected handling
|
||||||
|
|
||||||
Revision 1.54 2002/01/29 21:30:25 peter
|
Revision 1.54 2002/01/29 21:30:25 peter
|
||||||
|
@ -261,7 +261,7 @@ Var
|
|||||||
gprtobj,
|
gprtobj,
|
||||||
prtobj : string[80];
|
prtobj : string[80];
|
||||||
HPath : TStringListItem;
|
HPath : TStringListItem;
|
||||||
s,s1,s2 : string;
|
s,s2 : string;
|
||||||
linkdynamic,
|
linkdynamic,
|
||||||
linklibc : boolean;
|
linklibc : boolean;
|
||||||
begin
|
begin
|
||||||
@ -555,7 +555,10 @@ initialization
|
|||||||
end.
|
end.
|
||||||
{
|
{
|
||||||
$Log$
|
$Log$
|
||||||
Revision 1.15 2001-12-15 05:29:36 carl
|
Revision 1.16 2002-03-04 19:10:14 peter
|
||||||
|
* removed compiler warnings
|
||||||
|
|
||||||
|
Revision 1.15 2001/12/15 05:29:36 carl
|
||||||
+ crtbegin.o and crtend.o now not linked anymore since they can cause conflicts with
|
+ crtbegin.o and crtend.o now not linked anymore since they can cause conflicts with
|
||||||
GCC and the native C library...
|
GCC and the native C library...
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user