]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Remove usage of IRA_REGION_AUTODETECT
authorMartin Liska <mliska@suse.cz>
Fri, 8 Oct 2021 07:51:19 +0000 (09:51 +0200)
committerMartin Liska <mliska@suse.cz>
Mon, 11 Oct 2021 13:02:27 +0000 (15:02 +0200)
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.

gcc/common.opt
gcc/flag-types.h
gcc/toplev.c

index 52693e226d25f9b30dc568631c007539eb29f99b..59ecc9fbdf77e368d4c2811eb4681227b2172f13 100644 (file)
@@ -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
index 5bd1f771c8bdd9657925c5096b186d60b92db9e5..ae0b216e8a3c36b689a92fe6bc03d283eb6d72fc 100644 (file)
@@ -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.  */
index 81748b1152ac21a68d84483540dbb0ab46e45ff2..b878234f3f25358827b08502fdb58e06e5395ce7 100644 (file)
@@ -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;