summaryrefslogtreecommitdiff
path: root/gcc/fortran/options.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/fortran/options.c')
-rw-r--r--gcc/fortran/options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c
index f8d600b4692..6c6ccb10461 100644
--- a/gcc/fortran/options.c
+++ b/gcc/fortran/options.c
@@ -719,7 +719,7 @@ gfc_handle_option (size_t scode, const char *arg, int value,
break;
case OPT_fwhole_file:
- gfc_option.flag_whole_file = 1;
+ gfc_option.flag_whole_file = value;
break;
case OPT_fsecond_underscore: