aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorAndi Kleen <ak@linux.intel.com>2011-09-27 14:36:48 +0000
committerJan Hubicka <hubicka@gcc.gnu.org>2011-09-27 14:36:48 +0000
commitcc8547a776d53c324e8edc19a143a1ac75e7ca0a (patch)
tree6a51259b773d6ffc2a40c93fe609a3331fd17b5f /gcc/opts.c
parent3019bbaeb3c0156d6e9ca646850a99054963301a (diff)
downloadgcc-cc8547a776d53c324e8edc19a143a1ac75e7ca0a.zip
gcc-cc8547a776d53c324e8edc19a143a1ac75e7ca0a.tar.gz
gcc-cc8547a776d53c324e8edc19a143a1ac75e7ca0a.tar.bz2
invoke.texi (ffat-lto-objects): Document.
* doc/invoke.texi (ffat-lto-objects): Document. * toplev.c (compile_file): Do not output assembly when doing slim lto; Output __gnu_slim_lto when doing slim lto. * cgraphunit.c (ipa_passes): Do only analysis when producing slim lto. (cgraph_optimize): Return early when doing slim lto. * opts.c (finish_options): Complain about lack of linker plugin when doing slim lto. * common.opt (ffat-lto-objects): New. Co-Authored-By: Jan Hubicka <jh@suse.cz> From-SVN: r179271
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 5d5bcb9..acf7789 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -779,7 +779,9 @@ 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)
+ error_at (loc, "-fno-fat-lto-objects are supported only with linker plugin.");
+}
if ((opts->x_flag_lto_partition_balanced != 0) + (opts->x_flag_lto_partition_1to1 != 0)
+ (opts->x_flag_lto_partition_none != 0) >= 1)
{