aboutsummaryrefslogtreecommitdiff
path: root/gcc/opts.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2019-11-14 13:08:57 +0100
committerMartin Liska <marxin@gcc.gnu.org>2019-11-14 12:08:57 +0000
commit78a502caec5371cf5d107c3a6cf944bac0aaeb7c (patch)
tree7f84b73d1a7e066bac0f6790400d858ad8b34f20 /gcc/opts.c
parent4c4503bf8c538bdbd8db8940aae3d7000885776e (diff)
downloadgcc-78a502caec5371cf5d107c3a6cf944bac0aaeb7c.zip
gcc-78a502caec5371cf5d107c3a6cf944bac0aaeb7c.tar.gz
gcc-78a502caec5371cf5d107c3a6cf944bac0aaeb7c.tar.bz2
Add Optimization keyword for param_max_inline_insns_auto param.
2019-11-14 Martin Liska <mliska@suse.cz> * ipa-cp.c (devirtualization_time_bonus): Use opt_for_fn of a callee to get value of the param. * ipa-inline.c (inline_insns_auto): Use proper opt_for_fn. * opts.c (maybe_default_option): Do not overwrite param value if optimization level does not match. Note that params usually have default value set via Init() keyword. * params.opt: Remove -param=max-inline-insns-auto-O2. * cif-code.def (MAX_INLINE_INSNS_AUTO_O2_LIMIT): Remove. * doc/invoke.texi: Remove documentation of max-inline-insns-auto-O2. 2019-11-14 Martin Liska <mliska@suse.cz> * c-c++-common/asan/memcmp-1.c: Update expected backtrace. From-SVN: r278218
Diffstat (limited to 'gcc/opts.c')
-rw-r--r--gcc/opts.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/opts.c b/gcc/opts.c
index 74f05f1..addebf1 100644
--- a/gcc/opts.c
+++ b/gcc/opts.c
@@ -388,7 +388,8 @@ maybe_default_option (struct gcc_options *opts,
lang_mask, DK_UNSPECIFIED, loc,
handlers, true, dc);
else if (default_opt->arg == NULL
- && !option->cl_reject_negative)
+ && !option->cl_reject_negative
+ && !(option->flags & CL_PARAMS))
handle_generated_option (opts, opts_set, default_opt->opt_index,
default_opt->arg, !default_opt->value,
lang_mask, DK_UNSPECIFIED, loc,
@@ -541,6 +542,9 @@ static const struct default_options default_options_table[] =
{ OPT_LEVELS_3_PLUS, OPT_fvect_cost_model_, NULL, VECT_COST_MODEL_DYNAMIC },
{ OPT_LEVELS_3_PLUS, OPT_fversion_loops_for_strides, NULL, 1 },
+ /* -O3 parameters. */
+ { OPT_LEVELS_3_PLUS, OPT__param_max_inline_insns_auto_, NULL, 30 },
+
/* -Ofast adds optimizations to -O3. */
{ OPT_LEVELS_FAST, OPT_ffast_math, NULL, 1 },
{ OPT_LEVELS_FAST, OPT_fallow_store_data_races, NULL, 1 },