public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/16064] New: x86 fenv_t doesn't include SSE state
@ 2013-10-18 20:48 jsm28 at gcc dot gnu.org
  2013-10-20  3:44 ` [Bug math/16064] " bugdal at aerifal dot cx
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: jsm28 at gcc dot gnu.org @ 2013-10-18 20:48 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16064

            Bug ID: 16064
           Summary: x86 fenv_t doesn't include SSE state
           Product: glibc
           Version: 2.18
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
          Assignee: unassigned at sourceware dot org
          Reporter: jsm28 at gcc dot gnu.org
              Host: i?86-*-*

The fenv_t type in sysdeps/x86/fpu/bits/fenv.h only includes the SSE MXCSR for
x86_64, not for 32-bit x86.  Since various fenv.h functions *do* use SSE,
runtime-conditionally on it being supported, this means peculiarities such as
feholdexcept/feupdateenv pairs clearing SSE exception state and trap enablement
in feholdexcept, but not restoring it in feupdateenv because the old MXCSR
state wasn't saved.

Fixing this, thereby increasing the size of fenv_t, will require new symbol
versions for fegetenv / fesetenv / feholdexcept / feupdateenv on x86 (with the
compat versions of the functions continuing to save/restore only the x87 parts
of the state).

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2015-01-30 15:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-18 20:48 [Bug math/16064] New: x86 fenv_t doesn't include SSE state jsm28 at gcc dot gnu.org
2013-10-20  3:44 ` [Bug math/16064] " bugdal at aerifal dot cx
2013-10-21 12:23 ` joseph at codesourcery dot com
2013-10-21 14:07 ` bugdal at aerifal dot cx
2014-02-06 18:34 ` [Bug math/16064] [i386] " jsm28 at gcc dot gnu.org
2014-05-09 17:01 ` jsm28 at gcc dot gnu.org
2014-05-09 17:01 ` cvs-commit at gcc dot gnu.org
2014-06-13 12:38 ` fweimer at redhat dot com
2015-01-30 15:14 ` jsm28 at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).