aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorTobias Burnus <burnus@net-b.de>2010-05-28 23:11:42 +0200
committerTobias Burnus <burnus@gcc.gnu.org>2010-05-28 23:11:42 +0200
commit984ad4496bd398d0bf4c6a440fe0eb823f82508c (patch)
tree505ffd0ed537ebd58525921cb41283ed99374895 /gcc
parent4a73490d93f51e1f0d3150a3d4dea53a7edc7540 (diff)
downloadgcc-984ad4496bd398d0bf4c6a440fe0eb823f82508c.zip
gcc-984ad4496bd398d0bf4c6a440fe0eb823f82508c.tar.gz
gcc-984ad4496bd398d0bf4c6a440fe0eb823f82508c.tar.bz2
options.c (gfc_handle_option): Fix handling of -fno-whole-file.
2010-05-28 Tobias Burnus <burnus@net-b.de> * options.c (gfc_handle_option): Fix handling of -fno-whole-file. From-SVN: r159997
Diffstat (limited to 'gcc')
-rw-r--r--gcc/fortran/ChangeLog4
-rw-r--r--gcc/fortran/options.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index f563c14..267cdd5 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,7 @@
+2010-05-28 Tobias Burnus <burnus@net-b.de>
+
+ * options.c (gfc_handle_option): Fix handling of -fno-whole-file.
+
2010-05-28 Joseph Myers <joseph@codesourcery.com>
* gfortranspec.c (append_arg, lang_specific_driver): Use
diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c
index f8d600b4..6c6ccb1 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: