This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Fix botch with timevars
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: gcc-patches at gcc dot gnu dot org
- Date: Thu, 15 Nov 01 09:07:02 EST
- Subject: Fix botch with timevars
Thu Nov 15 08:36:39 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* toplev.c (toplev_main): Don't start timing until after
command-line options are parsed.
*** toplev.c 2001/11/15 10:00:28 1.538
--- toplev.c 2001/11/15 13:29:10
*************** toplev_main (argc, argv)
*** 5181,5189 ****
/* Start timing total execution time. */
- init_timevar ();
- timevar_start (TV_TOTAL);
/* The bulk of command line switch processing. */
process_options ();
/* Language-independent initialization. Also sets up GC, identifier
--- 5181,5192 ----
/* Start timing total execution time. */
/* The bulk of command line switch processing. */
process_options ();
+
+ /* We cannot start timing until after options are processed since that
+ says if we run timers or not. */
+ init_timevar ();
+ timevar_start (TV_TOTAL);
/* Language-independent initialization. Also sets up GC, identifier