This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

small tweak for cp/decl2.c


finish_file() wants its time credited to varconst, not parse.  It sets
up the context to do that twice.  The only things between the two
blocks are trivial variable initializations.

zw

	* decl2.c (finish_file): Remove double setup for accounting
	compile time.

===================================================================
Index: cp/decl2.c
--- cp/decl2.c	2000/04/20 05:53:57	1.337
+++ cp/decl2.c	2000/04/23 16:42:48
@@ -3440,8 +3440,6 @@ finish_file ()
   if (! global_bindings_p () || current_class_type || decl_namespace_list)
     return;
 
-  start_time = get_run_time ();
-
   /* Otherwise, GDB can get confused, because in only knows
      about source for LINENO-1 lines.  */
   lineno -= 1;
@@ -3465,9 +3463,6 @@ finish_file ()
      generating the intiailzer for an object may cause templates to be
      instantiated, etc., etc.  */
 
-  this_time = get_run_time ();
-  parse_time -= this_time - start_time;
-  varconst_time += this_time - start_time;
   start_time = get_run_time ();
 
   if (new_abi_rtti_p ())

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]