aboutsummaryrefslogtreecommitdiff
path: root/gcc/ira.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ira.cc')
-rw-r--r--gcc/ira.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ira.cc b/gcc/ira.cc
index 0b0d460..d7530f0 100644
--- a/gcc/ira.cc
+++ b/gcc/ira.cc
@@ -5542,6 +5542,9 @@ bool ira_conflicts_p;
/* Saved between IRA and reload. */
static int saved_flag_ira_share_spill_slots;
+/* Set to true while in IRA. */
+bool ira_in_progress = false;
+
/* This is the main entry of IRA. */
static void
ira (FILE *f)
@@ -6110,7 +6113,9 @@ public:
}
unsigned int execute (function *) final override
{
+ ira_in_progress = true;
ira (dump_file);
+ ira_in_progress = false;
return 0;
}