mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-17 13:39:36 +02:00
ARM: mimic what GNU C does while calling the profiling mcount on ARM
git-svn-id: trunk@28648 -
This commit is contained in:
parent
0b4d54fcb9
commit
1b0a1f4508
@ -1801,7 +1801,10 @@ unit cgcpu;
|
||||
procedure tbasecgarm.g_profilecode(list : TAsmList);
|
||||
begin
|
||||
if target_info.system = system_arm_linux then
|
||||
a_call_name(list,target_info.Cprefix+'mcount',false)
|
||||
begin
|
||||
list.concat(taicpu.op_regset(A_PUSH,R_INTREGISTER,R_SUBWHOLE,[RS_R14]));
|
||||
a_call_name(list,'__gnu_mcount_nc',false);
|
||||
end
|
||||
else
|
||||
internalerror(2014091201);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user