aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <law@gcc.gnu.org>1998-11-04 13:45:03 -0700
committerJeff Law <law@gcc.gnu.org>1998-11-04 13:45:03 -0700
commit56744d1a2a2177f56136b2fb1a8aaf4f51612d69 (patch)
tree99b65f85724b6dced77997d0b7f4beb37c8a2e7a
parent0ea0e8717d8def2eea263fce29e17122b36710dc (diff)
downloadgcc-56744d1a2a2177f56136b2fb1a8aaf4f51612d69.zip
gcc-56744d1a2a2177f56136b2fb1a8aaf4f51612d69.tar.gz
gcc-56744d1a2a2177f56136b2fb1a8aaf4f51612d69.tar.bz2
rtl.h (flow2_completed): Declare.
x * rtl.h (flow2_completed): Declare. * flow.c (flow2_completed): Definition. * toplev.c (rest_of_compilation): Set and clear flow2_completed as necessary. From-SVN: r23528
-rw-r--r--gcc/flow.c3
-rw-r--r--gcc/toplev.c3
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/flow.c b/gcc/flow.c
index 4eec565..fa9ffa0 100644
--- a/gcc/flow.c
+++ b/gcc/flow.c
@@ -161,6 +161,9 @@ int *uid_block_number;
#define INSN_VOLATILE(INSN) uid_volatile[INSN_UID (INSN)]
static char *uid_volatile;
+/* Nonzero if the second flow pass has completed. */
+int flow2_completed;
+
/* Number of basic blocks in the current function. */
int n_basic_blocks;
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 50ecb4a..c17be4d 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -3803,6 +3803,8 @@ rest_of_compilation (decl)
life_analysis (insns, max_reg_num (), rtl_dump_file);
});
+ flow2_completed = 1;
+
/* On some machines, the prologue and epilogue code, or parts thereof,
can be represented as RTL. Doing so lets us schedule insns between
it and the rest of the code and also allows delayed branch
@@ -3972,6 +3974,7 @@ rest_of_compilation (decl)
}
reload_completed = 0;
+ flow2_completed = 0;
TIMEVAR (final_time,
{