From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2109) id 10D0B38582B8; Wed, 21 Sep 2022 13:49:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 10D0B38582B8 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663768167; bh=SuVxveyrZL/Efw+A8Av9u5VB+RABgCRtoKpuGjb8MqA=; h=From:To:Subject:Date:From; b=crJCQye6QFkkSFK/1pR1lQbZfE4hIfcPC7htjOlchNQ1VYCjebbiJRjaR+4Q6iIT4 japt3oH0o9zUw9KmFwQJW+nM9+wDmdvOJgzOW9nY9jYomw1Lbcyaav8jvxVW/ndrzz BW36tqJ1lkUAp1UjgTZEZm2OO4x6aEAv6PUKJ2xc= 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: a1465af240ee28fc7fcb83877c6aea94f11fb32f X-Git-Newrev: 3b57560f4670bd7ccea178e18e763cdffda7ad18 Message-Id: <20220921134927.10D0B38582B8@sourceware.org> Date: Wed, 21 Sep 2022 13:49:27 +0000 (GMT) List-Id: https://gcc.gnu.org/g:3b57560f4670bd7ccea178e18e763cdffda7ad18 commit 3b57560f4670bd7ccea178e18e763cdffda7ad18 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 } };