mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-05-31 00:42:33 +02:00
* stabn writing code simplified
* write 0 instead of "label-label" in stabn, arm thumb assemblers do not like "label-label", for other targets writing 0 should make no difference git-svn-id: trunk@28539 -
This commit is contained in:
parent
09728a9ae2
commit
64dafdb1de
@ -1408,20 +1408,16 @@ implementation
|
||||
if target_info.system in systems_dotted_function_names then
|
||||
mangledname:='.'+mangledname;
|
||||
// LBRAC
|
||||
ss:=tostr(STABS_N_LBRAC)+',0,0,'+mangledname;
|
||||
if not(af_stabs_use_function_absolute_addresses in target_asm.flags) then
|
||||
begin
|
||||
ss:=ss+'-';
|
||||
ss:=ss+mangledname;
|
||||
end;
|
||||
if af_stabs_use_function_absolute_addresses in target_asm.flags then
|
||||
ss:=tostr(STABS_N_LBRAC)+',0,0,'+mangledname
|
||||
else
|
||||
ss:=tostr(STABS_N_LBRAC)+',0,0,0';
|
||||
result.concat(Tai_stab.Create_ansistr(stab_stabn,ss));
|
||||
|
||||
// RBRAC
|
||||
ss:=tostr(STABS_N_RBRAC)+',0,0,'+stabsendlabel.name;
|
||||
if not(af_stabs_use_function_absolute_addresses in target_asm.flags) then
|
||||
begin
|
||||
ss:=ss+'-';
|
||||
ss:=ss+mangledname;
|
||||
end;
|
||||
ss:=ss+'-'+mangledname;
|
||||
result.concat(Tai_stab.Create_ansistr(stab_stabn,ss));
|
||||
|
||||
{ the stabsendlabel must come after all other stabs for this }
|
||||
|
Loading…
Reference in New Issue
Block a user