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]
Other format: [Raw text]

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


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