소스 검색

Avoid use of fastmath optimization inside compiler

(cherry picked from commit 91f29419a5fcaffbb09ad8a98957a91ef806aa8a)
Pierre Muller 3 년 전
부모
커밋
90301426fc
1개의 변경된 파일5개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      compiler/fpcdefs.inc

+ 5 - 0
compiler/fpcdefs.inc

@@ -19,6 +19,11 @@
   exceptions in the constructors }
 {$IMPLICITEXCEPTIONS OFF}
 
+{ We don't want the compiler to use fastmath
+  optimization because it considers negative zeroes
+  as normal zeroes }
+{$OPTIMIZATION NOFASTMATH}
+
 { This define enables codepage-aware compiler messages handling. Turning it on
   forces code page conversion from the codepage, specified in the .msg file to
   CP_ACP, before printing the message to the console. Enable this for host