diff options
author | segher <segher@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-19 22:03:13 +0000 |
---|---|---|
committer | segher <segher@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-19 22:03:13 +0000 |
commit | 3bd5b2f05bba61c944cec6ec0d6dee0e79532328 (patch) | |
tree | 9499eba87bc29e812aeeb9fb18181a37fca1a26e /gcc/common | |
parent | eebfc95acf4dd7939af56f98124492b72b3f8e89 (diff) | |
download | gcc-3bd5b2f05bba61c944cec6ec0d6dee0e79532328.tar.gz |
mn10300: Use the STC bb-reorder algorithm at -Os
For mn10300, STC still gives better results for optimise-for-size than
"simple" does. So use STC at -Os as well.
2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
* common/config/mn10300/mn10300-common.c
(mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@229006 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/common')
-rw-r--r-- | gcc/common/config/mn10300/mn10300-common.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/common/config/mn10300/mn10300-common.c b/gcc/common/config/mn10300/mn10300-common.c index 2df93eb3530..52421e536b2 100644 --- a/gcc/common/config/mn10300/mn10300-common.c +++ b/gcc/common/config/mn10300/mn10300-common.c @@ -30,6 +30,9 @@ static const struct default_options mn10300_option_optimization_table[] = { { OPT_LEVELS_1_PLUS, OPT_fomit_frame_pointer, NULL, 1 }, + /* The STC algorithm produces the smallest code at -Os. */ + { OPT_LEVELS_2_PLUS, OPT_freorder_blocks_algorithm_, NULL, + REORDER_BLOCKS_ALGORITHM_STC }, { OPT_LEVELS_NONE, 0, NULL, 0 } }; |