OSDN Git Service

2010-11-03 Richard Guenther <rguenther@suse.de>
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Nov 2010 15:00:52 +0000 (15:00 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 3 Nov 2010 15:00:52 +0000 (15:00 +0000)
* opts.c (finish_options): Properly check for all WHOPR
flags before complaining about -flto-partition.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@166250 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/opts.c

index 49e208e..87db9f8 100644 (file)
@@ -1,3 +1,8 @@
+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.
index 1a39b62..ce2618e 100644 (file)
@@ -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