This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: automatic generation of interfaces


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]