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
* [Bug fortran/48977] -fpe-trap=denormal on x86 GLIBC systems
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 ` ubizjak at gmail dot com
2011-05-20 14:01 ` jb at gcc dot gnu.org
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: ubizjak at gmail dot com @ 2011-05-12 19:56 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48977
--- Comment #1 from Uros Bizjak <ubizjak at gmail dot com> 2011-05-12 19:43:56 UTC ---
Why not just:
Index: configure.host
===================================================================
--- configure.host (revision 173705)
+++ configure.host (working copy)
@@ -20,12 +20,6 @@
# DEFAULTS
fpu_host='fpu-generic'
-# HOST-SPECIFIC OVERRIDES
-case "${host_cpu}" in
- i?86 | x86_64)
- fpu_host='fpu-387' ;;
-esac
-
# CONFIGURATION-SPECIFIC OVERRIDES
if test "x${have_feenableexcept}" = "xyes"; then
fpu_host='fpu-glibc'
@@ -39,6 +33,12 @@
fpu_host='fpu-aix'
fi
+# HOST-SPECIFIC OVERRIDES
+case "${host_cpu}" in
+ i?86 | x86_64)
+ fpu_host='fpu-387' ;;
+esac
+
# Some targets require additional compiler options for NaN/Inf.
ieee_flags=
case "${host_cpu}" in
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/48977] -fpe-trap=denormal on x86 GLIBC systems
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
3 siblings, 0 replies; 5+ messages in thread
From: jb at gcc dot gnu.org @ 2011-05-20 14:01 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48977
Janne Blomqvist <jb at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
URL| |http://gcc.gnu.org/ml/gcc-p
| |atches/2011-05/msg01447.htm
| |l
Last reconfirmed| |2011.05.20 13:29:10
CC| |jb at gcc dot gnu.org
AssignedTo|unassigned at gcc dot |jb at gcc dot gnu.org
|gnu.org |
Ever Confirmed|0 |1
--- Comment #2 from Janne Blomqvist <jb at gcc dot gnu.org> 2011-05-20 13:29:10 UTC ---
Patch: http://gcc.gnu.org/ml/gcc-patches/2011-05/msg01447.html
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/48977] -fpe-trap=denormal on x86 GLIBC systems
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
3 siblings, 0 replies; 5+ messages in thread
From: jb at gcc dot gnu.org @ 2011-05-20 15:11 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48977
Janne Blomqvist <jb at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #4 from Janne Blomqvist <jb at gcc dot gnu.org> 2011-05-20 14:49:02 UTC ---
Fixed, closing.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug fortran/48977] -fpe-trap=denormal on x86 GLIBC systems
2011-05-12 14:48 [Bug fortran/48977] New: -fpe-trap=denormal on x86 GLIBC systems burnus at gcc dot gnu.org
` (2 preceding siblings ...)
2011-05-20 15:11 ` jb at gcc dot gnu.org
@ 2011-05-20 15:19 ` jb at gcc dot gnu.org
3 siblings, 0 replies; 5+ messages in thread
From: jb at gcc dot gnu.org @ 2011-05-20 15:19 UTC (permalink / raw)
To: gcc-bugs
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48977
--- Comment #3 from Janne Blomqvist <jb at gcc dot gnu.org> 2011-05-20 14:45:53 UTC ---
Author: jb
Date: Fri May 20 14:45:51 2011
New Revision: 173952
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=173952
Log:
PR 48977 Denormal exception on glibc targets
Modified:
trunk/libgfortran/ChangeLog
trunk/libgfortran/configure.host
^ 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).