Skip to content

Commit

Permalink
refs #217: do not enable -ftree-ch by default
Browse files Browse the repository at this point in the history
    also set -freorder-blocks-algorithm=simple as default.
  • Loading branch information
bebbo committed Jan 8, 2024
1 parent 61deec1 commit 9505524
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion gcc/opts.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,9 @@ static const struct default_options default_options_table[] =
{ OPT_LEVELS_1_PLUS, OPT_ftree_fre, NULL, 1 },
{ OPT_LEVELS_1_PLUS, OPT_ftree_copy_prop, NULL, 1 },
{ OPT_LEVELS_1_PLUS, OPT_ftree_sink, NULL, 1 },
#ifndef TARGET_M68K
{ OPT_LEVELS_1_PLUS, OPT_ftree_ch, NULL, 1 },
#endif
{ 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 },
Expand Down Expand Up @@ -498,7 +500,12 @@ static const struct default_options default_options_table[] =
{ OPT_LEVELS_2_PLUS, OPT_fstrict_aliasing, NULL, 1 },
{ OPT_LEVELS_2_PLUS, OPT_fstrict_overflow, NULL, 1 },
{ OPT_LEVELS_2_PLUS, OPT_freorder_blocks_algorithm_, NULL,
REORDER_BLOCKS_ALGORITHM_STC },
#ifdef TARGET_M68K
REORDER_BLOCKS_ALGORITHM_SIMPLE
#else
REORDER_BLOCKS_ALGORITHM_STC
#endif
},
{ OPT_LEVELS_2_PLUS, OPT_freorder_functions, NULL, 1 },
{ OPT_LEVELS_2_PLUS, OPT_ftree_vrp, NULL, 1 },
{ OPT_LEVELS_2_PLUS, OPT_ftree_pre, NULL, 1 },
Expand Down

0 comments on commit 9505524

Please sign in to comment.