------- Comment #2 from burnus at gcc dot gnu dot org  2008-03-30 13:51 -------
> -ff2c: the return value is returned in an additional argument as g77 and other
> fortran compilers do it

I want to point out that all? modern compiler use the -fno-f2c scheme which is
compatible with the default gfortran output.

The f2c syntax goes back to the f2c compiler (www.netlib.org/f2c) which was
created at a time when C compilers were available but no Fortran 77 compiler
for free. It translated the Fortran code into C code which had then to be
compiled. (This is better and more correctly described at
http://en.wikipedia.org/wiki/F2c)

g77 used for legacy reasons still the f2c calling convention but -fno-f2c was
already available for g77. And gfortran only support -ff2c for legacy code as
do some other vendors.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35765

Reply via email to