https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68356

--- Comment #15 from Iain Sandoe <iains at gcc dot gnu.org> ---
by coincidence (triaging Darwin bugs at the moment) I was looking at this last
night.

An alternative, for platforms with math_errhandling and which use
MATH_ERREXCEPT, (Darwin and a couple of others) could be to arrange for the
tests to check the exception conditions when MATH_ERREXCEPT is set in
math_errhandling and errno otherwise (I was thinking of looking into adding an
extra field to the TEST macro for the exception bit value).

However, if there's not 1:1 mapping (it could be that the exception bits are
more fine-grained), then perhaps better to skip the test and add a similar one
that is keyed off the exception bits instead.

Reply via email to