This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/14027] New: fenv.h fallback implementations wrongly fail in no-exception cases
- From: "jsm28 at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: Fri, 27 Apr 2012 12:39:28 +0000
- Subject: [Bug math/14027] New: fenv.h fallback implementations wrongly fail in no-exception cases
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=14027
Bug #: 14027
Summary: fenv.h fallback implementations wrongly fail in
no-exception cases
Product: glibc
Version: 2.15
Status: NEW
Severity: normal
Priority: P2
Component: math
AssignedTo: unassigned@sourceware.org
ReportedBy: jsm28@gcc.gnu.org
Classification: Unclassified
C99(+TC1), and C11, explicitly say that feclearexcept, feraiseexcept and
fesetexceptflag return zero when their "excepts" operand is zero, because
nothing needs to be done in that case. The fallback implementations of these
functions in math/, used for software floating point without exception support,
wrongly fail for all inputs including zero.
I'm retesting my patch
<http://sourceware.org/ml/libc-alpha/2011-01/msg00005.html> for this that was
rejected last year based on a confusion between ISO C and POSIX error handling
rules.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.