Discussion:
can gfortran notify me when it can not find a module interface for a subroutine call ?
(too old to reply)
Lynn McGuire
2024-11-18 20:54:44 UTC
Permalink
Can gfortran notify me when it can not find a module interface for a
subroutine or function call ?

I have 6,000+ subroutines and only 2,603 module interfaces in my module
file. I would like to automate this as much as possible.

Thanks,
Lynn
Lynn McGuire
2024-11-18 21:10:51 UTC
Permalink
Post by Lynn McGuire
Can gfortran notify me when it can not find a module interface for a
subroutine or function call ?
I have 6,000+ subroutines and only 2,603 module interfaces in my module
file.  I would like to automate this as much as possible.
Thanks,
Lynn
I just found "-Wimplicit-procedure" and am trying it out.

Thanks,
Lynn
Steven G. Kargl
2024-11-18 22:07:13 UTC
Permalink
Post by Lynn McGuire
Post by Lynn McGuire
Can gfortran notify me when it can not find a module interface for a
subroutine or function call ?
I have 6,000+ subroutines and only 2,603 module interfaces in my module
file.  I would like to automate this as much as possible.
I just found "-Wimplicit-procedure" and am trying it out.
If you're in porting mode with gfortran, I suggest adding
the options -Wall -Wextra -Wsurprising to your compiler
flags. These might lead to a long list of things to
consider. If the code is old and rather dirty with
extensions, you'll likely need the -std=legacy option.
--
steve
Lynn McGuire
2024-11-19 03:39:35 UTC
Permalink
Post by Steven G. Kargl
Post by Lynn McGuire
Post by Lynn McGuire
Can gfortran notify me when it can not find a module interface for a
subroutine or function call ?
I have 6,000+ subroutines and only 2,603 module interfaces in my module
file.  I would like to automate this as much as possible.
I just found "-Wimplicit-procedure" and am trying it out.
If you're in porting mode with gfortran, I suggest adding
the options -Wall -Wextra -Wsurprising to your compiler
flags. These might lead to a long list of things to
consider. If the code is old and rather dirty with
extensions, you'll likely need the -std=legacy option.
I have to have "-mrtd -fno-underscoring -Ic:\\dii\\inc -fdec
-fdefault-double-8 -fno-automatic -fdefault-integer-8
-Wimplicit-procedure" turned on at the moment.

I tried without -fdec and ran into thousands of lines of problems. Not
this port.

Thanks,
Lynn

Loading...