dd95b39235
Building R exposed a problem in fpsetmask() whereby we were not properly clamping the provided mask to the valid range. R initilizes the mask by calling fpsetmask(~0) on FreeBSD. Since we recently enabled precise exceptions, this was causing an immediate SIGFPE because we were attempting to set invalid bits in the fpscr. Properly limit the range of bits that can be set via fpsetmask(). While here, use the correct fp_except_t type instead of fp_rnd_t. Reported by: pkubaj (in IRC) MFC after: 1 week Sponsored by: Tag1 Consulting, Inc. |
||
---|---|---|
.. | ||
gen | ||
softfloat | ||
string | ||
sys | ||
_fpmath.h | ||
arith.h | ||
gd_qnan.h | ||
Makefile.inc | ||
static_tls.h | ||
Symbol.map | ||
SYS.h |