The gfortran
command supports all the options supported by the gcc
command. Only options specific to GNU Fortran are documented here.
See GCC Command Options, for information on the non-Fortran-specific aspects of the gcc
command (and, therefore, the gfortran
command).
All GCC and GNU Fortran options are accepted both by gfortran
and by gcc
(as well as any other drivers built at the same time, such as g++
), since adding GNU Fortran to the GCC distribution enables acceptance of GNU Fortran options by all of the relevant drivers.
In some cases, options have positive and negative forms; the negative form of -ffoo
would be -fno-foo
. This manual documents only one of these two forms, whichever one is not the default.
© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-4.9.3/gfortran/Invoking-GNU-Fortran.html