• can gfortran notify me when it can not find a module interface for asubroutine call ?

    From Lynn McGuire@lynnmcguire5@gmail.com to comp.lang.fortran on Mon Nov 18 14:54:44 2024
    From Newsgroup: comp.lang.fortran

    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
    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Lynn McGuire@lynnmcguire5@gmail.com to comp.lang.fortran on Mon Nov 18 15:10:51 2024
    From Newsgroup: comp.lang.fortran

    On 11/18/2024 2:54 PM, Lynn McGuire wrote:
    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

    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Steven G. Kargl@sgk@REMOVEtroutmask.apl.washington.edu to comp.lang.fortran on Mon Nov 18 22:07:13 2024
    From Newsgroup: comp.lang.fortran

    On Mon, 18 Nov 2024 15:10:51 -0600, Lynn McGuire wrote:

    On 11/18/2024 2:54 PM, Lynn McGuire wrote:
    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

    --- Synchronet 3.20a-Linux NewsLink 1.114
  • From Lynn McGuire@lynnmcguire5@gmail.com to comp.lang.fortran on Mon Nov 18 21:39:35 2024
    From Newsgroup: comp.lang.fortran

    On 11/18/2024 4:07 PM, Steven G. Kargl wrote:
    On Mon, 18 Nov 2024 15:10:51 -0600, Lynn McGuire wrote:

    On 11/18/2024 2:54 PM, Lynn McGuire wrote:
    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

    --- Synchronet 3.20a-Linux NewsLink 1.114