mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-07 05:19:32 +01:00
* Fixed level 2 comment warnings.
git-svn-id: trunk@11441 -
This commit is contained in:
parent
6daceb38f6
commit
6c6bf452ca
@ -70,7 +70,7 @@ Unit aoptda;
|
|||||||
TmpReg: TRegister;
|
TmpReg: TRegister;
|
||||||
}
|
}
|
||||||
Begin
|
Begin
|
||||||
{!!!!!!!!!!
|
(*!!!!!!!!!!
|
||||||
p := BlockStart;
|
p := BlockStart;
|
||||||
UsedRegs.Create;
|
UsedRegs.Create;
|
||||||
UsedRegs.Update(p);
|
UsedRegs.Update(p);
|
||||||
@ -159,7 +159,7 @@ Unit aoptda;
|
|||||||
{ Inc(InstrCnt);}
|
{ Inc(InstrCnt);}
|
||||||
GetNextInstruction(p, p);
|
GetNextInstruction(p, p);
|
||||||
End;
|
End;
|
||||||
}
|
*)
|
||||||
End;
|
End;
|
||||||
|
|
||||||
End.
|
End.
|
||||||
|
|||||||
@ -384,8 +384,8 @@ Unit AoptObj;
|
|||||||
Counter: Byte;
|
Counter: Byte;
|
||||||
TmpResult: Boolean;
|
TmpResult: Boolean;
|
||||||
}
|
}
|
||||||
Begin
|
begin
|
||||||
{!!!!!!!!!!1
|
(*!!!!!!!!!!1
|
||||||
RegsChecked := [];
|
RegsChecked := [];
|
||||||
content := regs[which];
|
content := regs[which];
|
||||||
p := content.StartMod;
|
p := content.StartMod;
|
||||||
@ -423,7 +423,7 @@ Unit AoptObj;
|
|||||||
GetNextInstruction(p,p)
|
GetNextInstruction(p,p)
|
||||||
End;
|
End;
|
||||||
RegInSequence := TmpResult
|
RegInSequence := TmpResult
|
||||||
}
|
*)
|
||||||
End;
|
End;
|
||||||
|
|
||||||
|
|
||||||
@ -458,14 +458,14 @@ Unit AoptObj;
|
|||||||
|
|
||||||
Function ArrayRefsEq(const r1, r2: TReference): Boolean;
|
Function ArrayRefsEq(const r1, r2: TReference): Boolean;
|
||||||
Begin
|
Begin
|
||||||
{!!!!!!!!!!
|
(*!!!!!!!!!!
|
||||||
ArrayRefsEq := (R1.Offset+R1.OffsetFixup = R2.Offset+R2.OffsetFixup) And
|
ArrayRefsEq := (R1.Offset+R1.OffsetFixup = R2.Offset+R2.OffsetFixup) And
|
||||||
{$ifdef refsHaveSegmentReg}
|
{$ifdef refsHaveSegmentReg}
|
||||||
(R1.Segment = R2.Segment) And
|
(R1.Segment = R2.Segment) And
|
||||||
{$endif}
|
{$endif}
|
||||||
(R1.Base = R2.Base) And
|
(R1.Base = R2.Base) And
|
||||||
(R1.Symbol=R2.Symbol);
|
(R1.Symbol=R2.Symbol);
|
||||||
}
|
*)
|
||||||
End;
|
End;
|
||||||
|
|
||||||
Procedure TPaiProp.DestroyRefs(Const Ref: TReference; WhichReg: TRegister;
|
Procedure TPaiProp.DestroyRefs(Const Ref: TReference; WhichReg: TRegister;
|
||||||
@ -478,7 +478,7 @@ Unit AoptObj;
|
|||||||
Counter: TRegister;
|
Counter: TRegister;
|
||||||
}
|
}
|
||||||
Begin
|
Begin
|
||||||
{!!!!!!!!!!!
|
(*!!!!!!!!!!!
|
||||||
WhichReg := RegMaxSize(WhichReg);
|
WhichReg := RegMaxSize(WhichReg);
|
||||||
If (Ref.base = procinfo.FramePointer) or
|
If (Ref.base = procinfo.FramePointer) or
|
||||||
Assigned(Ref.Symbol) Then
|
Assigned(Ref.Symbol) Then
|
||||||
@ -549,13 +549,13 @@ Unit AoptObj;
|
|||||||
)
|
)
|
||||||
)
|
)
|
||||||
Then DestroyReg(Counter, InstrSinceLastMod)
|
Then DestroyReg(Counter, InstrSinceLastMod)
|
||||||
}
|
*)
|
||||||
End;
|
End;
|
||||||
|
|
||||||
Procedure TPaiProp.DestroyAllRegs(var InstrSinceLastMod: TInstrSinceLastMod);
|
Procedure TPaiProp.DestroyAllRegs(var InstrSinceLastMod: TInstrSinceLastMod);
|
||||||
{Var Counter: TRegister;}
|
{Var Counter: TRegister;}
|
||||||
Begin {initializes/desrtoys all registers}
|
Begin {initializes/desrtoys all registers}
|
||||||
{!!!!!!!!!
|
(*!!!!!!!!!
|
||||||
For Counter := LoGPReg To HiGPReg Do
|
For Counter := LoGPReg To HiGPReg Do
|
||||||
Begin
|
Begin
|
||||||
ReadReg(Counter);
|
ReadReg(Counter);
|
||||||
@ -563,7 +563,7 @@ Unit AoptObj;
|
|||||||
End;
|
End;
|
||||||
CondRegs.Init;
|
CondRegs.Init;
|
||||||
{ FPURegs.Init; }
|
{ FPURegs.Init; }
|
||||||
}
|
*)
|
||||||
End;
|
End;
|
||||||
|
|
||||||
Procedure TPaiProp.DestroyOp(const o:Toper; var InstrSinceLastMod:
|
Procedure TPaiProp.DestroyOp(const o:Toper; var InstrSinceLastMod:
|
||||||
@ -593,14 +593,14 @@ Unit AoptObj;
|
|||||||
|
|
||||||
Procedure TPaiProp.ReadRef(Ref: PReference);
|
Procedure TPaiProp.ReadRef(Ref: PReference);
|
||||||
Begin
|
Begin
|
||||||
{!!!!!!!
|
(*!!!!!!
|
||||||
If Ref^.Base <> R_NO Then
|
If Ref^.Base <> R_NO Then
|
||||||
ReadReg(Ref^.Base);
|
ReadReg(Ref^.Base);
|
||||||
{$ifdef refsHaveIndexReg}
|
{$ifdef refsHaveIndexReg}
|
||||||
If Ref^.Index <> R_NO Then
|
If Ref^.Index <> R_NO Then
|
||||||
ReadReg(Ref^.Index);
|
ReadReg(Ref^.Index);
|
||||||
{$endif}
|
{$endif}
|
||||||
}
|
*)
|
||||||
End;
|
End;
|
||||||
|
|
||||||
Procedure TPaiProp.ReadOp(const o:toper);
|
Procedure TPaiProp.ReadOp(const o:toper);
|
||||||
@ -616,7 +616,7 @@ Unit AoptObj;
|
|||||||
Procedure TPaiProp.ModifyReg(reg: TRegister; Var InstrSinceLastMod:
|
Procedure TPaiProp.ModifyReg(reg: TRegister; Var InstrSinceLastMod:
|
||||||
TInstrSinceLastMod);
|
TInstrSinceLastMod);
|
||||||
Begin
|
Begin
|
||||||
{!!!!!!!
|
(*!!!!!!!
|
||||||
With Regs[reg] Do
|
With Regs[reg] Do
|
||||||
If (Typ = Con_Ref)
|
If (Typ = Con_Ref)
|
||||||
Then
|
Then
|
||||||
@ -631,7 +631,7 @@ Unit AoptObj;
|
|||||||
End
|
End
|
||||||
Else
|
Else
|
||||||
DestroyReg(Reg, InstrSinceLastMod);
|
DestroyReg(Reg, InstrSinceLastMod);
|
||||||
}
|
*)
|
||||||
End;
|
End;
|
||||||
|
|
||||||
Procedure TPaiProp.ModifyOp(const oper: TOper; var InstrSinceLastMod:
|
Procedure TPaiProp.ModifyOp(const oper: TOper; var InstrSinceLastMod:
|
||||||
|
|||||||
@ -1581,7 +1581,7 @@ static void gencode (long segment, long offset, int bits,
|
|||||||
0x05, 0x07, 0x06,
|
0x05, 0x07, 0x06,
|
||||||
};
|
};
|
||||||
|
|
||||||
(*
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
static char *CC[] =
|
static char *CC[] =
|
||||||
{ /* condition code names */
|
{ /* condition code names */
|
||||||
@ -1591,7 +1591,7 @@ static char *CC[] =
|
|||||||
"PL", "VC", "VS", "",
|
"PL", "VC", "VS", "",
|
||||||
"S"
|
"S"
|
||||||
};
|
};
|
||||||
*)
|
|
||||||
|
|
||||||
has_S_code = (ins->condition & C_SSETFLAG);
|
has_S_code = (ins->condition & C_SSETFLAG);
|
||||||
has_B_code = (ins->condition & C_BSETFLAG);
|
has_B_code = (ins->condition & C_BSETFLAG);
|
||||||
@ -1600,7 +1600,7 @@ static char *CC[] =
|
|||||||
has_F_code = (ins->condition & C_FSETFLAG);
|
has_F_code = (ins->condition & C_FSETFLAG);
|
||||||
ins->condition = (ins->condition & 0x0F);
|
ins->condition = (ins->condition & 0x0F);
|
||||||
|
|
||||||
(*
|
|
||||||
if (rt_debug)
|
if (rt_debug)
|
||||||
{
|
{
|
||||||
printf ("gencode: instruction: %s%s", insn_names[ins->opcode],
|
printf ("gencode: instruction: %s%s", insn_names[ins->opcode],
|
||||||
@ -1628,7 +1628,7 @@ static char *CC[] =
|
|||||||
bytes[2] = 0xE;
|
bytes[2] = 0xE;
|
||||||
bytes[3] = 0xF;
|
bytes[3] = 0xF;
|
||||||
}
|
}
|
||||||
*)
|
|
||||||
// First condition code in upper nibble
|
// First condition code in upper nibble
|
||||||
if (ins->condition < C_NONE)
|
if (ins->condition < C_NONE)
|
||||||
{
|
{
|
||||||
@ -2493,10 +2493,8 @@ static char *CC[] =
|
|||||||
out (offset, segment, bytes, OUT_RAWDATA+4, NO_SEG, NO_SEG);
|
out (offset, segment, bytes, OUT_RAWDATA+4, NO_SEG, NO_SEG);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
*)
|
*)
|
||||||
{$endif dummy
|
{$endif dummy}
|
||||||
}
|
|
||||||
|
|
||||||
begin
|
begin
|
||||||
cai_align:=tai_align;
|
cai_align:=tai_align;
|
||||||
|
|||||||
@ -1287,7 +1287,7 @@ unit cgcpu;
|
|||||||
if current_procinfo.framepointer<>NR_STACK_POINTER_REG then
|
if current_procinfo.framepointer<>NR_STACK_POINTER_REG then
|
||||||
list.concat(taicpu.op_reg_reg_const(A_SUB,NR_FRAME_POINTER_REG,NR_R12,4));
|
list.concat(taicpu.op_reg_reg_const(A_SUB,NR_FRAME_POINTER_REG,NR_R12,4));
|
||||||
|
|
||||||
{ allocate necessary stack size
|
(* allocate necessary stack size
|
||||||
not necessary according to Yury Sidorov
|
not necessary according to Yury Sidorov
|
||||||
|
|
||||||
{ don't use a_op_const_reg_reg here because we don't allow register allocations
|
{ don't use a_op_const_reg_reg here because we don't allow register allocations
|
||||||
@ -1349,7 +1349,7 @@ unit cgcpu;
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
}
|
*)
|
||||||
if LocalSize<>0 then
|
if LocalSize<>0 then
|
||||||
if not(is_shifter_const(localsize,shift)) then
|
if not(is_shifter_const(localsize,shift)) then
|
||||||
begin
|
begin
|
||||||
|
|||||||
@ -39,7 +39,7 @@ Unit ra386int;
|
|||||||
uses
|
uses
|
||||||
rabase,systems,rax86,aasmcpu;
|
rabase,systems,rax86,aasmcpu;
|
||||||
|
|
||||||
{
|
(*
|
||||||
procedure ti386intreader.handleopcode;
|
procedure ti386intreader.handleopcode;
|
||||||
var
|
var
|
||||||
instr : Tx86Instruction;
|
instr : Tx86Instruction;
|
||||||
@ -55,7 +55,7 @@ Unit ra386int;
|
|||||||
instr.ConcatInstruction(curlist);
|
instr.ConcatInstruction(curlist);
|
||||||
instr.Free;
|
instr.Free;
|
||||||
end;
|
end;
|
||||||
}
|
*)
|
||||||
|
|
||||||
{*****************************************************************************
|
{*****************************************************************************
|
||||||
Initialize
|
Initialize
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user