diff options
author | Jan Hubicka <jh@suse.cz> | 2013-11-20 14:11:08 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2013-11-20 13:11:08 +0000 |
commit | 063d671d599f010838cd3731df0b8da4b28ecac5 (patch) | |
tree | 84784655be63d94f4da46ab9886bf3a85924b27d /gcc/opts.c | |
parent | 0c509e888c5f91f307b5c28725c2825136ae978c (diff) | |
download | gcc-063d671d599f010838cd3731df0b8da4b28ecac5.zip gcc-063d671d599f010838cd3731df0b8da4b28ecac5.tar.gz gcc-063d671d599f010838cd3731df0b8da4b28ecac5.tar.bz2 |
opts.c (finish_options): Imply -ffat-lto-objects with -fno-use-linker-plugin.
* opts.c (finish_options): Imply -ffat-lto-objects with -fno-use-linker-plugin.
* common.opt (fuse-linker-plugin): Add var.
From-SVN: r205110
Diffstat (limited to 'gcc/opts.c')
-rw-r--r-- | gcc/opts.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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; } } |