The following dumps the edge a use is uninitialized in a PHI.

Bootstrapped and tested on x86_64-unknown-linux-gnu, pushed.

        * tree-ssa-uninit.cc (find_uninit_use): Dump the edge for a
        PHI node.
---
 gcc/tree-ssa-uninit.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/tree-ssa-uninit.cc b/gcc/tree-ssa-uninit.cc
index bf2e50511af..7fbc384f2d4 100644
--- a/gcc/tree-ssa-uninit.cc
+++ b/gcc/tree-ssa-uninit.cc
@@ -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
-- 
2.35.3

Reply via email to