From cc8547a776d53c324e8edc19a143a1ac75e7ca0a Mon Sep 17 00:00:00 2001 From: Andi Kleen Date: Tue, 27 Sep 2011 14:36:48 +0000 Subject: 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 From-SVN: r179271 --- gcc/opts.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'gcc/opts.c') 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) { -- cgit v1.1