diff options
author | Francois-Xavier Coudert <coudert@clipper.ens.fr> | 2005-08-31 14:31:30 +0200 |
---|---|---|
committer | François-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2005-08-31 12:31:30 +0000 |
commit | ee5426a488f8b28099c6f462aef34b157182d2ac (patch) | |
tree | fb8c8283c9af4e152ecf97cb2798af7f3abc4e79 /gcc/fortran/invoke.texi | |
parent | c52501398534057dfdd1bf212d43f351f62b69ab (diff) | |
download | gcc-ee5426a488f8b28099c6f462aef34b157182d2ac.zip gcc-ee5426a488f8b28099c6f462aef34b157182d2ac.tar.gz gcc-ee5426a488f8b28099c6f462aef34b157182d2ac.tar.bz2 |
re PR fortran/20592 (-fno-automatic (g77 option) is missing from gfortran.)
PR fortran/20592
* gfortran.h (gfc_option_t): Add flag_automatic.
* invoke.texi: Document the -fno-automatic option.
* lang.opt: Add a -fautomatic option.
* options.c (gfc_init_options): Default for -fautomatic is on.
(gfc_handle_option): Add handling of -fautomatic option.
* resolve.c (gfc_resolve): When -fno-automatic is used, mark
needed variables as SAVE.
From-SVN: r103671
Diffstat (limited to 'gcc/fortran/invoke.texi')
-rw-r--r-- | gcc/fortran/invoke.texi | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/gcc/fortran/invoke.texi b/gcc/fortran/invoke.texi index 945c9f1..847ab29 100644 --- a/gcc/fortran/invoke.texi +++ b/gcc/fortran/invoke.texi @@ -143,7 +143,7 @@ by type. Explanations are in the following sections. @item Code Generation Options @xref{Code Gen Options,,Options for Code Generation Conventions}. @gccoptlist{ --ff2c -fno-underscoring -fsecond-underscore @gol +-fno-automatic -ff2c -fno-underscoring -fsecond-underscore @gol -fbounds-check -fmax-stack-var-size=@var{n} @gol -fpackderived -frepack-arrays} @end table @@ -537,8 +537,17 @@ one of the forms is listed---the one which is not the default. You can figure out the other form by either removing @option{no-} or adding it. - @table @gcctabopt +@cindex @option{-fno-automatic} option +@cindex options, @option{-fno-automatic} +@item -fno-automatic +@cindex SAVE statement +@cindex statements, SAVE +Treat each program unit as if the @code{SAVE} statement was specified for +every local variable and array referenced in it. Does not affect common +blocks. (Some Fortran compilers provide this option under the name +@option{-static}.) + @cindex @option{-ff2c} option @cindex options, @option{-ff2c} @item -ff2c |