------- 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

Reply via email to