diff mbox

Enale -fno-fat-lto-objects by default

Message ID 20131120123033.GB10503@kam.mff.cuni.cz
State New
Headers show

Commit Message

Jan Hubicka Nov. 20, 2013, 12:30 p.m. UTC
Hi,
actually the flag is being passed to the frontends instead of being consumed by
the driver that makes life easier.  I am testing the attached patch and will
commit it as obvious if it passes (to unbreak the testing).
diff mbox

Patch

Index: opts.c
===================================================================
--- opts.c	(revision 205108)
+++ opts.c	(working copy)
@@ -809,10 +809,13 @@  finish_options (struct gcc_options *opts
 #else
       error_at (loc, "LTO support has not been enabled in this configuration");
 #endif
-      if (!opts->x_flag_fat_lto_objects && !HAVE_LTO_PLUGIN)
+      if (!opts->x_flag_fat_lto_objects
+	  && (!HAVE_LTO_PLUGIN
+	      || (opts_set->x_flag_use_linker_plugin
+		  && !opts->x_flag_use_linker_plugin)))
 	{
 	  if (opts_set->x_flag_fat_lto_objects)
-            error_at (loc, "-fno-fat-lto-objects are supported only with linker plugin.");
+            error_at (loc, "-fno-fat-lto-objects are supported only with linker plugin");
 	  opts->x_flag_fat_lto_objects = 1;
 	}
     }