This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: automatic generation of interfaces
- From: Tobias Burnus <burnus at net-b dot de>
- To: Vivek Rao <vivekrao4 at yahoo dot com>
- Cc: fortran at gcc dot gnu dot org
- Date: Wed, 31 Jan 2007 20:47:30 +0100
- Subject: Re: automatic generation of interfaces
- References: <768574.30171.qm@web53406.mail.yahoo.com>
Hi,
Vivek Rao wrote:
> Steve Lionel wrote on comp.lang.fortran,
>
> "The Intel Fortran compiler
> has options "-gen-interface -warn interface" which,
> used together, tells the compiler to automatically
> generate modules with interfaces for each routine
> compiled and then to look for the corresponding
> module when it sees a call to a routine for the
> purpose of error checking. This can be quite handy."
>
It can be indeed handy. What I don't like about the Intel option is that
it not only creates a .mod file but also a .f90 file with the module
information. That option is nice, but if one only wants to do error
checking, cluttering the directory with .f90 files is not what one wants.
I thought I filled a bug, but I cannot find it anymore ... ok, I think,
I only wrote it in an email.
I now filled a bug:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=30658
> It would be nice to have analogous options for
> gfortran. In Fortran 90+ one can put procedures in
> modules, but I am sure that gfortran is being used
> heavily on Fortran 77 code, too.
>
Well, I have also seen several Fortran 90 codes which use one file per
procedure and and use "external" without creating a module.
> (I know lots of things "would be nice", and I am not
> volunteering to do it, sorry.)
>
Well, you could start with something smaller in gfortran ;-)
Tobias