This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Enale -fno-fat-lto-objects by default
- From: Jan Hubicka <hubicka at ucw dot cz>
- To: Jan Hubicka <hubicka at ucw dot cz>
- Cc: Andreas Schwab <schwab at suse dot de>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 20 Nov 2013 14:12:05 +0100
- Subject: Re: Enale -fno-fat-lto-objects by default
- Authentication-results: sourceware.org; auth=none
- References: <20131118180458 dot GH11338 at kam dot mff dot cuni dot cz> <mvmli0ji8wd dot fsf at hawking dot suse dot de> <20131120121256 dot GA12236 at kam dot mff dot cuni dot cz> <20131120123033 dot GB10503 at kam dot mff dot cuni dot cz>
Hi,
this is version I commited - we need to intrdocue var for -fuse-linker-plugin
to be able to check it.
I apologize for the breakage.
Honza
* opts.c (finish_options): Imply -ffat-lto-objects with -fno-use-linker-plugin.
* common.opt (fuse-linker-plugin): Add var.
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;
}
}
Index: common.opt
===================================================================
--- common.opt (revision 205108)
+++ common.opt (working copy)
@@ -2247,7 +2247,7 @@ Common Negative(fuse-ld=bfd)
Use the gold linker instead of the default linker
fuse-linker-plugin
-Common Undocumented
+Common Undocumented Var(flag_use_linker_plugin)
; Positive if we should track variables, negative if we should run
; the var-tracking pass only to discard debug annotations, zero if