[fpc-devel] FPC 2.0.0 vs FPC 2.0.2 (div by zero)

Den Jean Den.Jean at telenet.be
Wed Mar 8 02:34:33 CET 2006


On Tuesday 07 March 2006 02:45 am, Peter Vreman wrote:
> > Anyone any idea?
>
> In 2.0.0 the fpu exceptions are disabled if linking to C. In 2.0.2 this is
> fixed.

for "man G++ " it is not the default, I could not find Qt makefile
to disable them, so I was a bit perplex. 
(also had integer divisions in mind, quite a difference)

I notice now that even the smallest C++ program has FPE disabled
$ cat test.cpp
#include <stdio.h>
int main() { printf("FPE test:%f\n",142.0/0.0); }
$ ./a.out
FPE test:inf

So I now use fedisableexcept(FE_ALL_EXCEPT); 
in the initialization section of qt4.pas

thx

Den Jean








More information about the fpc-devel mailing list