[PATCH] Fix -flto-partition

Richard Guenther rguenther@suse.de
Wed Nov 3 15:00:00 GMT 2010


This makes it actually work and not complain when running the LTO
testsuite with -flto-partition=1to1.

Committed as obvious.

Richard.

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

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

Index: gcc/opts.c
===================================================================
*** gcc/opts.c	(revision 166249)
--- gcc/opts.c	(working copy)
*************** finish_options (struct gcc_options *opts
*** 1239,1246 ****
      {
        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");
      }
  
    /* Reconcile -flto and -fwhopr.  Set additional flags as appropriate and
--- 1239,1246 ----
      {
        if (flag_lto_partition_balanced && flag_lto_partition_1to1)
  	error ("Only one -flto-partitoin value can be specified");
!       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



More information about the Gcc-patches mailing list