This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/14027] New: fenv.h fallback implementations wrongly fail in no-exception cases


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]