mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-10-14 10:26:03 +02:00
* removed unused local variables
* fixed some "uninitialised function result" warnings for dummy routines git-svn-id: branches/jvmbackend@18381 -
This commit is contained in:
parent
678e6dceef
commit
608572c63a
@ -146,22 +146,14 @@ implementation
|
|||||||
ch : char;
|
ch : char;
|
||||||
hp : tai;
|
hp : tai;
|
||||||
hp1 : tailineinfo;
|
hp1 : tailineinfo;
|
||||||
constdef : taiconst_type;
|
s : string;
|
||||||
s,t : string;
|
i,pos : longint;
|
||||||
i,pos,l : longint;
|
|
||||||
InlineLevel : longint;
|
InlineLevel : longint;
|
||||||
last_align : longint;
|
|
||||||
co : comp;
|
|
||||||
sin : single;
|
|
||||||
d : double;
|
|
||||||
do_line : boolean;
|
do_line : boolean;
|
||||||
|
|
||||||
sepChar : char;
|
|
||||||
begin
|
begin
|
||||||
if not assigned(p) then
|
if not assigned(p) then
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
last_align := 2;
|
|
||||||
InlineLevel:=0;
|
InlineLevel:=0;
|
||||||
{ lineinfo is only needed for al_procedures (PFV) }
|
{ lineinfo is only needed for al_procedures (PFV) }
|
||||||
do_line:=(cs_asm_source in current_settings.globalswitches);
|
do_line:=(cs_asm_source in current_settings.globalswitches);
|
||||||
@ -733,9 +725,6 @@ implementation
|
|||||||
|
|
||||||
|
|
||||||
procedure TJasminAssembler.WriteAsmList;
|
procedure TJasminAssembler.WriteAsmList;
|
||||||
var
|
|
||||||
hal : tasmlisttype;
|
|
||||||
i: longint;
|
|
||||||
begin
|
begin
|
||||||
{$ifdef EXTDEBUG}
|
{$ifdef EXTDEBUG}
|
||||||
if assigned(current_module.mainsource) then
|
if assigned(current_module.mainsource) then
|
||||||
@ -808,7 +797,6 @@ implementation
|
|||||||
function getopstr(const o:toper) : ansistring;
|
function getopstr(const o:toper) : ansistring;
|
||||||
var
|
var
|
||||||
i,runstart,runlen: longint;
|
i,runstart,runlen: longint;
|
||||||
num: string[4];
|
|
||||||
d: double;
|
d: double;
|
||||||
s: single;
|
s: single;
|
||||||
begin
|
begin
|
||||||
|
@ -1661,7 +1661,6 @@ implementation
|
|||||||
procedure thlcgobj.location_force_fpureg(list: TAsmList; var l: tlocation; size: tdef; maybeconst: boolean);
|
procedure thlcgobj.location_force_fpureg(list: TAsmList; var l: tlocation; size: tdef; maybeconst: boolean);
|
||||||
var
|
var
|
||||||
reg : tregister;
|
reg : tregister;
|
||||||
href : treference;
|
|
||||||
begin
|
begin
|
||||||
if (l.loc<>LOC_FPUREGISTER) and
|
if (l.loc<>LOC_FPUREGISTER) and
|
||||||
((l.loc<>LOC_CFPUREGISTER) or (not maybeconst)) then
|
((l.loc<>LOC_CFPUREGISTER) or (not maybeconst)) then
|
||||||
|
@ -274,12 +274,14 @@ implementation
|
|||||||
function spilling_create_load(const ref:treference;r:tregister):Taicpu;
|
function spilling_create_load(const ref:treference;r:tregister):Taicpu;
|
||||||
begin
|
begin
|
||||||
internalerror(2010122614);
|
internalerror(2010122614);
|
||||||
|
result:=nil;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
function spilling_create_store(r:tregister; const ref:treference):Taicpu;
|
function spilling_create_store(r:tregister; const ref:treference):Taicpu;
|
||||||
begin
|
begin
|
||||||
internalerror(2010122615);
|
internalerror(2010122615);
|
||||||
|
result:=nil;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
@ -113,8 +113,6 @@ implementation
|
|||||||
|
|
||||||
|
|
||||||
procedure tcgjvm.do_register_allocation(list:TAsmList;headertai:tai);
|
procedure tcgjvm.do_register_allocation(list:TAsmList;headertai:tai);
|
||||||
var
|
|
||||||
rt : tregistertype;
|
|
||||||
begin
|
begin
|
||||||
{ We only run the "register allocation" once for an arbitrary allocator,
|
{ We only run the "register allocation" once for an arbitrary allocator,
|
||||||
which will perform the register->temp mapping for all register types.
|
which will perform the register->temp mapping for all register types.
|
||||||
|
@ -1054,8 +1054,6 @@ implementation
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
procedure thlcgjvm.g_initialize(list: TAsmList; t: tdef; const ref: treference);
|
procedure thlcgjvm.g_initialize(list: TAsmList; t: tdef; const ref: treference);
|
||||||
var
|
|
||||||
extra_slots: longint;
|
|
||||||
begin
|
begin
|
||||||
a_load_const_ref(list,t,0,ref);
|
a_load_const_ref(list,t,0,ref);
|
||||||
end;
|
end;
|
||||||
@ -1127,8 +1125,6 @@ implementation
|
|||||||
getputopc: array[boolean,boolean] of tasmop =
|
getputopc: array[boolean,boolean] of tasmop =
|
||||||
((a_putfield,a_putstatic),
|
((a_putfield,a_putstatic),
|
||||||
(a_getfield,a_getstatic));
|
(a_getfield,a_getstatic));
|
||||||
var
|
|
||||||
size: aint;
|
|
||||||
begin
|
begin
|
||||||
if assigned(ref.symbol) then
|
if assigned(ref.symbol) then
|
||||||
begin
|
begin
|
||||||
|
@ -195,7 +195,6 @@ implementation
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
href : treference;
|
|
||||||
signeddef : tdef;
|
signeddef : tdef;
|
||||||
l1 : tasmlabel;
|
l1 : tasmlabel;
|
||||||
|
|
||||||
@ -276,8 +275,6 @@ implementation
|
|||||||
|
|
||||||
procedure tjvmtypeconvnode.second_int_to_bool;
|
procedure tjvmtypeconvnode.second_int_to_bool;
|
||||||
var
|
var
|
||||||
href: treference;
|
|
||||||
hreg2 : tregister;
|
|
||||||
hlabel1,hlabel2,oldTrueLabel,oldFalseLabel : tasmlabel;
|
hlabel1,hlabel2,oldTrueLabel,oldFalseLabel : tasmlabel;
|
||||||
newsize : tcgsize;
|
newsize : tcgsize;
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user