summaryrefslogtreecommitdiff
path: root/gcc/fortran/options.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2009-05-13 15:43:32 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2009-05-13 13:43:32 +0000
commitebaa6ea7adb2e6107bdd06d4c8f89c8f614550bc (patch)
tree65166a94a1c7ea4b4623154d67f6054bfa00f1c3 /gcc/fortran/options.c
parentd68646978cd863a43018fd3215d857d7da03f545 (diff)
downloadgcc-ebaa6ea7adb2e6107bdd06d4c8f89c8f614550bc.tar.gz
invoke.texi (-fwhole-file): Update docs.
* doc/invoke.texi (-fwhole-file): Update docs. * options.c (gfc_post_options): -fwhole-program imply -fwhole-file. From-SVN: r147472
Diffstat (limited to 'gcc/fortran/options.c')
-rw-r--r--gcc/fortran/options.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c
index b45696ddf35..65841f6a629 100644
--- a/gcc/fortran/options.c
+++ b/gcc/fortran/options.c
@@ -238,9 +238,9 @@ gfc_post_options (const char **pfilename)
sorry ("-fexcess-precision=standard for Fortran");
flag_excess_precision_cmdline = EXCESS_PRECISION_FAST;
- /* Issue an error if -fwhole-program was used. */
+ /* Whole program needs whole file mode. */
if (flag_whole_program)
- gfc_fatal_error ("Option -fwhole-program is not supported for Fortran");
+ gfc_option.flag_whole_file = 1;
/* -fbounds-check is equivalent to -fcheck=bounds */
if (flag_bounds_check)