public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-4407] Improve uninit diagnostic dumps
@ 2022-11-30 11:53 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2022-11-30 11:53 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:2792cb50f55529e1737461e032ed13e7f04f73d2

commit r13-4407-g2792cb50f55529e1737461e032ed13e7f04f73d2
Author: Richard Biener <rguenther@suse.de>
Date:   Wed Nov 30 12:03:56 2022 +0100

    Improve uninit diagnostic dumps
    
    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.

Diff:
---
 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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-11-30 11:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-30 11:53 [gcc r13-4407] Improve uninit diagnostic dumps Richard Biener

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).