public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "burnus at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug libfortran/58020] Code for handling IEEE exceptions Date: Tue, 30 Jul 2013 14:14:00 -0000 [thread overview] Message-ID: <bug-58020-4-ETosXfTOLJ@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-58020-4@http.gcc.gnu.org/bugzilla/> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58020 --- Comment #5 from Tobias Burnus <burnus at gcc dot gnu.org> --- Cross-ref: See also PR29383. (In reply to Fred Krogh from comment #0) > Dr. Richard Hanson has written code to provide IEEE exception handling to > gfortran. Cool! I think it should be linked from the Wiki and somewhat made known. Even prior (or without) inclusion in GCC/gfortran, the code is very useful for users! (In reply to kargl from comment #1) > 1) Hanson needs to have a copyright assignment on file with FSF > before the code can be used. Or rather: Before it can be included in GCC/shipped with gfortran. (In reply to Fred Krogh from comment #2) > 1. Hanson is willing to assign the copyright if you expect to be using this > work. There were thoughts to include this work on a SIAM website where we > think SIAM would want the copyright The Free Software Foundation (FSF) only requires a nonexclusive copyright transfer (for inclusion in GCC). Thus, it could be additionally posted to the SIAM webpage - assuming SIAM also is fine with a nonexclusive copyright transfer. See http://gcc.gnu.org/wiki/GettingStarted (Basics, Item 1) for details. (In reply to kargl from comment #1) > 2) More importantly, the code appears to only support the i386 > and amd64 architectures. gfortran runs are far more processors > than these. My personal long-term plan is to add the necessary bits for IEEE to libgfortran/config/ - and then to use them from there. Currently supported are setting/getting the rounding mode, obtaining the set exceptions flags and setting the exception trapping. That's supported for i386/x86-64, GLIBC, SysV (at least: FreeBSD and Solaris) and AIX; see http://gcc.gnu.org/viewcvs/gcc/trunk/libgfortran/config/ [Note: Those are currently only internally exported. Before making them externally callable, one should ensure that the ABI won't change.] Additionally, I'd like to generate the IEEE modules "on the fly" - like ISO_C_Binding and Fortran_Dev. That gives some more optimization possibilities and also could be used to honor SH's/Alpha's -mieee compiler flag. One way forward would be to check whether libgfortran/config/'s function are sufficient - and if not, add more or modify the ABI. Those could then be exported (public ABI). In principle, one could then also ship the modules - However, the biggest question is how to handle the functions in the module. Those then become part of the public ABI of gfortran and has to continued to be supported, even if we could move some function to the compiler itself (generated code). > 3) messy_m.f90 includes the statement: > I haven't looked at the code to determine if messy_m.f90 is actually > needed. It seems to be only used for testing. (In any case, it would be useful to have some test cases in the testsuite.)
next prev parent reply other threads:[~2013-07-30 14:14 UTC|newest] Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-07-29 17:05 [Bug libfortran/58020] New: " fkrogh#gcc at mathalacarte dot com 2013-07-29 19:29 ` [Bug libfortran/58020] " kargl at gcc dot gnu.org 2013-07-29 21:03 ` fkrogh#gcc at mathalacarte dot com 2013-07-29 22:01 ` sgk at troutmask dot apl.washington.edu 2013-07-30 12:48 ` dominiq at lps dot ens.fr 2013-07-30 14:14 ` burnus at gcc dot gnu.org [this message] 2013-07-30 14:36 ` richard.koolhans at gmail dot com 2013-07-30 17:31 ` dominiq at lps dot ens.fr 2013-07-30 17:37 ` sgk at troutmask dot apl.washington.edu 2013-07-30 17:55 ` fkrogh#gcc at mathalacarte dot com 2013-07-31 17:27 ` richard.koolhans at gmail dot com 2013-08-01 13:00 ` dominiq at lps dot ens.fr 2013-08-01 15:51 ` richard.koolhans at gmail dot com 2013-11-05 13:56 ` fxcoudert at gcc dot gnu.org 2013-11-05 14:05 ` fkrogh at mathalacarte dot com 2013-11-05 14:08 ` fkrogh at mathalacarte dot com 2013-11-05 15:52 ` burnus at gcc dot gnu.org 2013-11-05 16:12 ` fxcoudert at gcc dot gnu.org 2013-11-05 16:27 ` sgk at troutmask dot apl.washington.edu 2013-11-05 16:37 ` fxcoudert at gcc dot gnu.org 2013-11-05 17:05 ` richard.koolhans at gmail dot com 2013-11-05 17:43 ` sgk at troutmask dot apl.washington.edu 2013-11-06 12:28 ` fxcoudert at gcc dot gnu.org 2013-11-25 0:59 ` kargl at gcc dot gnu.org 2014-06-07 10:19 ` fxcoudert at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-58020-4-ETosXfTOLJ@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).