Pārlūkot izejas kodu

Avoid use of fastmath optimization inside compiler

Pierre Muller 3 gadi atpakaļ
vecāks
revīzija
91f29419a5
1 mainītis faili ar 5 papildinājumiem un 0 dzēšanām
  1. 5 0
      compiler/fpcdefs.inc

+ 5 - 0
compiler/fpcdefs.inc

@@ -15,6 +15,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}
+
 { We don't want C operators to be used inside the compiler }
 {$COPERATORS OFF}