This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
OK. I looked at your patch. I'll test and review it more formally on Saturday.
As for fenv (it's already been discussed here), there's no C99 way to raise FPE on individually selected exceptions.
Huh? feraiseexcept(FE_OVEFLOW) will raise an overflow exception.
You can do the same with FE_INVALID, FE_DIVBYZERO, FE_INEXACT, and FE_UNDERFLOW.
float x; raise_fpe_on_ieee_exception(EXCEPTION_INVALID); x = -2; x = sqrt(x); // This raises a FPE
-- FX
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |