]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Improve uninit diagnostic dumps
authorRichard Biener <rguenther@suse.de>
Wed, 30 Nov 2022 11:03:56 +0000 (12:03 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 30 Nov 2022 11:53:10 +0000 (12:53 +0100)
The following dumps the edge a use is uninitialized in a PHI.

* tree-ssa-uninit.cc (find_uninit_use): Dump the edge for a
PHI node.

gcc/tree-ssa-uninit.cc

index bf2e50511af150b26ad6e09510868725b2a7e444..7fbc384f2d4ca50cc6dc5a1c0e495c7a95c535bd 100644 (file)
@@ -1249,8 +1249,8 @@ find_uninit_use (gphi *phi, unsigned uninit_opnds, int *bb_to_rpo)
 
          if (dump_file && (dump_flags & TDF_DETAILS))
            {
-             fprintf (dump_file, "Found unguarded use in bb %u: ",
-                      use_bb->index);
+             fprintf (dump_file, "Found unguarded use on edge %u -> %u: ",
+                      e->src->index, e->dest->index);
              print_gimple_stmt (dump_file, use_stmt, 0);
            }
          /* Found a phi use that is not guarded, mark the phi_result as