small tweak for cp/decl2.c
Zack Weinberg
zack@wolery.cumb.org
Sun Apr 23 09:44:00 GMT 2000
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 ())
More information about the Gcc-patches
mailing list