소스 검색

* set pi_do_call for AArch64 mod/div nodes, as they call FPC_DIVBYZERO

git-svn-id: trunk@30032 -
Jonas Maebe 10 년 전
부모
커밋
ada5060a34
1개의 변경된 파일9개의 추가작업 그리고 0개의 파일을 삭제
  1. 9 0
      compiler/aarch64/ncpumat.pas

+ 9 - 0
compiler/aarch64/ncpumat.pas

@@ -30,6 +30,7 @@ interface
 
     type
       taarch64moddivnode = class(tmoddivnode)
+         function pass_1: tnode; override;
          procedure pass_generate_code;override;
       end;
 
@@ -58,6 +59,14 @@ implementation
                              taarch64moddivnode
 *****************************************************************************}
 
+    function taarch64moddivnode.pass_1: tnode;
+      begin
+        result:=inherited pass_1;
+        if not assigned(result) then
+          include(current_procinfo.flags,pi_do_call);
+      end;
+
+
     procedure taarch64moddivnode.pass_generate_code;
       var
          op         : tasmop;