mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-26 23:10:25 +02:00
* fixed duplicate alias check
git-svn-id: trunk@6003 -
This commit is contained in:
parent
84445cd6c0
commit
323fc850b9
@ -1919,20 +1919,20 @@ implementation
|
|||||||
|
|
||||||
procedure gen_proc_symbol(list:TAsmList);
|
procedure gen_proc_symbol(list:TAsmList);
|
||||||
var
|
var
|
||||||
hs : string;
|
item : tstringlistitem;
|
||||||
|
begin
|
||||||
|
item := tstringlistitem(current_procinfo.procdef.aliasnames.first);
|
||||||
|
while assigned(item) do
|
||||||
begin
|
begin
|
||||||
repeat
|
|
||||||
hs:=current_procinfo.procdef.aliasnames.getfirst;
|
|
||||||
if hs='' then
|
|
||||||
break;
|
|
||||||
if (cs_profile in current_settings.moduleswitches) or
|
if (cs_profile in current_settings.moduleswitches) or
|
||||||
(po_global in current_procinfo.procdef.procoptions) then
|
(po_global in current_procinfo.procdef.procoptions) then
|
||||||
list.concat(Tai_symbol.createname_global(hs,AT_FUNCTION,0))
|
list.concat(Tai_symbol.createname_global(item.str,AT_FUNCTION,0))
|
||||||
else
|
else
|
||||||
list.concat(Tai_symbol.createname(hs,AT_FUNCTION,0));
|
list.concat(Tai_symbol.createname(item.str,AT_FUNCTION,0));
|
||||||
if tf_use_function_relative_addresses in target_info.flags then
|
if tf_use_function_relative_addresses in target_info.flags then
|
||||||
list.concat(Tai_function_name.create(hs));
|
list.concat(Tai_function_name.create(item.str));
|
||||||
until false;
|
item := tstringlistitem(item.next);
|
||||||
|
end;
|
||||||
|
|
||||||
current_procinfo.procdef.procstarttai:=tai(list.last);
|
current_procinfo.procdef.procstarttai:=tai(list.last);
|
||||||
end;
|
end;
|
||||||
|
@ -164,7 +164,7 @@ begin
|
|||||||
{ the manglednames can already be the same when the procedure
|
{ the manglednames can already be the same when the procedure
|
||||||
is declared with cdecl }
|
is declared with cdecl }
|
||||||
pd:=tprocdef(tprocsym(hp2.sym).ProcdefList[0]);
|
pd:=tprocdef(tprocsym(hp2.sym).ProcdefList[0]);
|
||||||
if has_alias_name(pd,hp2.name^) then
|
if not has_alias_name(pd,hp2.name^) then
|
||||||
begin
|
begin
|
||||||
{ place jump in al_procedures }
|
{ place jump in al_procedures }
|
||||||
current_asmdata.asmlists[al_procedures].concat(tai_align.create(target_info.alignment.procalign));
|
current_asmdata.asmlists[al_procedures].concat(tai_align.create(target_info.alignment.procalign));
|
||||||
|
Loading…
Reference in New Issue
Block a user