aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVidya Praveen <vidyapraveen@arm.com>2020-06-19 17:01:03 +0100
committerAndrea Corallo <andrea.corallo@arm.com>2022-08-19 15:22:59 +0200
commit11d19ae7b3aded18f52b1accfd4ec5051951495b (patch)
tree61e43bd5b500b6f0e3809c39b3d754fb786258ca
parent7809e19f8d18d08ae5cc59810e7fda177b5127f4 (diff)
Enable -fcode-hoisting with -Os.release-12.2.mpacbti-bet1
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.
-rw-r--r--gcc/common/config/arm/arm-common.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/common/config/arm/arm-common.cc b/gcc/common/config/arm/arm-common.cc
index c38812f1ea6..4e1fece0ab2 100644
--- a/gcc/common/config/arm/arm-common.cc
+++ b/gcc/common/config/arm/arm-common.cc
@@ -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 }
};