From b30e733a13c9eb196b7dfbf7afd4135d7d4c4fd0 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 3 Sep 2014 14:28:20 +0000 Subject: [PATCH] opts.c (default_options_optimization): Adjust max-combine-insns to 2 for -Og. 2014-09-03 Richard Biener * opts.c (default_options_optimization): Adjust max-combine-insns to 2 for -Og. From-SVN: r214879 --- gcc/ChangeLog | 5 +++++ gcc/opts.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index de6481613d1..12fdeb5c7bf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-09-03 Richard Biener + + * opts.c (default_options_optimization): Adjust + max-combine-insns to 2 for -Og. + 2014-09-03 Martin Jambor PR ipa/62015 diff --git a/gcc/opts.c b/gcc/opts.c index be1867c2388..337e6cc5d0c 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -636,6 +636,12 @@ default_options_optimization (struct gcc_options *opts, default_param_value (PARAM_MIN_CROSSJUMP_INSNS), opts->x_param_values, opts_set->x_param_values); + /* Restrict the amount of work combine does at -Og while retaining + most of its useful transforms. */ + if (opts->x_optimize_debug) + maybe_set_param_value (PARAM_MAX_COMBINE_INSNS, 2, + opts->x_param_values, opts_set->x_param_values); + /* Allow default optimizations to be specified on a per-machine basis. */ maybe_default_options (opts, opts_set, targetm_common.option_optimization_table, -- 2.30.2