diff options
author | Richard Kenner <kenner@vlsi1.ultra.nyu.edu> | 2001-11-15 13:59:47 +0000 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 2001-11-15 08:59:47 -0500 |
commit | a9915c78f0ceac74d2d17f87e5b2c34611b355af (patch) | |
tree | 22db567d59c04f89be563894bcdd59d92250b58c /gcc/toplev.c | |
parent | fed7dc6306e5b034821878567466ddbe66eaf9cf (diff) | |
download | gcc-a9915c78f0ceac74d2d17f87e5b2c34611b355af.zip gcc-a9915c78f0ceac74d2d17f87e5b2c34611b355af.tar.gz gcc-a9915c78f0ceac74d2d17f87e5b2c34611b355af.tar.bz2 |
toplev.c (toplev_main): Don't start timing until after command-line options are parsed.
* toplev.c (toplev_main): Don't start timing until after
command-line options are parsed.
From-SVN: r47054
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index 3db578f..786517b6 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -5180,12 +5180,15 @@ toplev_main (argc, argv) return (SUCCESS_EXIT_CODE); /* Start timing total execution time. */ - init_timevar (); - timevar_start (TV_TOTAL); /* 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 hashes etc. */ lang_independent_init (); |