diff options
author | Joseph Myers <joseph@codesourcery.com> | 2016-08-12 17:34:01 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2016-08-12 17:34:01 +0000 |
commit | 98dac0ce7641cb081f696cc80a22be7af6d62caa (patch) | |
tree | fa48db9cb2d460565bb7a742f6ac35a6958fd508 /ChangeLog.11 | |
parent | ab70f211651f50622d7f8afe3f6a68c472b1fb5a (diff) | |
download | glibc-98dac0ce7641cb081f696cc80a22be7af6d62caa.tar glibc-98dac0ce7641cb081f696cc80a22be7af6d62caa.tar.gz glibc-98dac0ce7641cb081f696cc80a22be7af6d62caa.tar.bz2 glibc-98dac0ce7641cb081f696cc80a22be7af6d62caa.zip |
Fix test-fexcept when "inexact" implicitly raised.
ISO C allows feraiseexcept to raise "inexact", in addition to the
requested exceptions, when requested to raise "overflow" or
"underflow". Testing on ARM and PowerPC e500 (where glibc's
feraiseexcept has this property) showed that the new test-fexcept test
failed to allow for this; this patch fixes it, by wrapping
feraiseexcept to clear FE_INEXACT if implicitly raised and not raised
before the call. (It would also be possible to do this with
fesetexcept, which always affects exactly the requested flags, but
this patch avoids making this fix depend on the fesetexcept changes.)
Tested for x86_64, x86, arm and e500.
* math/test-fexcept.c (feraiseexcept_exact): New function.
(test_set): Call feraiseexcept_exact instead of feraiseexcept.
(test_except): Likewise.
Diffstat (limited to 'ChangeLog.11')
0 files changed, 0 insertions, 0 deletions