mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 14:29:14 +02:00
* Moved generation of .ent/.end directives out of generic code generator.
* Generation of .ent/.end directives for Alpha is dropped, but that target has more important issues to solve. git-svn-id: trunk@26757 -
This commit is contained in:
parent
4da9805007
commit
ed1555b918
@ -3857,12 +3857,6 @@ implementation
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
function use_ent : boolean;
|
|
||||||
begin
|
|
||||||
use_ent := (target_info.system in [system_mipsel_linux,system_mipseb_linux,system_mipsel_android])
|
|
||||||
or (target_info.cpu=cpu_alpha);
|
|
||||||
end;
|
|
||||||
|
|
||||||
procedure thlcgobj.gen_proc_symbol(list: TAsmList);
|
procedure thlcgobj.gen_proc_symbol(list: TAsmList);
|
||||||
var
|
var
|
||||||
item,
|
item,
|
||||||
@ -3896,15 +3890,11 @@ implementation
|
|||||||
previtem:=item;
|
previtem:=item;
|
||||||
item := TCmdStrListItem(item.next);
|
item := TCmdStrListItem(item.next);
|
||||||
end;
|
end;
|
||||||
if (use_ent) then
|
|
||||||
list.concat(Tai_directive.create(asd_ent,current_procinfo.procdef.mangledname));
|
|
||||||
current_procinfo.procdef.procstarttai:=tai(list.last);
|
current_procinfo.procdef.procstarttai:=tai(list.last);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure thlcgobj.gen_proc_symbol_end(list: TAsmList);
|
procedure thlcgobj.gen_proc_symbol_end(list: TAsmList);
|
||||||
begin
|
begin
|
||||||
if (use_ent) then
|
|
||||||
list.concat(Tai_directive.create(asd_ent_end,current_procinfo.procdef.mangledname));
|
|
||||||
list.concat(Tai_symbol_end.Createname(current_procinfo.procdef.mangledname));
|
list.concat(Tai_symbol_end.Createname(current_procinfo.procdef.mangledname));
|
||||||
|
|
||||||
current_procinfo.procdef.procendtai:=tai(list.last);
|
current_procinfo.procdef.procendtai:=tai(list.last);
|
||||||
|
@ -1195,6 +1195,7 @@ var
|
|||||||
helplist : TAsmList;
|
helplist : TAsmList;
|
||||||
largeoffs : boolean;
|
largeoffs : boolean;
|
||||||
begin
|
begin
|
||||||
|
list.concat(tai_directive.create(asd_ent,current_procinfo.procdef.mangledname));
|
||||||
a_reg_alloc(list,NR_STACK_POINTER_REG);
|
a_reg_alloc(list,NR_STACK_POINTER_REG);
|
||||||
|
|
||||||
if nostackframe then
|
if nostackframe then
|
||||||
@ -1396,6 +1397,7 @@ begin
|
|||||||
list.concat(Taicpu.op_none(A_P_SET_MACRO));
|
list.concat(Taicpu.op_none(A_P_SET_MACRO));
|
||||||
list.concat(Taicpu.op_none(A_P_SET_REORDER));
|
list.concat(Taicpu.op_none(A_P_SET_REORDER));
|
||||||
end;
|
end;
|
||||||
|
list.concat(tai_directive.create(asd_ent_end,current_procinfo.procdef.mangledname));
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user