public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/marxin/heads/option-tweaking)] Remove usage of IRA_REGION_AUTODETECT Date: Fri, 8 Oct 2021 07:54:48 +0000 (GMT) [thread overview] Message-ID: <20211008075448.5A1033857C48@sourceware.org> (raw) https://gcc.gnu.org/g:8482c25ed5c05f955546ca7f33a37f8790a99fc4 commit 8482c25ed5c05f955546ca7f33a37f8790a99fc4 Author: Martin Liska <mliska@suse.cz> 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;
next reply other threads:[~2021-10-08 7:54 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-10-08 7:54 Martin Liska [this message] 2021-10-08 9:21 Martin Liska 2021-10-08 11:29 Martin Liska
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20211008075448.5A1033857C48@sourceware.org \ --to=marxin@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).