public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/48977] New: -fpe-trap=denormal  on x86 GLIBC systems
@ 2011-05-12 14:48 burnus at gcc dot gnu.org
  2011-05-12 19:56 ` [Bug fortran/48977] " ubizjak at gmail dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: burnus at gcc dot gnu.org @ 2011-05-12 14:48 UTC (permalink / raw)
  To: gcc-bugs

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

           Summary: -fpe-trap=denormal  on x86 GLIBC systems
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: burnus@gcc.gnu.org


Kind of follow up to PR 38810 - and motivated by
http://groups.google.com/group/comp.lang.fortran/browse_thread/thread/894fb77cabc6e8c7

GLIBC (and POSIX) do not support FE_DENORMAL and thus -fpe-trap=denormal does
not work. However, gfortran has a target version for denormal trapping:

fpu-387.h has:
  if (options.fpe & GFC_FPE_DENORMAL) cw &= ~_FPU_MASK_DM;
[...]
  if (has_sse())
[...]
      if (options.fpe & GFC_FPE_DENORMAL) cw_sse &= ~(_FPU_MASK_DM << 7);

Expected: If FE_DENORMAL is not supported and target == fpu-387.h, the latter
is used.

(It could also be of interest for the IEEE modules.)


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

end of thread, other threads:[~2011-05-20 15:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-12 14:48 [Bug fortran/48977] New: -fpe-trap=denormal on x86 GLIBC systems burnus at gcc dot gnu.org
2011-05-12 19:56 ` [Bug fortran/48977] " ubizjak at gmail dot com
2011-05-20 14:01 ` jb at gcc dot gnu.org
2011-05-20 15:11 ` jb at gcc dot gnu.org
2011-05-20 15:19 ` jb 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).