From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 7C79D3857C65; Fri, 8 Oct 2021 09:21:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7C79D3857C65 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/marxin/heads/option-tweaking)] Remove usage of IRA_REGION_AUTODETECT X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/users/marxin/heads/option-tweaking X-Git-Oldrev: 539791c7d118911408d6e875203387f44fc86403 X-Git-Newrev: aab11059928a97a2d506d4ca012822dce879acd5 Message-Id: <20211008092128.7C79D3857C65@sourceware.org> Date: Fri, 8 Oct 2021 09:21:28 +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: Fri, 08 Oct 2021 09:21:28 -0000 https://gcc.gnu.org/g:aab11059928a97a2d506d4ca012822dce879acd5 commit aab11059928a97a2d506d4ca012822dce879acd5 Author: Martin Liska Date: Fri Oct 8 09:51:19 2021 +0200 Remove usage of IRA_REGION_AUTODETECT gcc/ChangeLog: * common.opt: Remove usage of IRA_REGION_AUTODETECT. * flag-types.h (enum ira_region): Likewise. * toplev.c (process_options): Use OPTION_SET_P instead of IRA_REGION_AUTODETECT. Diff: --- gcc/common.opt | 2 +- gcc/flag-types.h | 4 ---- gcc/toplev.c | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/gcc/common.opt b/gcc/common.opt index a9644cae4f0..90bf2fde514 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -1923,7 +1923,7 @@ EnumValue Enum(ira_algorithm) String(priority) Value(IRA_ALGORITHM_PRIORITY) fira-region= -Common Joined RejectNegative Enum(ira_region) Var(flag_ira_region) Init(IRA_REGION_AUTODETECT) Optimization +Common Joined RejectNegative Enum(ira_region) Var(flag_ira_region) Init(IRA_REGION_ONE) Optimization -fira-region=[one|all|mixed] Set regions for IRA. Enum diff --git a/gcc/flag-types.h b/gcc/flag-types.h index 5bd1f771c8b..ae0b216e8a3 100644 --- a/gcc/flag-types.h +++ b/gcc/flag-types.h @@ -191,10 +191,6 @@ enum ira_region IRA_REGION_ONE, IRA_REGION_ALL, IRA_REGION_MIXED, - /* This value means that there were no options -fira-region on the - command line and that we should choose a value depending on the - used -O option. */ - IRA_REGION_AUTODETECT }; /* The options for excess precision. */ diff --git a/gcc/toplev.c b/gcc/toplev.c index e4b381e159b..7afed7cb3a6 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -1319,7 +1319,7 @@ process_options (bool no_backend) } /* One region RA really helps to decrease the code size. */ - if (flag_ira_region == IRA_REGION_AUTODETECT) + if (!OPTION_SET_P (flag_ira_region)) flag_ira_region = optimize_size || !optimize ? IRA_REGION_ONE : IRA_REGION_MIXED;