From 7ea11f01717f68927f4cc716d4ff04da26f18f57 Mon Sep 17 00:00:00 2001 From: pierre Date: Thu, 27 Sep 2012 15:59:57 +0000 Subject: [PATCH] Use SUPPORT_SAFECALL conditional git-svn-id: trunk@22490 - --- compiler/ncgcal.pas | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/ncgcal.pas b/compiler/ncgcal.pas index c94aa42089..bccbcecae4 100644 --- a/compiler/ncgcal.pas +++ b/compiler/ncgcal.pas @@ -691,7 +691,7 @@ implementation {$ifdef vtentry} sym : tasmsymbol; {$endif vtentry} -{$if defined(x86) or defined(arm)} +{$if defined(x86) or defined(arm) or defined(sparc)} cgpara : tcgpara; {$endif} begin @@ -977,7 +977,7 @@ implementation cg.dealloccpuregisters(current_asmdata.CurrAsmList,R_FPUREGISTER,regs_to_save_fpu); cg.dealloccpuregisters(current_asmdata.CurrAsmList,R_INTREGISTER,regs_to_save_int); -{$if defined(x86) or defined(arm)} +{$ifdef SUPPORT_SAFECALL} if (procdefinition.proccalloption=pocall_safecall) and (tf_safecall_exceptions in target_info.flags) then begin