This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix -flto-partition


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]