public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/31106]  New: FPE, floating point exception bugs
@ 2007-03-09 13:48 burlen at apollo dot sr dot unh dot edu
  2007-03-09 13:58 ` [Bug c++/31106] " rguenth at gcc dot gnu dot org
  0 siblings, 1 reply; 2+ messages in thread
From: burlen at apollo dot sr dot unh dot edu @ 2007-03-09 13:48 UTC (permalink / raw)
  To: gcc-bugs

1) fesetexcept(FE_EXCEPT_ALL) sets the control fpu control word to 0x342, so
that the denormal operand exeption is masked, by definition all exceptions are
supposed to be enabled so it should be using 0x340.

2) If I establish a signal handler for FPEs the fpu is being reset to its
default state before the signal handler is called, so that fegetexcept and
fegetenv are unable to return any information about the exception that occured.

here is information about my FC2 x86_64 athlon system:

[burlen@quaoar burlen]$ g++ -v
Reading specs from /usr/lib/gcc-lib/x86_64-redhat-linux/3.3.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--disable-checking --disable-libunwind-exceptions --with-system-zlib
--enable-__cxa_atexit --host=x86_64-redhat-linux
Thread model: posix
gcc version 3.3.3 20040412 (Red Hat Linux 3.3.3-7)


-- 
           Summary: FPE, floating point exception bugs
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: major
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: burlen at apollo dot sr dot unh dot edu


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31106


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

* [Bug c++/31106] FPE, floating point exception bugs
  2007-03-09 13:48 [Bug c++/31106] New: FPE, floating point exception bugs burlen at apollo dot sr dot unh dot edu
@ 2007-03-09 13:58 ` rguenth at gcc dot gnu dot org
  0 siblings, 0 replies; 2+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-03-09 13:58 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2007-03-09 13:58 -------
These are all not compiler issues but glibc and/or kernel issues.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31106


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

end of thread, other threads:[~2007-03-09 13:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-09 13:48 [Bug c++/31106] New: FPE, floating point exception bugs burlen at apollo dot sr dot unh dot edu
2007-03-09 13:58 ` [Bug c++/31106] " rguenth at gcc dot gnu dot 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).