ARM: mimic what GNU C does while calling the profiling mcount on ARM

git-svn-id: trunk@28648 -
This commit is contained in:
Károly Balogh 2014-09-13 00:17:10 +00:00
parent 0b4d54fcb9
commit 1b0a1f4508

View File

@ -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;