]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
toplev.c (rest_of_compilation): "Charge" final for any time doing various cleanup...
authorMichael Meissner <meissner@cygnus.com>
Wed, 13 May 1998 12:26:49 +0000 (12:26 +0000)
committerJeff Law <law@gcc.gnu.org>
Wed, 13 May 1998 12:26:49 +0000 (06:26 -0600)
        * toplev.c (rest_of_compilation): "Charge" final for any time
        doing various cleanup operations after finishing compilation
        of a function.

From-SVN: r19711

gcc/ChangeLog
gcc/toplev.c

index 69a6dad289b020d65db99834ef8773824b7c5627..06e04e6d74a4c7c770d359c47e0ca4e5c60ed1ea 100644 (file)
@@ -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.
 
index d933b1beea957e0d73adc9bf758a6df29463c613..56d8222f443a1a2ba2e4a8e20bbe0559f46c7b8c 100644 (file)
@@ -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