This is the mail archive of the fortran@gcc.gnu.org mailing list for the GNU Fortran project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fortran whole file patch


On Mon, May 04, 2009 at 06:54:20PM +0200, Jan Hubicka wrote:
> Index: doc/invoke.texi
> ===================================================================
> --- doc/invoke.texi	(revision 147080)
> +++ doc/invoke.texi	(working copy)
> @@ -6786,7 +6786,7 @@ programs consisting of a single file, in
>  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.
> +This option is imply @option{-fwhole-file} for Fortran programs.

This option implies

>  @item -fcprop-registers
>  @opindex fcprop-registers
> Index: fortran/options.c
> ===================================================================
> --- fortran/options.c	(revision 147080)
> +++ fortran/options.c	(working copy)
> @@ -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.  */
> +  /* Whoole program needs whole file mode.  */

s/Whoole/Whole

>    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)

-- 
Steve


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]