aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2021-10-08 09:51:19 +0200
committerMartin Liska <mliska@suse.cz>2021-10-11 15:02:27 +0200
commit6b7a246d137b9d2a88a899169014a0614195e5c8 (patch)
tree563220d0161e9ed1afc346b5e37d390b238fd0d1 /gcc
parentf70977936a306e2fb4140361ba47bf5d5cc0a47d (diff)
downloadgcc-6b7a246d137b9d2a88a899169014a0614195e5c8.zip
gcc-6b7a246d137b9d2a88a899169014a0614195e5c8.tar.gz
gcc-6b7a246d137b9d2a88a899169014a0614195e5c8.tar.bz2
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.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/common.opt2
-rw-r--r--gcc/flag-types.h4
-rw-r--r--gcc/toplev.c2
3 files changed, 2 insertions, 6 deletions
diff --git a/gcc/common.opt b/gcc/common.opt
index 52693e2..59ecc9f 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 5bd1f77..ae0b216 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 81748b1..b878234 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;