summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog4
-rw-r--r--gcc/toplev.c25
2 files changed, 17 insertions, 12 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 69a6dad289b..06e04e6d74a 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,9 @@
Wed May 13 12:54:19 1998 Michael Meissner <meissner@cygnus.com>
+ * toplev.c (rest_of_compilation): "Charge" final for any time
+ doing various cleanup operations after finishing compilation
+ of a function.
+
* flow.c (dump_flow_info): Also print number of sets and
whether or not the pseudo is a user variable.
diff --git a/gcc/toplev.c b/gcc/toplev.c
index d933b1beea9..56d8222f443 100644
--- a/gcc/toplev.c
+++ b/gcc/toplev.c
@@ -3645,21 +3645,22 @@ rest_of_compilation (decl)
reload_completed = 0;
- /* Clear out the insn_length contents now that they are no longer valid. */
- init_insn_lengths ();
-
- /* Clear out the real_constant_chain before some of the rtx's
- it runs through become garbage. */
-
- clear_const_double_mem ();
-
- /* Cancel the effect of rtl_in_current_obstack. */
+ TIMEVAR (final_time,
+ {
+ /* Clear out the insn_length contents now that they are no
+ longer valid. */
+ init_insn_lengths ();
- resume_temporary_allocation ();
+ /* Clear out the real_constant_chain before some of the rtx's
+ it runs through become garbage. */
+ clear_const_double_mem ();
- /* Show no temporary slots allocated. */
+ /* Cancel the effect of rtl_in_current_obstack. */
+ resume_temporary_allocation ();
- init_temp_slots ();
+ /* Show no temporary slots allocated. */
+ init_temp_slots ();
+ });
/* Make sure volatile mem refs aren't considered valid operands for
arithmetic insns. We must call this here if this is a nested inline