This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/35765] return type of complex functions not C compatible
- From: "Georg dot Baum at post dot rwth-aachen dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Mar 2008 19:41:20 -0000
- Subject: [Bug fortran/35765] return type of complex functions not C compatible
- References: <bug-35765-12211@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from Georg dot Baum at post dot rwth-aachen dot de 2008-03-31 19:41 -------
Subject: Re: return type of complex functions not C
compatible
> ------- Comment #4 from burnus at gcc dot gnu dot org 2008-03-30
21:18 -------
> > Not all. I gave two counter examples: pvf and ifort.
>
> Well at least ifort 9.1, 10.0 and 10.1 on Linux do not use the f2c
calling
> convention.
It does not use __, but apart from that it handles complex valued functions
in the same way as f2c and g77. Try it out if you don't believe.
In terms of gfortran command line options: If you want gfortran to behave
like ifort, use
gfortran -ff2c -fno-second-underscore
I have to admit that I don't know how ifort handles real valued functions,
so it is possible that the above command breaks compatibility with ifort
for real valued functions.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35765