]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Print discriminators in dump_scope_block
authorJan Hubicka <hubicka@ucw.cz>
Mon, 7 Jul 2025 08:07:53 +0000 (10:07 +0200)
committerJan Hubicka <hubicka@ucw.cz>
Mon, 7 Jul 2025 08:09:31 +0000 (10:09 +0200)
gcc/ChangeLog:

* tree-ssa-live.cc (dump_scope_block): Print discriminators
of inlined functions.

gcc/tree-ssa-live.cc

index 5b8bfd06bec17562a391bed465b3a0f2f3d2fafd..5e0891361dc75ad3b22bda4569b4d7b187f54ed4 100644 (file)
@@ -702,7 +702,10 @@ dump_scope_block (FILE *file, int indent, tree scope, dump_flags_t flags)
   if (LOCATION_LOCUS (BLOCK_SOURCE_LOCATION (scope)) != UNKNOWN_LOCATION)
     {
       expanded_location s = expand_location (BLOCK_SOURCE_LOCATION (scope));
-      fprintf (file, " %s:%i", s.file, s.line);
+      fprintf (file, " %s:%i:%i", s.file, s.line, s.column);
+      if (has_discriminator (BLOCK_SOURCE_LOCATION (scope)))
+       fprintf (file, " discrim %i",
+                get_discriminator_from_loc (BLOCK_SOURCE_LOCATION (scope)));
     }
   if (BLOCK_ABSTRACT_ORIGIN (scope))
     {