DEFEATURE: remove old IRIX code for floating-point-exceptions

This commit is contained in:
Mark Olesen
2019-04-12 18:35:18 +02:00
parent 6760ce475c
commit bb10705ace

View File

@ -41,8 +41,6 @@ License
#endif
#include <fenv.h>
#include <malloc.h>
#elif defined(sgiN32) || defined(sgiN32Gcc)
#include <sigfpe.h>
#endif
#ifdef darwin
@ -201,33 +199,9 @@ void Foam::sigFpe::set(bool verbose)
setHandler("SIGFPE", SIGFPE, sigHandler);
sigActive_ = true;
#elif defined(sgiN32) || defined(sgiN32Gcc)
sigfpe_[_DIVZERO].abort=1;
sigfpe_[_OVERFL].abort=1;
sigfpe_[_INVALID].abort=1;
sigfpe_[_DIVZERO].trace=1;
sigfpe_[_OVERFL].trace=1;
sigfpe_[_INVALID].trace=1;
handle_sigfpes
(
_ON,
_EN_DIVZERO
| _EN_INVALID
| _EN_OVERFL,
0,
_ABORT_ON_ERROR,
nullptr
);
sigActive_ = true;
#endif
if (verbose)
{
Info<< "trapFpe: Floating point exception trapping ";