Nicholas Clark <nick@ccl4.org>: > I asked a friend to run > perl -we 'use POSIX; print acos(3.7), "\n"' > > on an alpha running Debian GNU/Linux. He gets NaN rather > than a core dump. He suggests building with -mieee in > the cflags, which is what Debian use. I recompiled the devel version of perl 5.6.1 to use the -mieee flag. That prevented the SIGFPE. [perl-5.7.2]$ ./perl -Ilib -e 'use POSIX; print acos(3.7), "\n"' nan [perl-5.7.2]$ perl -e 'use POSIX; print acos(3.7), "\n"' Floating exception (core dumped) [perl-5.7.2]$ > Is building with -mieee a sensible idea? If so, should > it be on by default on Alpha linux? Frankly, I don't know. If Debian does it and since it prevents this signal from occuring, then I would recommend it. I don't know enough of the consequences for that to be a solid recommendation. Andrew dalke@dalkescientific.comThread Next