Fortran User's Guide

-arg=local

Preserve actual arguments over ENTRY statements.

    SPARC:77 x86:77

When you compile a subprogram with alternate entry points with this option, f77 uses copy restore to preserve the association of dummy and actual arguments. For example, the following program would require compilation with -arg=local to insure proper execution:


         A = SETUP(ALPHA,BETA,GAMMA)
         ZORK = FXGAMMA(GCONST)
         ...
         FUNCTION SETUP(A1,A2,A3)
         ...
         ENTRY FXGAMMA(F)
         FXGAMMA = F*GAMMA
         ...
         RETURN
         END

Without this option, there is no guarantee that the correct values of the actual arguments from the SETUP call will be referenced when the routine is entered through FXGAMMA. Code that relies on -arg=local is nonstandard.