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/15490] New: nearbyint scheduling for spurious exceptions


http://sourceware.org/bugzilla/show_bug.cgi?id=15490

             Bug #: 15490
           Summary: nearbyint scheduling for spurious exceptions
           Product: glibc
           Version: 2.17
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
        AssignedTo: unassigned@sourceware.org
        ReportedBy: jsm28@gcc.gnu.org
    Classification: Unclassified


Code in the C nearbyintf and possibly other nearbyint implementations can be
scheduled by the compiler so arithmetic that raises the "inexact" exception
runs after the fesetenv intended to clear that exception.

http://sourceware.org/ml/libc-alpha/2013-05/msg00720.html

gives an example I can reproduce on x86_64 with --disable-multi-arch (otherwise
the SSE4.1 version gets used).

-- 
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]