Просмотр исходного кода

Use SUPPORT_SAFECALL conditional

git-svn-id: trunk@22490 -
pierre 13 лет назад
Родитель
Сommit
7ea11f0171
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      compiler/ncgcal.pas

+ 2 - 2
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