public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "tobi at gcc dot gnu dot org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/20178] COMPLEX function returns incompatible with g77 Date: Thu, 24 Feb 2005 07:31:00 -0000 [thread overview] Message-ID: <20050223201130.12042.qmail@sourceware.org> (raw) In-Reply-To: <20050223185848.20178.stevenj@fftw.org> ------- Additional Comments From tobi at gcc dot gnu dot org 2005-02-23 20:11 ------- g77's documentation of the calling convention: `-fno-f2c' Do not generate code designed to be compatible with code generated by `f2c' use the GNU calling conventions instead. The `f2c' calling conventions require functions that return type `REAL(KIND=1)' to actually return the C type `double', and functions that return type `COMPLEX' to return the values via an extra argument in the calling sequence that points to where to store the return value. Under the GNU calling conventions, such functions simply return their results as they would in GNU C--`REAL(KIND=1)' functions return the C type `float', and `COMPLEX' functions return the GNU C type `complex' (or its `struct' equivalent). This does not affect the generation of code that interfaces with the `libg2c' library. However, because the `libg2c' library uses `f2c' calling conventions, `g77' rejects attempts to pass intrinsics implemented by routines in this library as actual arguments when `-fno-f2c' is used, to avoid bugs when they are actually called by code expecting the GNU calling conventions to work. For example, `INTRINSIC ABS;CALL FOO(ABS)' is rejected when `-fno-f2c' is in force. (Future versions of the `g77' run-time library might offer routines that provide GNU-callable versions of the routines that implement the `f2c' intrinsics that may be passed as actual arguments, so that valid programs need not be rejected when `-fno-f2c' is used.) *Caution:* If `-fno-f2c' is used when compiling any source file used in a program, it must be used when compiling _all_ Fortran source files used in that program. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20178
next prev parent reply other threads:[~2005-02-23 20:11 UTC|newest] Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-02-23 23:29 [Bug fortran/20178] New: " gcc-bugzilla at gcc dot gnu dot org 2005-02-23 23:32 ` [Bug fortran/20178] " pinskia at gcc dot gnu dot org 2005-02-24 2:42 ` tobi at gcc dot gnu dot org 2005-02-24 2:43 ` tobi at gcc dot gnu dot org 2005-02-24 4:39 ` pinskia at gcc dot gnu dot org 2005-02-24 7:31 ` tobi at gcc dot gnu dot org [this message] 2005-02-24 9:27 ` stevenj at fftw dot org 2005-02-24 9:27 ` pinskia at gcc dot gnu dot org 2005-02-24 9:27 ` pinskia at gcc dot gnu dot org 2005-02-24 10:30 ` tobi at gcc dot gnu dot org 2005-02-24 10:35 ` stevenj at fftw dot org 2005-02-24 10:58 ` stevenj at fftw dot org 2005-02-28 2:50 ` tobi at gcc dot gnu dot org 2005-03-03 20:51 ` tobi at gcc dot gnu dot org 2005-03-03 21:36 ` tobi at gcc dot gnu dot org 2005-03-03 21:49 ` stevenj at fftw dot org 2005-03-03 22:06 ` tobi at gcc dot gnu dot org 2005-03-04 4:44 ` stevenj at fftw dot org 2005-03-04 4:46 ` stevenj at fftw dot org 2005-03-04 11:27 ` tobi at gcc dot gnu dot org 2005-03-04 11:40 ` tobi at gcc dot gnu dot org 2005-03-05 15:33 ` tobi at gcc dot gnu dot org 2005-05-10 22:07 ` cvs-commit at gcc dot gnu dot org 2005-05-10 22:23 ` tobi at gcc dot gnu dot org [not found] ` <19490500.1116054120820.JavaMail.root@dtm1eusosrv72.dtm.ops.eu.uu.net> 2005-05-15 11:32 ` Toon Moene 2005-05-15 11:34 ` toon at moene dot indiv dot nluug dot nl 2005-05-18 11:23 ` Tobias dot Schlueter at physik dot uni-muenchen dot de 2005-05-22 18:10 ` Tobias dot Schlueter at physik dot uni-muenchen dot de 2005-07-20 23:13 ` pinskia at gcc dot gnu dot org 2005-07-22 13:42 ` tobi at gcc dot gnu dot org [not found] <bug-20178-9955@http.gcc.gnu.org/bugzilla/> 2006-01-31 18:01 ` pinskia at gcc dot gnu dot 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=20050223201130.12042.qmail@sourceware.org \ --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).