Like all other debug info generation this should be with TV_SYMOUT,
otherwise it's recorded as TV_CGRAPH.

Bootstrap and regtest running on x86_64-unknown-linux-gnu, will
push tomorrow.

        * cgraphunit.cc (symbol_table::finalize_compilation_unit):
        Put early debug generation under TV_SYMOUT.
---
 gcc/cgraphunit.cc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/gcc/cgraphunit.cc b/gcc/cgraphunit.cc
index 82f205488e9..fa54a59d02b 100644
--- a/gcc/cgraphunit.cc
+++ b/gcc/cgraphunit.cc
@@ -2588,6 +2588,8 @@ symbol_table::finalize_compilation_unit (void)
 
   if (!seen_error ())
     {
+      timevar_push (TV_SYMOUT);
+
       /* Give the frontends the chance to emit early debug based on
         what is still reachable in the TU.  */
       (*lang_hooks.finalize_early_debug) ();
@@ -2597,6 +2599,8 @@ symbol_table::finalize_compilation_unit (void)
       debuginfo_early_start ();
       (*debug_hooks->early_finish) (main_input_filename);
       debuginfo_early_stop ();
+
+      timevar_pop (TV_SYMOUT);
     }
 
   /* Finally drive the pass manager.  */
-- 
2.43.0

Reply via email to