summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2015-06-23 17:26:46 +0000
committerJoseph Myers <joseph@codesourcery.com>2015-06-23 17:26:46 +0000
commit8b1bab5ffa235bc494c33fdbe4c9994202936cfc (patch)
tree0eb0ae14f2fef3c11c2a055e155f61458f1ff2fe /NEWS
parentc47ca9647f9b72692e62f94fe468cd5568f49129 (diff)
Fix spurious "inexact" exceptions from __kernel_standard_l (bug 18245, bug 18583).
__kernel_standard_l converts long double arguments to double for use in SVID "struct exception". This has special-case handling for when that conversion would overflow or underflow but the original long double function wouldn't. However, it turns out that "inexact" exceptions can be spurious here as well, when the function is exactly determined and __kernel_standard_l is being called for a domain error. This patch fixes this by using feholdexcept / fesetenv to avoid exceptions from the conversion, replacing the previous special-case logic for overflow and underflow (this covers all functions using __kernel_standard_l, not just those that actually need a change, since there doesn't seem to be much point in restricting things just to the functions that mustn't get "inexact" here). Tested for x86_64 and x86. [BZ #18245] [BZ #18583] * sysdeps/ieee754/k_standardl.c: Include <fenv.h>. (__kernel_standard_l): Use feholdexcept and fesetenv around conversion to double instead of special-casing overflow and underflow. * math/libm-test.inc (fmod_test_data): Add more tests. (remainder_test_data): Likewise. (sqrt_test_data): Likewise.
Diffstat (limited to 'NEWS')
-rw-r--r--NEWS12
1 files changed, 6 insertions, 6 deletions
diff --git a/NEWS b/NEWS
index a46efd69bc..da4ed7e1fc 100644
--- a/NEWS
+++ b/NEWS
@@ -19,12 +19,12 @@ Version 2.22
18032, 18034, 18036, 18038, 18039, 18042, 18043, 18046, 18047, 18049,
18068, 18080, 18093, 18100, 18104, 18110, 18111, 18116, 18125, 18128,
18138, 18185, 18196, 18197, 18206, 18210, 18211, 18217, 18219, 18220,
- 18221, 18234, 18244, 18247, 18287, 18319, 18324, 18333, 18346, 18371,
- 18397, 18409, 18410, 18412, 18418, 18422, 18434, 18444, 18468, 18469,
- 18470, 18479, 18483, 18495, 18496, 18497, 18498, 18507, 18512, 18513,
- 18519, 18520, 18522, 18527, 18528, 18529, 18530, 18532, 18533, 18534,
- 18536, 18539, 18540, 18542, 18544, 18545, 18546, 18547, 18553, 18558,
- 18569.
+ 18221, 18234, 18244, 18245, 18247, 18287, 18319, 18324, 18333, 18346,
+ 18371, 18397, 18409, 18410, 18412, 18418, 18422, 18434, 18444, 18468,
+ 18469, 18470, 18479, 18483, 18495, 18496, 18497, 18498, 18507, 18512,
+ 18513, 18519, 18520, 18522, 18527, 18528, 18529, 18530, 18532, 18533,
+ 18534, 18536, 18539, 18540, 18542, 18544, 18545, 18546, 18547, 18553,
+ 18558, 18569, 18583.
* Cache information can be queried via sysconf() function on s390 e.g. with
_SC_LEVEL1_ICACHE_SIZE as argument.