Commit 2996c17f by Richard Guenther Committed by Richard Biener

opts.c (finish_options): Properly check for all WHOPR flags before complaining…

opts.c (finish_options): Properly check for all WHOPR flags before complaining about -flto-partition.

2010-11-03  Richard Guenther  <rguenther@suse.de>

	* opts.c (finish_options): Properly check for all WHOPR
	flags before complaining about -flto-partition.

From-SVN: r166250
parent 3df5c6f7
2010-11-03 Richard Guenther <rguenther@suse.de>
* opts.c (finish_options): Properly check for all WHOPR
flags before complaining about -flto-partition.
2010-11-04 Alan Modra <amodra@gmail.com>
* config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
......@@ -1239,8 +1239,8 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set)
{
if (flag_lto_partition_balanced && flag_lto_partition_1to1)
error ("Only one -flto-partitoin value can be specified");
if (!flag_whopr)
error ("-flto-partitoin has effect only with -fwhopr");
if (!flag_whopr && !flag_wpa && !flag_ltrans)
error ("-flto-partition has no effect without -fwhopr");
}
/* Reconcile -flto and -fwhopr. Set additional flags as appropriate and
......
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