[gcc(refs/vendors/ARM/heads/arm-10)] Enable -fcode-hoisting with -Os.
Stam Markianos-Wright
stammark@gcc.gnu.org
Tue Jun 8 09:11:03 GMT 2021
https://gcc.gnu.org/g:0b3a129521934c5c65fa3603f7d22efe740632e4
commit 0b3a129521934c5c65fa3603f7d22efe740632e4
Author: Vidya Praveen <vidyapraveen@arm.com>
Date: Fri Jun 19 17:01:03 2020 +0100
Enable -fcode-hoisting with -Os.
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.
Diff:
---
gcc/common/config/arm/arm-common.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/common/config/arm/arm-common.c b/gcc/common/config/arm/arm-common.c
index 78a779c9350..08615f65b8c 100644
--- a/gcc/common/config/arm/arm-common.c
+++ b/gcc/common/config/arm/arm-common.c
@@ -39,6 +39,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 }
};
More information about the Gcc-cvs
mailing list