diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 5440d4493f3..870d23233fa 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,13 @@ +2014-01-17 Richard Biener + + PR tree-optimization/46590 + * opts.c (default_options_table): Add entries for + OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta, + all enabled at -O1 but not for -Og. + * common.opt (fbranch-count-reg): Remove Init(1). + (fmove-loop-invariants): Likewise. + (ftree-pta): Likewise. + 2014-01-17 Jakub Jelinek * config/i386/i386.c (ix86_data_alignment): For compatibility with diff --git a/gcc/common.opt b/gcc/common.opt index 03f9b9b75d6..d334cf2ad69 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -875,7 +875,7 @@ Common Report Var(flag_bounds_check) Generate code to check bounds before indexing arrays fbranch-count-reg -Common Report Var(flag_branch_on_count_reg) Init(1) Optimization +Common Report Var(flag_branch_on_count_reg) Optimization Replace add, compare, branch with branch on count register fbranch-probabilities @@ -1564,7 +1564,7 @@ Common Report Var(flag_modulo_sched_allow_regmoves) Perform SMS based modulo scheduling with register moves allowed fmove-loop-invariants -Common Report Var(flag_move_loop_invariants) Init(1) Optimization +Common Report Var(flag_move_loop_invariants) Optimization Move loop invariant computations out of loops fdce @@ -2170,7 +2170,7 @@ Common Report Var(flag_tree_partial_pre) Optimization In SSA-PRE optimization on trees, enable partial-partial redundancy elimination ftree-pta -Common Report Var(flag_tree_pta) Init(1) Optimization +Common Report Var(flag_tree_pta) Optimization Perform function-local points-to analysis on trees. ftree-reassoc diff --git a/gcc/opts.c b/gcc/opts.c index bac1aff6970..7dee0e71b15 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -454,6 +454,9 @@ static const struct default_options default_options_table[] = { OPT_LEVELS_1_PLUS, OPT_fcombine_stack_adjustments, NULL, 1 }, { OPT_LEVELS_1_PLUS, OPT_fcompare_elim, NULL, 1 }, { OPT_LEVELS_1_PLUS, OPT_ftree_slsr, NULL, 1 }, + { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_fbranch_count_reg, NULL, 1 }, + { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_fmove_loop_invariants, NULL, 1 }, + { OPT_LEVELS_1_PLUS_NOT_DEBUG, OPT_ftree_pta, NULL, 1 }, /* -O2 optimizations. */ { OPT_LEVELS_2_PLUS, OPT_finline_small_functions, NULL, 1 },