From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2109) id ED061385828E; Tue, 22 Nov 2022 11:24:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ED061385828E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669116291; bh=Hce8b1YHPTqS4N09LH1xT55H4BRNhppY9bYl4KfktyM=; h=From:To:Subject:Date:From; b=Jjc5ABQUijaK+LMCVvvdyeNR3aIZRij6PMu5bBo7+4/dQfE0bACDJ7C+Y99RY8VSe bkvD+bNExYAefE5oqGwzmvQkdFTeRxmU+LB+bNsyD6Uz0/dpvPPVBJCAiUnQhhrJF2 Rbn7ZQlgOLdzOGfh4pHI84p+eFAK2WfYl2xw0sdc= 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-12)] Enable -fcode-hoisting with -Os. X-Act-Checkin: gcc X-Git-Author: Vidya Praveen X-Git-Refname: refs/vendors/ARM/heads/arm-12 X-Git-Oldrev: 691012693aaa831e4cd1ab5180195792e32baceb X-Git-Newrev: 7249b999a6808766492e6759ed4b922bd2e66769 Message-Id: <20221122112451.ED061385828E@sourceware.org> Date: Tue, 22 Nov 2022 11:24:51 +0000 (GMT) List-Id: https://gcc.gnu.org/g:7249b999a6808766492e6759ed4b922bd2e66769 commit 7249b999a6808766492e6759ed4b922bd2e66769 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.cc | 2 ++ 1 file changed, 2 insertions(+) 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 } };