diff options
author | Richard Guenther <rguenther@suse.de> | 2010-11-03 15:00:52 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2010-11-03 15:00:52 +0000 |
commit | 2996c17fcb14e2865a8a26ce636d6afdc9a13d6c (patch) | |
tree | 6dffa304301e28351549e8f7568fefd0bb1f119c /gcc/opts.c | |
parent | 3df5c6f745eafcd3e39db11c4550dff434939441 (diff) | |
download | gcc-2996c17fcb14e2865a8a26ce636d6afdc9a13d6c.zip gcc-2996c17fcb14e2865a8a26ce636d6afdc9a13d6c.tar.gz gcc-2996c17fcb14e2865a8a26ce636d6afdc9a13d6c.tar.bz2 |
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
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |