From 9505524c455576a3fa369583fd987726ceac9d3c Mon Sep 17 00:00:00 2001 From: bebbo Date: Mon, 8 Jan 2024 21:02:37 +0100 Subject: [PATCH] refs #217: do not enable -ftree-ch by default also set -freorder-blocks-algorithm=simple as default. --- gcc/opts.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/opts.c b/gcc/opts.c index 16f92df43e56b..b4afccfd87489 100644 --- a/gcc/opts.c +++ b/gcc/opts.c @@ -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 }, @@ -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 },