]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
mn10300: Use the STC bb-reorder algorithm at -Os
authorSegher Boessenkool <segher@kernel.crashing.org>
Mon, 19 Oct 2015 22:03:13 +0000 (00:03 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Mon, 19 Oct 2015 22:03:13 +0000 (00:03 +0200)
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.

From-SVN: r229006

gcc/ChangeLog
gcc/common/config/mn10300/mn10300-common.c

index c8655aa014161e7e4b293c5dd434128d9b5edde5..6255b7622069b513e0f7b403f2c1940e2e1aab0b 100644 (file)
@@ -1,3 +1,9 @@
+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.
+
 2015-10-19  David Wohlferd  <dw@LimeGreenSocks.com>
 
        * doc/extend.texi (Explicit Register Variables): Simplify and
index 2df93eb353076d2d7557db40dfa59e9cf277b320..52421e536b2107fe472fa3f6226ca7df6987b688 100644 (file)
@@ -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 }
   };