diff options
author | Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2007-10-03 09:46:46 +0000 |
---|---|---|
committer | François-Xavier Coudert <fxcoudert@gcc.gnu.org> | 2007-10-03 09:46:46 +0000 |
commit | 05dddae1341a2d7ddcb0313983b8545fed03df9c (patch) | |
tree | 972139c2fc9fc5754bd328763ca08ff082bffda2 /gcc | |
parent | ed1345e8a3de21e34a23231c6896d96c94163ad5 (diff) | |
download | gcc-05dddae1341a2d7ddcb0313983b8545fed03df9c.zip gcc-05dddae1341a2d7ddcb0313983b8545fed03df9c.tar.gz gcc-05dddae1341a2d7ddcb0313983b8545fed03df9c.tar.bz2 |
re PR fortran/26682 (gfortran fails with -fwhole-program optimization)
PR fortran/26682
* options.c (gfc_post_options): Issue an error when
-fwhole-program is used.
* doc/invoke.texi (-fwhole-program): Document that Fortran
doesn't support this option.
From-SVN: r128977
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/doc/invoke.texi | 1 | ||||
-rw-r--r-- | gcc/fortran/ChangeLog | 6 | ||||
-rw-r--r-- | gcc/fortran/options.c | 4 |
4 files changed, 17 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index bfa860c..d08395d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2007-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> + + PR fortran/26682 + * doc/invoke.texi (-fwhole-program): Document that Fortran + doesn't support this option. + 2007-10-02 Richard Sandiford <rsandifo@nildram.co.uk> PR middle-end/33617 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index ed6a3b3..349fbd7 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -6147,6 +6147,7 @@ programs consisting of single file, in combination with option programs since the functions and variables become local for the whole combined compilation unit, not for the single source file itself. +This option is not supported for Fortran programs. @item -fno-cprop-registers @opindex fno-cprop-registers diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog index 0d5c0cc..255a627 100644 --- a/gcc/fortran/ChangeLog +++ b/gcc/fortran/ChangeLog @@ -1,3 +1,9 @@ +2007-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org> + + PR fortran/26682 + * options.c (gfc_post_options): Issue an error when + -fwhole-program is used. + 2007-10-02 Paul Thomas <pault@gcc.gnu.org> PR fortran/33542 diff --git a/gcc/fortran/options.c b/gcc/fortran/options.c index 5c3aefa..b2c17dc 100644 --- a/gcc/fortran/options.c +++ b/gcc/fortran/options.c @@ -211,6 +211,10 @@ gfc_post_options (const char **pfilename) char *source_path; int i; + /* Issue an error if -fwhole-program was used. */ + if (flag_whole_program) + gfc_fatal_error ("Option -fwhole-program is not supported for Fortran"); + /* Verify the input file name. */ if (!filename || strcmp (filename, "-") == 0) { |