Commit 05dddae1 by Francois-Xavier Coudert Committed by François-Xavier Coudert

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
parent ed1345e8
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
......@@ -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
......
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
......
......@@ -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)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment