From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2109) id 6198339A241B; Tue, 1 Jun 2021 15:04:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6198339A241B Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Stam Markianos-Wright To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/vendors/ARM/heads/arm-10)] Enable -fcode-hoisting with -Os. X-Act-Checkin: gcc X-Git-Author: Vidya Praveen X-Git-Refname: refs/vendors/ARM/heads/arm-10 X-Git-Oldrev: 969d51867b66acc1a769a80d9c8a93a6f3db8592 X-Git-Newrev: 9ad1a6b4c5b9f8f35a2b8ae19933cef8136547e3 Message-Id: <20210601150452.6198339A241B@sourceware.org> Date: Tue, 1 Jun 2021 15:04:52 +0000 (GMT) X-BeenThere: gcc-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Jun 2021 15:04:52 -0000 https://gcc.gnu.org/g:9ad1a6b4c5b9f8f35a2b8ae19933cef8136547e3 commit 9ad1a6b4c5b9f8f35a2b8ae19933cef8136547e3 Author: Vidya Praveen Date: Fri Jun 19 17:01:03 2020 +0100 Enable -fcode-hoisting with -Os. Author: Wilco Dijkstra 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 } };