]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* opts.c (finish_options): Imply -ffat-lto-objects with -fno-use-linker-plugin.
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Nov 2013 13:11:08 +0000 (13:11 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 20 Nov 2013 13:11:08 +0000 (13:11 +0000)
* common.opt (fuse-linker-plugin): Add var.

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

gcc/ChangeLog
gcc/common.opt
gcc/opts.c

index 94afbfc93f7d64e802cd81b999cebd83ad883597..d824dd811d15db59552111fbf09907f947afb6fc 100644 (file)
@@ -1,3 +1,8 @@
+2013-11-20  Jan Hubicka  <jh@suse.cz>
+
+       * opts.c (finish_options): Imply -ffat-lto-objects with -fno-use-linker-plugin.
+       * common.opt (fuse-linker-plugin): Add var.
+
 2013-11-20  Ilya Enkovich  <ilya.enkovich@intel.com>
 
        * dbxout.c (dbxout_type): Ignore POINTER_BOUNDS_TYPE.
index 43d49ace352ebbad3d6b22ddb7ddeb6d0671ec2e..2216d6e0392e9054570a7a38ff52cc6b9e6a6156 100644 (file)
@@ -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
index cd48c73267b28411f138e0c093369a417b904c4f..d282d6df507f0a664808f71cf5c466b526b04955 100644 (file)
@@ -809,10 +809,13 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set,
 #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;
        }
     }