Commit a9c64730 by Jan Hubicka Committed by Jan Hubicka

opts.c (finish_options): Do not error on -flto-partition alone.


	* opts.c (finish_options): Do not error on -flto-partition alone.
	* options.c (gfc_post_options): Remove flag_whopr.

From-SVN: r166632
parent d5656544
2010-11-11 Jan Hubicka <jh@suse.cz>
* opts.c (finish_options): Do not error on -flto-partition alone.
* doc/invoke.texi (-fwhopr): Merge into -flto section.
(-flto-partition): Document none.
* gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
2010-11-11 Jan Hubicka <jh@suse.cz>
* options.c (gfc_post_options): Remove flag_whopr.
2010-11-11 Tobias Burnus <burnus@net-b.de>
PR fortran/46413
......
......@@ -258,7 +258,7 @@ gfc_post_options (const char **pfilename)
gfc_option.flag_whole_file = 1;
/* Enable whole-file mode if LTO is in effect. */
if (flag_lto || flag_whopr)
if (flag_lto)
gfc_option.flag_whole_file = 1;
/* Fortran allows associative math - but we cannot reassociate if
......
......@@ -1238,8 +1238,6 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set)
+ (opts->x_flag_lto_partition_1to1 != 0)
+ (opts->x_flag_lto_partition_none != 0) > 1)
error ("only one -flto-partition value can be specified");
if (!opts->x_flag_lto && !opts->x_flag_wpa && !opts->x_flag_ltrans)
error ("-flto-partition has no effect without -flto");
}
/* We initialize opts->x_flag_split_stack to -1 so that targets can set a
......
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