aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-04-15 07:46:02 -0400
committerRichard Kenner <kenner@gcc.gnu.org>1996-04-15 07:46:02 -0400
commitbf8b4985abe198142d29a1f570f489ac2de29a2d (patch)
tree09946540f79462ca520dea7710d8e981a5fecb27
parent63eac4d4851a76546d79981f8f285a09183bfa3c (diff)
downloadgcc-bf8b4985abe198142d29a1f570f489ac2de29a2d.zip
gcc-bf8b4985abe198142d29a1f570f489ac2de29a2d.tar.gz
gcc-bf8b4985abe198142d29a1f570f489ac2de29a2d.tar.bz2
(max_label_num_after_reload): New variable.
(rest_of_compilation): Set it. From-SVN: r11777
-rw-r--r--gcc/toplev.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c
index 2c8f9a2..7fb0810 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -272,6 +272,10 @@ void (*incomplete_decl_finalize_hook) () = 0;
void (*interim_eh_hook) PROTO((tree));
+/* Highest label number used at the end of reload. */
+
+int max_label_num_after_reload;
+
/* Nonzero if generating code to do profiling. */
int profile_flag = 0;
@@ -3112,6 +3116,10 @@ rest_of_compilation (decl)
fprintf (global_reg_dump_file, "\n;; Function %s\n\n",
IDENTIFIER_POINTER (DECL_NAME (decl))));
+ /* Save the last label number used so far, so reorg can tell
+ when it's safe to kill spill regs. */
+ max_label_num_after_reload = max_label_num ();
+
/* Unless we did stupid register allocation,
allocate remaining pseudo-regs, then do the reload pass
fixing up any insns that are invalid. */