]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Put early debug generation under TV_SYMOUT
authorRichard Biener <rguenther@suse.de>
Thu, 20 Mar 2025 18:48:36 +0000 (19:48 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 21 Mar 2025 07:54:44 +0000 (08:54 +0100)
Like all other debug info generation this should be with TV_SYMOUT,
otherwise it's recorded as TV_CGRAPH.

* cgraphunit.cc (symbol_table::finalize_compilation_unit):
Put early debug generation under TV_SYMOUT.

gcc/cgraphunit.cc

index 82f205488e904c4f81a5210b3f65b4c3bdc89642..fa54a59d02b8b42179d07a1cd0a5a7d014c7b3a2 100644 (file)
@@ -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.  */