From e9f67e625c2a4225a7169d7220dcb85b6fdd7ca9 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Tue, 19 Nov 2013 23:52:19 +0000 Subject: common.opt (ffat-lto-objects): Disable by default. * common.opt (ffat-lto-objects): Disable by default. * doc/invoke.texi (fat-lto-objects): Update documentation. * opts.c: Enable fat-lto-objects on lto plugin disable setups. From-SVN: r205065 --- gcc/opts.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'gcc/opts.c') diff --git a/gcc/opts.c b/gcc/opts.c index a31b28d..cd48c73 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -493,6 +493,7 @@ static const struct default_options default_options_table[] = { OPT_LEVELS_2_PLUS, OPT_fvect_cost_model_, NULL, VECT_COST_MODEL_CHEAP }, { OPT_LEVELS_2_PLUS_SPEED_ONLY, OPT_foptimize_strlen, NULL, 1 }, { OPT_LEVELS_2_PLUS, OPT_fhoist_adjacent_loads, NULL, 1 }, + { OPT_LEVELS_2_PLUS, OPT_fipa_sem_equality, NULL, 1 }, { OPT_LEVELS_2_PLUS, OPT_fisolate_erroneous_paths, NULL, 1 }, /* -O3 optimizations. */ @@ -809,8 +810,12 @@ finish_options (struct gcc_options *opts, struct gcc_options *opts_set, 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_set->x_flag_fat_lto_objects) + error_at (loc, "-fno-fat-lto-objects are supported only with linker plugin."); + opts->x_flag_fat_lto_objects = 1; + } + } 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