]> git.ipfire.org Git - people/ms/gcc.git/commitdiff
Enable -fcode-hoisting with -Os. release-12.2.mpacbti-bet1
authorVidya Praveen <vidyapraveen@arm.com>
Fri, 19 Jun 2020 16:01:03 +0000 (17:01 +0100)
committerAndrea Corallo <andrea.corallo@arm.com>
Fri, 19 Aug 2022 13:22:59 +0000 (15:22 +0200)
    Author: Wilco Dijkstra <wdijkstr@arm.com>

    PR tree-optimization/80155
    * common/config/arm/arm-common.c (arm_option_optimization_table):
    Enable -fcode-hoisting with -Os.

gcc/common/config/arm/arm-common.cc

index c38812f1ea6a690cd19b0dc74d963c4f5ae155ca..4e1fece0ab2c64e6ba53a46df7f2f0249992c41b 100644 (file)
@@ -41,6 +41,8 @@ static const struct default_options arm_option_optimization_table[] =
     /* Enable section anchors by default at -O1 or higher.  */
     { OPT_LEVELS_1_PLUS, OPT_fsection_anchors, NULL, 1 },
     { OPT_LEVELS_1_PLUS, OPT_fsched_pressure, NULL, 1 },
+    /* Enable code hoisting only with -Os.  */
+    { OPT_LEVELS_SIZE, OPT_fcode_hoisting, NULL, 1 },
     { OPT_LEVELS_NONE, 0, NULL, 0 }
   };